Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
268 views
in Technique[技术] by (71.8m points)

python 3.x - My Script running on Selenium driver throwing ECIE error no matter what?

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()



与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...