github is the worst fucking program to ever be ma
aids
This commit is contained in:
parent
17dcdbcf1c
commit
21917ee901
1 changed files with 2 additions and 2 deletions
|
@ -23,8 +23,8 @@ namespace bot {
|
||||||
List<IWebElement> chatdata = d.FindElement(By.Id("chatList")).FindElements(By.TagName("div")).ToList();
|
List<IWebElement> chatdata = d.FindElement(By.Id("chatList")).FindElements(By.TagName("div")).ToList();
|
||||||
messageDivSize = chatdata.Count;
|
messageDivSize = chatdata.Count;
|
||||||
foreach(IWebElement we in chatdata) {
|
foreach(IWebElement we in chatdata) {
|
||||||
if(Int32.Parse(we.GetAttribute("id").Substring(11)) > currentMessage)
|
if(Int32.Parse(we.GetAttribute("id").Substring(we.GetAttribute("id").LastIndexOf('_') + 1)) > currentMessage)
|
||||||
currentMessage = Int32.Parse(we.GetAttribute("id").Substring(11));
|
currentMessage = Int32.Parse(we.GetAttribute("id").Substring(we.GetAttribute("id").LastIndexOf('_') + 1));
|
||||||
}
|
}
|
||||||
Console.WriteLine("got here");
|
Console.WriteLine("got here");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue