Fix Eldorado Price not found pt. 2
Some checks failed
Test, build and push image to registry / phpunit-tests (push) Failing after 6m41s
Test, build and push image to registry / build-image (push) Has been cancelled

This commit is contained in:
2026-04-07 18:05:58 +02:00
parent 72e3945620
commit 71ceeaa0e4

View File

@@ -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);