Fix job
This commit is contained in:
@ -104,7 +104,7 @@ class HellcaseJob extends BrowserJob implements ShouldBeUniqueUntilProcessing
|
|||||||
try {
|
try {
|
||||||
$qrCode = $browser->driver->findElement(WebDriverBy::xpath('//div[./*[contains(text(), "Or sign in with QR")]]'));
|
$qrCode = $browser->driver->findElement(WebDriverBy::xpath('//div[./*[contains(text(), "Or sign in with QR")]]'));
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$browser->takeScreenshot(JobDebugScreenshot::getFileName($this->jobId));
|
$browser->screenshot(JobDebugScreenshot::getFileName($this->jobId));
|
||||||
AllNotification::send(new JobDebugNotification($this->jobId, "Le QR code de la page de connexion de Steam n'a pas été trouvé"));
|
AllNotification::send(new JobDebugNotification($this->jobId, "Le QR code de la page de connexion de Steam n'a pas été trouvé"));
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
@ -208,8 +208,8 @@ class HellcaseJob extends BrowserJob implements ShouldBeUniqueUntilProcessing
|
|||||||
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 the text is like "in 26 sec." we need to put one minute
|
||||||
if (!str_contains($hours, "hr")) {
|
if (str_contains(strtolower($hours), "seconds")) {
|
||||||
$browser->takeScreenshot(JobDebugScreenshot::getFileName($this->jobId));
|
$browser->screenshot(JobDebugScreenshot::getFileName($this->jobId));
|
||||||
AllNotification::send(new JobDebugNotification($this->jobId, "I hate niggers"));
|
AllNotification::send(new JobDebugNotification($this->jobId, "I hate niggers"));
|
||||||
// $this->reschedule(1);
|
// $this->reschedule(1);
|
||||||
sleep(60);
|
sleep(60);
|
||||||
|
Reference in New Issue
Block a user