github a shit
fuck
This commit is contained in:
parent
69cb7b358a
commit
51a8fdda5b
1 changed files with 0 additions and 3 deletions
|
@ -17,7 +17,6 @@ namespace bot {
|
|||
static int currentMessage;
|
||||
|
||||
public static void reloadContext(FirefoxDriver d) {
|
||||
<<<<<<< HEAD
|
||||
while(true) {
|
||||
try {
|
||||
List<IWebElement> chatdata = d.FindElement(By.Id("chatList")).FindElements(By.TagName("div")).ToList();
|
||||
|
@ -29,14 +28,12 @@ namespace bot {
|
|||
break;
|
||||
} catch(Exception shoehorn) {}
|
||||
}
|
||||
=======
|
||||
List<IWebElement> chatdata = d.FindElement(By.Id("chatList")).FindElements(By.TagName("div")).ToList();
|
||||
messageDivSize = chatdata.Count;
|
||||
foreach(IWebElement we in chatdata) {
|
||||
if(Int32.Parse(we.GetAttribute("id").Substring(we.GetAttribute("id").LastIndexOf('_') + 1)) > currentMessage)
|
||||
currentMessage = Int32.Parse(we.GetAttribute("id").Substring(we.GetAttribute("id").LastIndexOf('_') + 1));
|
||||
}
|
||||
>>>>>>> origin/master
|
||||
if(d.FindElement(By.Id("audioButton")).GetAttribute("class").ToLower() == "button")
|
||||
d.FindElement(By.Id("audioButton")).Click();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue