Fix Eldorado price not found
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user