Compare commits
2 Commits
c7ad5810a7
...
8d814c7658
Author | SHA1 | Date | |
---|---|---|---|
8d814c7658 | |||
56ec14f1da |
@ -194,6 +194,11 @@ class HellcaseJob extends BrowserJob implements ShouldBeUniqueUntilProcessing
|
|||||||
$availibleInButton = $browser->driver->findElement(WebDriverBy::xpath('//button[contains(@class, "daily-free-banner__button")]'));
|
$availibleInButton = $browser->driver->findElement(WebDriverBy::xpath('//button[contains(@class, "daily-free-banner__button")]'));
|
||||||
if ($availibleInButton->getAttribute("disabled") == "true") {
|
if ($availibleInButton->getAttribute("disabled") == "true") {
|
||||||
$hours = $availibleInButton->getText();
|
$hours = $availibleInButton->getText();
|
||||||
|
// If the text is like "in 26 sec." we need to put one minute
|
||||||
|
if (str_contains($hours, "sec")) {
|
||||||
|
$this->reschedule(60);
|
||||||
|
return;
|
||||||
|
}
|
||||||
$hours = explode(" ", $hours);
|
$hours = explode(" ", $hours);
|
||||||
$minutes = $hours[4];
|
$minutes = $hours[4];
|
||||||
$hours = $hours[2];
|
$hours = $hours[2];
|
||||||
|
Reference in New Issue
Block a user