Python Selenium StaleElementReferenceException Finding Element by xpath -


so have been using selenium open webpage , wait specific element loaded. once that's loaded, i'm finding element within first element that's loaded , getting value element. but, every time run code staleelementreferenceexception on line says price = float(...). weird me because didn't crash on line before has same xpath search. i'm new this, appreciated!

browser.get(url + page) element = webdriverwait(browser, 10).until(ec.presence_of_element_located((by.id, "searchresultstable")))  price_element = element.find_element_by_xpath("//div[@class='market_listing_row market_recent_listing_row market_listing_searchresult']") price = float(price_element.find_element_by_xpath("//span[@style='color:white']").text[:1]) 


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -