This commit is contained in:
@ -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/');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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__")]'));
|
||||
|
Reference in New Issue
Block a user