python driver.implicitly_wait()方法报错selenium.common.exceptions.WebDriverException: Message: invalid argument: value must be a non-negative integer
在用python selenium编写自动化测试脚本时遇到的一个坑,记录一下
在使用selenium的隐式等待方法driver.imlicitly_wait(5)方法时,报错selenium.common.exceptions.WebDriverException: Message: invalid argument: value must be a non-negative integer
挠头,这里报错显然是不正确的,因为5就是非负整数
通过一顿baidu google,得出的原因是因为selenium版本的问题,我这里使用的是selenium-3.5.0,将selenium删除重新安装selenium-3.141.0能解决问题了