enter image description here 登记 登录 我用python编写的代码
driver.find_element_by_xpath("//div[@id='sectionContainer']//div[@id='login_section_btn']")
#driver.execute_script("arguments[0].setAttribute('class','active_section_btn')", element)
我收到的错误消息是:
Unable to locate element: {"method":"xpath","selector":"//div[@id='sectionContainer']//div[@id='login_section_btn']"} (
您应该使用显式wait for waiting,直到元素正确加载。第二个不可交互的错误元素可能是因为按钮被禁用或其他原因,除非我们能够访问网站或进行屏幕截图,否则很难判断
相关问题 更多 >
编程相关推荐