selenium常见报错总结

来源:互联网 发布:阿里云欠费 编辑:程序博客网 时间:2024/05/16 15:57

1)Element is not currently visible and so may not be interacted with。。。

例如:

运行下面语句会报错,原因是id的元素不唯一,需要更改定位

driver.find_element_by_xpath(//*[@id="oa-file-uploader"]).click()