Added rescheduling
All checks were successful
Push image to registry / build-image (push) Successful in 6m12s
All checks were successful
Push image to registry / build-image (push) Successful in 6m12s
This commit is contained in:
@ -158,6 +158,19 @@ class HellcaseJob extends BrowserJob
|
||||
{
|
||||
$joinButton = $browser->driver->findElement(WebDriverBy::xpath('//button[span[contains(text(), "Join for free")]]'));
|
||||
$joinButton->click();
|
||||
|
||||
// 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__")]'));
|
||||
// Join their text
|
||||
$prize = "";
|
||||
foreach ($prizeElement as $element) {
|
||||
$prize .= $element->getText() . "\n";
|
||||
}
|
||||
$this->jobRun->addArtifact(new JobArtifact([
|
||||
"name" => "Rejoint le concours",
|
||||
"content" => "Pour tenter de gagner le prix : \n" . $prize
|
||||
]));
|
||||
}
|
||||
|
||||
private function getDailyFree(Browser $browser)
|
||||
|
Reference in New Issue
Block a user