Python & Selenium: Iterate through list of WebElements Error: StaleElementReferenceException
- 阅读更多 关于 Python & Selenium: Iterate through list of WebElements Error: StaleElementReferenceException
问题 Good afternoon, Somewhat new to Python and webscraping, so any help would be greatly appreciated! First: The Code from selenium import webdriver import time chrome_path = r"/Users/ENTER/Desktop/chromedriver" driver = webdriver.Chrome(chrome_path) site_url = 'https://www.home-school.com/groups/' driver.get(site_url) # get state links from sidebar and store to list area = driver.find_element_by_xpath("""/html/body/center/table/tbody/tr/td/table[3]/tbody/tr/td[2]/div""") items = area.find