try to fix unclickable giveway button
Some checks failed
Push image to registry / build-image (push) Has been cancelled

This commit is contained in:
2025-03-11 18:45:54 +01:00
parent 140966fb6b
commit 5bfaba4a8e

View File

@ -163,7 +163,16 @@ class HellcaseJob extends BrowserJob implements ShouldBeUniqueUntilProcessing
]));
}
foreach ($buttons as $button) {
$button->click();
$clicked = false;
while (!$clicked) {
try {
$button->click();
} catch (\Exception $e) {
continue;
}
$clicked = true;
sleep(3);
}
sleep(5);
$this->joinGiveaway($browser);
$browser->within(new MainNav, function (Browser $browser) {