Open shanuwed opened 1 month ago
Same issue a @shanuwed with Remote WebDriver session vs Edge (v127.0.2651.86)
Got similar error to @shanuwed but I am running edge in the container on the linux:
{"traceId": "54fee8d542dc2bbd09d9dc70a0761198","eventTime": 1724889889144116602,"eventName": "exception","attributes": {"driver.url": "http:\u002f\u002flocalhost:22447","exception.message": "Error while creating session with the driver service. Stopping driver service: Could not start a new session. Response code 500. Message: session not created\nfrom chrome not reachable \nHost info: host: 'e551bbeeb7d4', ip: '172.18.0.3'\nBuild info: version: '4.23.1', revision: '656257d8e9'\nSystem info: os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.153.1-microsoft-standard-WSL2', java.version: '17.0.12'\nDriver info: driver.version: unknown","exception.stacktrace": "org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created\nfrom chrome not reachable \nHost info: host: 'e551bbeeb7d4', ip: '172.18.0.3
We have a Selenium automation that works fine when used with ChromeDriver in Azure VMSS. However, when I try with EdgeDriver it crashes:
Depending on which Options I use, the error message can be slightly different (like --remote-debugging-port=):
This is the code that sets up the Options:
I use Edge browser 127.0.2651.74 and the same version of Edge driver, Selenium.WebDriver 4.23.0 on Windows 2016 server. The error seems to happen in prod machine only. I have not been able to repro in other environment (not in windows 11 or non production Windows server.) I've tried these options combinations: 1) (options as EdgeOptions).AddArgument("--remote-debugging-port=4321"); 2) (options as EdgeOptions).AddArgument("--no-sandbox"); and (options as EdgeOptions).AddArgument("--headless"); 3) (options as EdgeOptions).AddArgument("no-sandbox"); and (options as EdgeOptions).AddArgument("disable-dev-shm-usage"); None of them worked. ChromeDriver with the options shown in the above code always works. Can you help?