MSEdgeDriver and browser version used 88.0.705.63 (64 bit).
Works when provided with edge options.addArguments("--headless"); but does not worked when this is removed. The below error is thrown
Message: org.openqa.selenium.WebDriverException: unknown error: DevToolsActivePort file doesn't exist
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'A036T0L6347NRVX', ip: '10.227.221.75', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_66'
Driver info: driver.version: EdgeDriver
remote stacktrace: Backtrace:
Ordinal0 [0x00007FF6D6D0AF92+241554]
GetHandleVerifier [0x00007FF6D747CA88+2173368]
GetHandleVerifier [0x00007FF6D749FAC8+2316792]
GetHandleVerifier [0x00007FF6D7499BC9+2292473]
GetHandleVerifier [0x00007FF6D74CB760+2496144]
GetHandleVerifier [0x00007FF6D74C7A5F+2480527]
GetHandleVerifier [0x00007FF6D74A550A+2339898]
GetHandleVerifier [0x00007FF6D74A614B+2343035]
Ordinal0 [0x00007FF6D6CE2D01+77057]
Edge options used :
EdgeOptions options = new EdgeOptions();
options.addArguments("--no-sandbox");
options.setBinary("C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe");
options.addArguments("--disable-dev-shm-usage"); // overcome limited resource problems
options.addArguments("disable-infobars"); // disabling infobars
options.addArguments("--disable-extensions"); // disabling extensions
options.addArguments("--disable-gpu"); // applicable to windows os only
options.addArguments("--disable-dev-shm-usage");
I searched a lot and find that there're many similar issues: thread 1, thread 2. You can also try another workaround: add --remote-debugging-port=<port>
.
About the cause of the issue, I think this answer makes sense. You can also try the other solution in the answer.