diff --git a/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceSentryJob.php b/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceSentryJob.php index a407bcb..cfe67d6 100644 --- a/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceSentryJob.php +++ b/app/Browser/Jobs/EldoradoRobuxPriceSentry/EldoradoRobuxPriceSentryJob.php @@ -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