Fix join giveaway button not found

This commit is contained in:
2025-09-12 18:00:09 +02:00
parent 59993fc33c
commit cb2d82af57

View File

@@ -156,7 +156,7 @@ class HellcaseJob extends BrowserJob implements ShouldBeUniqueUntilProcessing
private function joinFreeGiveaways(Browser $browser) private function joinFreeGiveaways(Browser $browser)
{ {
try { 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) { } catch (\Exception $e) {
$browser->screenshot(JobDebugScreenshot::getFileName($this->jobId)); $browser->screenshot(JobDebugScreenshot::getFileName($this->jobId));
AllNotification::send(new JobDebugNotification($this->jobId, "No join for free buttons found")); AllNotification::send(new JobDebugNotification($this->jobId, "No join for free buttons found"));