try to fix unclickable giveway button
Some checks failed
Push image to registry / build-image (push) Has been cancelled
Some checks failed
Push image to registry / build-image (push) Has been cancelled
This commit is contained in:
@@ -163,7 +163,16 @@ class HellcaseJob extends BrowserJob implements ShouldBeUniqueUntilProcessing
|
|||||||
]));
|
]));
|
||||||
}
|
}
|
||||||
foreach ($buttons as $button) {
|
foreach ($buttons as $button) {
|
||||||
|
$clicked = false;
|
||||||
|
while (!$clicked) {
|
||||||
|
try {
|
||||||
$button->click();
|
$button->click();
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$clicked = true;
|
||||||
|
sleep(3);
|
||||||
|
}
|
||||||
sleep(5);
|
sleep(5);
|
||||||
$this->joinGiveaway($browser);
|
$this->joinGiveaway($browser);
|
||||||
$browser->within(new MainNav, function (Browser $browser) {
|
$browser->within(new MainNav, function (Browser $browser) {
|
||||||
|
Reference in New Issue
Block a user