Fix Eldorado Price not found pt. 2
This commit is contained in:
@@ -187,7 +187,7 @@ class EldoradoRobuxPriceSentryJob extends BrowserJob implements ShouldBeUniqueUn
|
|||||||
// Other offers
|
// Other offers
|
||||||
$offerCardElements = $this->getOffersCardElements($browser);
|
$offerCardElements = $this->getOffersCardElements($browser);
|
||||||
foreach ($offerCardElements as $index => $offerCardElement) {
|
foreach ($offerCardElements as $index => $offerCardElement) {
|
||||||
$priceElement = $offerCardElement->findElement(WebDriverBy::xpath('.//eld-offer-price/strong'));
|
$priceElement = $offerCardElement->findElement(WebDriverBy::xpath('.//eld-offer-price//strong'));
|
||||||
$priceText = $priceElement->getText(); // Ex: " 0,00520 € "
|
$priceText = $priceElement->getText(); // Ex: " 0,00520 € "
|
||||||
$price = $this->textToFloat($priceText);
|
$price = $this->textToFloat($priceText);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user