Hi,
I am using Nightwatchjs and cucumber-js to to automate testing on a website. Chrome, Firefox, and Safari work fine in Nightwatchjs, but Edge will not work. I downloaded every single available driver for Mac available here. The version "86.0.622.38" matches the version Edge on my Mac. But all of them show the same error below when started:
Error: Timeout while trying to connect to EdgeDriver on port 4445.
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
dyld: Library not loaded: @rpath/libc++.dylib
Referenced from: /Users/asyranok/nightwatch-js-automation/./msedgedriver
Reason: image not found
I've googled for this error, but I can't find any results related to the edge driver, and none of the results I did find really seemed to make something click for me. Here is the current chunk of code in my nightwatch.conf.js file for edge:
edge: {
desiredCapabilities: {
//alwaysMatch: { 'ms:edgeOptions': { args: ['--headless'] } },
browserName: 'MicrosoftEdge',
javascriptEnabled: true,
acceptSslCerts: true,
edgeOptions:{
w3c: false,
}
},
start_process: false,
webdriver: {
default_path_prefix: '',
server_path: './msedgedriver',
start_process: true,
port: 4445,
use_legacy_jsonwire: true
}
}
Although I am not sure the config matters for this particular issue, because I get the same error if I simply try to execute the binary directly with a mouse click, or by just calling "msedgedriver". I also downloaded the npm edgedriver package, but that always gives me a windows executable binary, so I instead tried downloading the Mac driver and executed in the above way, which is how I ran into this issue.