Fix join giveaway button not found
This commit is contained in:
@@ -156,7 +156,7 @@ class HellcaseJob extends BrowserJob implements ShouldBeUniqueUntilProcessing
|
||||
private function joinFreeGiveaways(Browser $browser)
|
||||
{
|
||||
try {
|
||||
$buttons = $browser->driver->findElements(WebDriverBy::xpath('//a[text() = "Join for free"]'));
|
||||
$buttons = $browser->driver->findElements(WebDriverBy::xpath('//button[./div[text()="join"]]'));
|
||||
} catch (\Exception $e) {
|
||||
$browser->screenshot(JobDebugScreenshot::getFileName($this->jobId));
|
||||
AllNotification::send(new JobDebugNotification($this->jobId, "No join for free buttons found"));
|
||||
|
||||
Reference in New Issue
Block a user