I believe this issue has been topical but I cannot find a typical answer to resolve mine. I'm running my script in jupyter notebook, python3.8 and selenium driver tool and the other libraries etc.
Goal: Visit webpage and set selenium click collapsible elements on webpage only about 7. Next, I want selenium to move to click a dropdown menu and make a preferred selection option and click to open the appropriate webpage. Thereafter continue elsewhere with the script.
Error: Clicking collapsible elements is working. The error arise just before executing line with variable 'match' ie. the click on dropdown menu. Find in code snippet below:
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.action_chains import ActionChains
element = driver.find_element_by_class_name('xxxx')
webdriver.ActionChains(driver).move_to_element(element ).click(element ).perform()
driver.implicitly_wait(60)
match = WebDriverWait(driver, 60).until(EC.element_to_be_clickable((By.XPATH,'//div[@class="xxxxdropdown"]'))).click()
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…