Fix giveaway prize name #2
Some checks failed
Test, build and push image to registry / phpunit-tests (push) Successful in 4m22s
Test, build and push image to registry / build-image (push) Has been cancelled

This commit is contained in:
2025-11-07 10:03:30 +01:00
parent c61750285a
commit 2611701d53

View File

@@ -209,7 +209,7 @@ class HellcaseJob extends BrowserJob implements ShouldBeUniqueUntilProcessing
// JobRun
// Get the elements text containing class starting with giveaway-entity-prize__
$prizeElement = $browser->driver->findElements(WebDriverBy::xpath('//div[starts-with(@class, "_giveaway_")]'));
$prizeElement = $browser->driver->findElements(WebDriverBy::xpath('//div[starts-with(@class, "_giveaway_")]//div[contains(@class, "_main_dv7x6_48")]'));
// Join their text
$prize = "";
foreach ($prizeElement as $element) {