Category : python

I am getting the following error when trying to parse the last page of my loop and exit the loop once the next (») button no longer exists: selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: » Code: while True: prices = driver.find_element_by_id(‘showAllGraphsButton’) time.sleep(6) s_container = driver.find_element_by_id(‘stockContainer’) stocks = WebDriverWait(s_container, 10).until(EC.visibility_of_all_elements_located((By.CLASS_NAME, "imageRow"))) for stock in stocks: ..

Read more