Fix Eldorado price not found
Some checks failed
Test, build and push image to registry / build-image (push) Has been cancelled
Test, build and push image to registry / phpunit-tests (push) Has been cancelled

This commit is contained in:
2026-04-07 18:05:14 +02:00
parent d7fdaa1c95
commit 72e3945620

View File

@@ -208,7 +208,7 @@ class EldoradoRobuxPriceSentryJob extends BrowserJob implements ShouldBeUniqueUn
private function getFirstOffer(Browser $browser): EldoradoRobuxOffer
{
$lowestPriceElement = $browser->driver->findElement(WebDriverBy::xpath('(//eld-offer-price)[2]/strong'));
$lowestPriceElement = $browser->driver->findElement(WebDriverBy::xpath('(//eld-offer-price)[2]//strong'));
$lowestPriceText = $lowestPriceElement->getText(); // Ex: " 0,00478 € "
$lowestPrice = $this->textToFloat($lowestPriceText);
//$lowestPrice = $lowestPrice / 1000; // Price per Robux