Skip to content

Commit 149e600

Browse files
committed
add more delay to watch ads
1 parent dedf43e commit 149e600

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

TbsCore/Tasks/LowLevel/UpgradeBuilding.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,6 @@ private async Task<bool> TryFastUpgrade(Account acc)
342342

343343
// click to play video
344344
acc.Logger.Information("Waiting ads video load before clicking play button");
345-
await Task.Delay(rand.Next(5000, 9000));
346345

347346
{
348347
var result = await Update(acc);
@@ -355,6 +354,8 @@ private async Task<bool> TryFastUpgrade(Account acc)
355354
}
356355

357356
{
357+
await Task.Delay(rand.Next(20000, 30000));
358+
358359
var elementIframe = acc.Wb.Driver.FindElement(By.XPath(nodeIframe.XPath));
359360
Actions act = new Actions(acc.Wb.Driver);
360361
act.MoveToElement(elementIframe).Click().Build().Perform();

0 commit comments

Comments
 (0)