我有一个Selenium Python测试套件 . 它开始运行show error msg .
意外错误:异常AttributeError:“'服务'对象没有属性'进程'”在dellen of selenium.webdriver.chrome.service.Service对象中,忽略0x040F20B0
和
警告[警告]关键字“捕获页面屏幕截图”无法在失败时运行:没有打开浏览器
我该如何解决呢?
您的实际错误是 "WebDriverException: Message: 'chromedriver' executable needs to be available in the path"
从https://sites.google.com/a/chromium.org/chromedriver/downloads下载Chrome驱动程序
然后设置chrome驱动程序的路径
*** Settings *** Library OperatingSystem *** Keywords **** Set Environment Variable webdriver.chrome.driver ${PATHTODRIVER}/chromedriver.exe
1 回答
您的实际错误是 "WebDriverException: Message: 'chromedriver' executable needs to be available in the path"
从https://sites.google.com/a/chromium.org/chromedriver/downloads下载Chrome驱动程序
然后设置chrome驱动程序的路径