I currently have my selenium javascript test set up with the chromedriver configuration below:
const {Builder, By, Key, until} = require('..');
const webdriver = require('selenium-webdriver');
var driver = new webdriver.Builder().forBrowser('chrome').build();
I followed the instructions that tell you to insert the IEDriverServer.exe in your PATH which I have done and confirmed it is the correct location and file naem. I have also added in the DWORD registry as the same tutorial tells me. All my configuration is correct but I think I am making some assumptions about how things are run with chrome vs. internet explorer.
Here's what I'm doing to run my IE Test, please correct me if I am wrong: new configuration code: const {Builder, By, Key, until} = require('..');
const webdriver = require('selenium-webdriver');
var driver = new webdriver.Builder().forBrowser('internet explorer').build();
- Start Selenium Server java -jar selenium-server-standalone-3.9.0.jar in command prompt
- Start IEDriverServer.exe in another window by double clicking the .exe file
- In a 3rd command prompt window, cd to my folder where my tests and drivers are located and run the test using "node test2.js"
I get the following error message:
Error: ECONNREFUSED connect ECONNREFUSED 127.0.0.1:60381
at ClientRequest.<anonymous> (<file path omitted>\index.js:244:15)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Any help is appreciated. Thank you!