the unjiggening

aids
This commit is contained in:
MallocNull 2014-10-19 16:16:12 -05:00
parent 3feec69df0
commit 98b1fa957d

View file

@ -17,6 +17,7 @@ namespace bot {
static int currentMessage;
public static void reloadContext(FirefoxDriver d) {
Console.Writeline("reloading context");
while(true) {
try {
List<IWebElement> chatdata = d.FindElement(By.Id("chatList")).FindElements(By.TagName("div")).ToList();
@ -28,6 +29,7 @@ namespace bot {
break;
} catch(Exception shoehorn) {}
}
Console.Writeline("reloading context complete");
if(d.FindElement(By.Id("audioButton")).GetAttribute("class").ToLower() == "button")
d.FindElement(By.Id("audioButton")).Click();
}