We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6980965 commit e4dabf1Copy full SHA for e4dabf1
TbsCore/Tasks/LowLevel/UpgradeBuilding.cs
@@ -335,8 +335,17 @@ private async Task<bool> TryFastUpgrade(Account acc)
335
await Task.Delay(AccountHelper.Delay(acc));
336
}
337
338
+ while ( true)
339
+ {
340
+ acc.Wb.UpdateHtml();
341
+ var node = acc.Wb.Html.GetElementbyId("videoFeature");
342
+ if (node == null) continue;
343
+ var element = acc.Wb.Driver.FindElementById("videoFeature");
344
+ if (element == null) continue;
345
+ element.Click();
346
+ break;
347
+ }
348
// Has to be a legit "click"
- acc.Wb.FindElementById("videoFeature").Click();
349
350
// wait for finish watching ads
351
var timeout = DateTime.Now.AddSeconds(100);
0 commit comments