嗨,任何人都知道发生了什么或我如何调试错误如下。我所做的步骤是使用 setup hub 命令并将节点注册到 hub。在命令注册节点之后。我可以看到日志
The node is registered to the hub and ready to use
Run Code Online (Sandbox Code Playgroud)
但是,当我运行测试脚本时,我将错误打印为:
selenium.common.exceptions.SessionNotCreatedException: Message: Unable to create new service: ChromeDriverService
Run Code Online (Sandbox Code Playgroud)
二进制版本:
脚本:
import os
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
driver = webdriver.Remote(command_executor='http://localhost:4444/wd/hub',
desired_capabilities=DesiredCapabilities.CHROME)
Run Code Online (Sandbox Code Playgroud)
设置中心:
#java -jar /Users/admin/selenium-server-standalone-3.14.0.jar -host localhost -role hub
Run Code Online (Sandbox Code Playgroud)
注册节点:
#java -jar /Users/admin/selenium-server-standalone-3.14.0.jar -role node
Run Code Online (Sandbox Code Playgroud)
错误:
E selenium.common.exceptions.SessionNotCreatedException: Message: Unable to create new service: ChromeDriverService
E Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:13:22.693Z'
E Driver …Run Code Online (Sandbox Code Playgroud) python selenium selenium-grid selenium-chromedriver selenium-webdriver