StaleElementReferenceException: Message: stale element reference: element is not attached to the page document with Selenium and Python
问题 I am working on selenium for a website that consists of dropdown menu. At first, we have the basic codes: from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.support.ui import Select options = Options() browser = webdriver.Chrome(chrome_options= options,executable_path=r'C:\Users...chromedriver.exe') browser.get('http://.../') Then I am implementing the part to work on the dropdown. My goal is to perform something for each dropdown