the unjiggening
aids
This commit is contained in:
parent
3feec69df0
commit
98b1fa957d
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,7 @@ namespace bot {
|
||||||
static int currentMessage;
|
static int currentMessage;
|
||||||
|
|
||||||
public static void reloadContext(FirefoxDriver d) {
|
public static void reloadContext(FirefoxDriver d) {
|
||||||
|
Console.Writeline("reloading context");
|
||||||
while(true) {
|
while(true) {
|
||||||
try {
|
try {
|
||||||
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();
|
||||||
|
@ -28,6 +29,7 @@ namespace bot {
|
||||||
break;
|
break;
|
||||||
} catch(Exception shoehorn) {}
|
} catch(Exception shoehorn) {}
|
||||||
}
|
}
|
||||||
|
Console.Writeline("reloading context complete");
|
||||||
if(d.FindElement(By.Id("audioButton")).GetAttribute("class").ToLower() == "button")
|
if(d.FindElement(By.Id("audioButton")).GetAttribute("class").ToLower() == "button")
|
||||||
d.FindElement(By.Id("audioButton")).Click();
|
d.FindElement(By.Id("audioButton")).Click();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue