My current selenium javascript test setup includes the following chromedriver configuration:
const {Builder, By, Key, until} = require('..');
const webdriver = require('selenium-webdriver');
var driver = new webdriver.Builder().forBrowser('chrome').build();
I have followed the instructions to add IEDriverServer.exe to my PATH and verified the correct location and filename. Additionally, I have added the DWORD registry as per the tutorial. While all my configurations seem correct, I suspect I may be making incorrect assumptions about running tests with chrome versus internet explorer.
Here is what I am currently doing to run my IE Test:
const {Builder, By, Key, until} = require('..');const webdriver = require('selenium-webdriver');
var driver = new webdriver.Builder().forBrowser('internet explorer').build();
- Start Selenium Server by running java -jar selenium-server-standalone-3.9.0.jar in command prompt
- Double click on IEDriverServer.exe in another window to start it
- In a 3rd command prompt window, navigate to the folder where my tests and drivers are located and run the test using "node test2.js"
However, I encounter 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 assistance on this matter would be greatly appreciated. Thank you!