SessionNotCreatedException: Mensagem: Não é possível criar um novo serviço: ChromeDriverService com ChromeDriver e SeleniumGrid através do Python
Alguém sabe o que está acontecendo ou como posso depurar o erro da seguinte forma. a etapa que fiz foi usar o comando setup hub e registrar o nó no hub. após o nó de registro de comando. Eu posso ver o log como
The node is registered to the hub and ready to use
No entanto, quando executo o script de teste, tenho um erro de impressão como:
selenium.common.exceptions.SessionNotCreatedException: Message: Unable to create new service: ChromeDriverService
Versões binárias:
ersão independente @selenium: 3.14.0ersão do driver remoto @selenium: selenium == 3.14.1python versão: 3.6.4Roteiro
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)
Hub de configuração:
#java -jar /Users/admin/selenium-server-standalone-3.14.0.jar -host localhost -role hub
Nó de registro:
#java -jar /Users/admin/selenium-server-standalone-3.14.0.jar -role node
Erro
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 info: driver.version: unknown
E Stacktrace:
E at org.openqa.selenium.remote.server.ServicedSession$Factory.lambda$get$0 (ServicedSession.java:134)
E at org.openqa.selenium.remote.server.ServicedSession$Factory.apply (ServicedSession.java:151)
E at org.openqa.selenium.remote.server.ActiveSessionFactory.lambda$apply$12 (ActiveSessionFactory.java:177)
E at java.util.stream.ReferencePipeline$3$1.accept (ReferencePipeline.java:193)
...
E at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:511)
E at java.util.concurrent.FutureTask.run (FutureTask.java:266)
E at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1142)
E at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
E at java.lang.Thread.run (Thread.java:745)
../lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py:242: SessionNotCreatedException