element click intercepted
driver.find_element_by_css_selector(".ui-btn-primary").click()
确定了定位没有问题,但是运行的时候点不到,报错信息是"error":"element click intercepted","message":"element click intercepted
改成js点击即可运行
ele = driver.find_element_by_css_selector(".ui-btn-primary") driver.execute_script("arguments[0].click();", ele)
本文来自博客园,作者:OTAKU_nicole,转载请注明原文链接:https://www.cnblogs.com/nicole-zhang/p/15773926.html