首页 文章

错误“异常AttributeError:”'Service'对象没有带有Robot框架的selenium属性'process'“”

提问于
浏览
0

我有一个Selenium Python测试套件 . 它开始运行show error msg .

意外错误:异常AttributeError:“'服务'对象没有属性'进程'”在dellen of selenium.webdriver.chrome.service.Service对象中,忽略0x040F20B0

警告[警告]关键字“捕获页面屏幕截图”无法在失败时运行:没有打开浏览器

我该如何解决呢?

enter image description here

1 回答

  • 0

    您的实际错误是 "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
    

相关问题