我过去几个月一直在使用的Python脚本今天破了。 该脚本监视调制解调器的来电和文件FTC请勿呼叫投诉。 错误是InvalidArgumentException: Message: invalid argument: value must be a non-negative integer在调用implicitly_wait时, InvalidArgumentException: Message: invalid argument: value must be a non-negative integer 。
我找到了类似的Firefox报告 ,但我没有找到一个Chrome浏览器。 该机器已完全打补丁,因此没有像Firefox报告中那样更新的内容。
有什么问题,我该如何解决?
这是脚本:
$ cat test.py
#!/usr/bin/env python3
import sys
import selenium
import os.path
from packaging import version
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
def get_chrome():
if os.path.isfile('/usr/bin/chromium-browser'):
return '/usr/bin/chromium-browser'
elif os.path.isfile('/usr/bin/chromium'):
return '/usr/bin/chromium'
elif os.path.isfile('