Fix giveaway prize name #2
This commit is contained in:
@@ -209,7 +209,7 @@ class HellcaseJob extends BrowserJob implements ShouldBeUniqueUntilProcessing
|
|||||||
|
|
||||||
// JobRun
|
// JobRun
|
||||||
// Get the elements text containing class starting with giveaway-entity-prize__
|
// 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
|
// Join their text
|
||||||
$prize = "";
|
$prize = "";
|
||||||
foreach ($prizeElement as $element) {
|
foreach ($prizeElement as $element) {
|
||||||
|
|||||||
Reference in New Issue
Block a user