Hi, I get following error when I run nightwatch.
I have started selenium server manually and I can see the same error in the standalone server console also.
Is it something wrong with the path of the gecko driver. I placed the geckodriver.exe in the lib folder inside the project.
My nightwatch.json also placed below. Please have look at the gecko path.
I will be pleased if you help to solve the issue by looking at the nightwatch.json code.
Error Follows
`Error retrieving a new session from the selenium server
Connection refused! Is selenium server started?
{ sessionId: null,
status: 13,
state: 'unhandled error',
value:
{ message: 'The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see
https://github.com/jgraham/wires. The latest version can be downloaded from
https://github.com/jgraham/wires',
suppressed: [],
localizedMessage: 'The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see
https://github.com/jgraham/wires. The latest version can be downloaded from
https://github.com/jgraham/wires',
cause: null,
class: 'java.lang.IllegalStateException',
hCode: 1379553171,
screen: null },
class: 'org.openqa.selenium.remote.Response',
hCode: 1916691985 }
`
nightwatch.json follows
`{
"src_folders" : ["tests"],
"output_folder" : "reports",
"custom_commands_path" : "",
"custom_assertions_path" : "",
"page_objects_path" : "",
"globals_path" : "",
"selenium" : {
"start_process" : false,
"server_path" : "lib/selenium-server-standalone-2.50.0.jar",
"log_path" : "",
"host" : "127.0.0.1",
"port" : 4444,
"cli_args" : {
"webdriver.gecko.driver" : "lib/geckodriver",
"webdriver.chrome.driver" : "",
"webdriver.ie.driver" : ""
}
},
"test_settings" : {
"default" : {
"launch_url" : "
http://localhost",
"selenium_port" : 4444,
"selenium_host" : "localhost",
"silent": true,
"screenshots" : {
"enabled" : false,
"path" : ""
},
"desiredCapabilities": {
"browserName": "firefox",
"marionette": true,
"javascriptEnabled": true,
"acceptSslCerts": true
}
},
"chrome" : {
"desiredCapabilities": {
"browserName": "chrome",
"javascriptEnabled": true,
"acceptSslCerts": true
}
}
}
}
`
Sample code highly appreciated. Please help to configure with firefox