Fix Job
All checks were successful
Push image to registry / build-image (push) Successful in 4m41s

This commit is contained in:
2025-02-18 18:48:48 +01:00
parent 313c0a6a9a
commit 61e55f960e
2 changed files with 8 additions and 2 deletions

View File

@ -37,7 +37,11 @@ class MainNav extends BaseComponent
}
public function goToHome(Browser $browser) {
$browser->scrollIntoView('@logo');
$browser->click('@logo');
try {
$browser->scrollIntoView('@logo');
$browser->click('@logo');
} catch (\Exception $e) {
$browser->visit('https://hellcase.com/');
}
}
}

View File

@ -161,6 +161,8 @@ class HellcaseJob extends BrowserJob
$joinButton = $browser->driver->findElement(WebDriverBy::xpath('//button[span[contains(text(), "Join for free")]]'));
$joinButton->click();
sleep(3);
// JobRun
// Get the elements text containing class starting with giveaway-entity-prize__
$prizeElement = $browser->driver->findElements(WebDriverBy::xpath('//div[starts-with(@class, "giveaway-entity-prize__")]'));