Failed to create new geckodriver service; standalone selenium server;

I am facing the same problem as Java, but the answers there do not help me, I have a standalone selenium server.

I am using Java Version "1.8.0_144"
Java (TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot (TM) 64-bit server VM (build 25.144-b01, mixed mode)
Windows 8.1

11:10: 47.836 INFO - information about the assembly of Selenium: version: "3.5.3", version: "a88d25fe6b"

and try to start a standalone selenium server. Startup Protocol:

C:\Java_External_Jars_e_g_Selenium>"C:\Program Files\Java\jdk1.8.0_144\bin\java" -jar "C:\Java_External_Jars_e_g_Selenium\selenium-server-standalone-3.5.3.jar" 11:10:47.836 INFO - Selenium build info: version: '3.5.3', revision: 'a88d25fe6b ' 11:10:47.837 INFO - Launching a standalone Selenium Server 2017-08-31 11:10:47.858:INFO::main: Logging initialized @259ms to org.seleniumhq .jetty9.util.log.StdErrLog 11:10:47.912 INFO - Driver class not found: com.opera.core.systems.OperaDriver 11:10:47.943 INFO - Driver provider class org.openqa.selenium.safari.SafariDrive r registration is skipped: registration capabilities Capabilities [{browserName=safari, version=, platform =MAC}] does not match the current platform WIN8_1 11:10:47.983 INFO - Using the passthrough mode handler 2017-08-31 11:10:48.009:INFO:osjs.Server:main: jetty-9.4.5.v20170502 2017-08-31 11:10:48.031:WARN:osjs.SecurityHandler:main: ServletContext@o.s.j.s.S ervletContextHandler@eec5a4a {/,null,STARTING} has uncovered http methods for pat h: / 2017-08-31 11:10:48.036:INFO:osjsh.ContextHandler:main: Started osjsServletC ontextHandler@eec5a4a {/,null,AVAILABLE} 2017-08-31 11:10:48.137:INFO:osjs.AbstractConnector:main: Started ServerConnecto r@1f7030a6 {HTTP/1.1,[http/1.1]}{0.0.0.0:4444} 2017-08-31 11:10:48.138:INFO:osjs.Server:main: Started @539ms 11:10:48.138 INFO - Selenium Server is up and running 

running the Selenium script, I wrote that I got an error on the first statement, talking about going to the URL:

Server error: cannot create a new service: GeckoDriverService Assembly information: version: "3.5.3", version: "a88d25fe66", time "2017-08-29T12: 54: 15.039Z" System information: host: PAVILION17 'ip: 192.168 .178.39 ', os.name:' windows 8.1 ', os.arch:' amd64 ', os.version: 6.3, java

+5
source share
1 answer

In your jar command, you will not specify -Dwebdriver.gecko.driver=C:\path\to\geckodriver.exe . I believe you need to add this to your java command. It should look something like this:

 "C:\Program Files\Java\jdk1.8.0_144\bin\java" -jar -Dwebdriver.gecko.driver="C:\path\to\geckodriver.exe" "C:\Java_External_Jars_e_g_Selenium\selenium-server-standalone-3.5.3.jar" 

This will ensure that your standalone selenium server is aware of the binary gecko driver code that will be used to launch the Firefox browser. You can download the gecko driver binary from the github mozilla / geckodriver release page .

+5
source

Source: https://habr.com/ru/post/1271393/


All Articles