-
-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛 Bug]: org.openqa.selenium.SessionNotCreatedException while trying to launch MS Edge Browser in IE Mode #11619
Comments
@dsouznelson, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
The issue here is with protected mode. When you move from the local network to a public network it is triggering a security issue Windows 11 removed the easy toggle for this, so you need to adjust some settings in the registry, (or alternately change the start URL to be less likely to change zones). More info here — https://titusfortner.com/2022/09/28/edge-ie-mode.html |
I got the registry updated for all the zones to 3. My workstation is on win 10 20H2 version. import org.openqa.selenium.By; |
Can you provide the internet explorer driver log? |
@titusfortner newSession
D 2023-02-08 12:05:18:239 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(48) Found W3C capabilities structure
D 2023-02-08 12:05:18:239 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(199) Validating alwaysMatch capability set
D 2023-02-08 12:05:18:239 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(673) Validating capabilities object
D 2023-02-08 12:05:18:239 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(220) Validating firstMatch capability set with index 0
D 2023-02-08 12:05:18:239 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(673) Validating capabilities object
D 2023-02-08 12:05:18:240 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(722) Found browserName capability. Validating value type is string.
D 2023-02-08 12:05:18:240 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(989) Found se:ieOptions capability. Validating value type is object.
D 2023-02-08 12:05:18:240 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(279) Processing matched capability set with index 0
W 2023-02-08 12:05:18:240 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(105) Invalid capability setting: timeouts is type null instead of object. Default value will be used: null
D 2023-02-08 12:05:18:240 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(131) path before was
D 2023-02-08 12:05:18:240 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(133) path after was 012F80A0
D 2023-02-08 12:05:18:240 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(157) Ignoring Protected Mode Settings: 0
D 2023-02-08 12:05:18:240 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(160) Checking validity of Protected Mode settings.
D 2023-02-08 12:05:18:240 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(1366) Detected IE version: 11, Windows version supports Protected Mode: 1
D 2023-02-08 12:05:18:240 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(1457) Found Protected Mode setting value of 3 for zone 1
D 2023-02-08 12:05:18:241 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(1457) Found Protected Mode setting value of 3 for zone 2
D 2023-02-08 12:05:18:241 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(1457) Found Protected Mode setting value of 3 for zone 3
D 2023-02-08 12:05:18:241 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(1457) Found Protected Mode setting value of 3 for zone 4
D 2023-02-08 12:05:18:241 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(163) Has Valid Protected Mode Settings: 1
D 2023-02-08 12:05:18:261 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(383) Starting Edge Chromium from the command line
D 2023-02-08 12:05:19:885 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(215) IE launched successfully with process ID 25428
D 2023-02-08 12:05:19:885 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(221) Process with ID 25428 is executing msedge.exe
D 2023-02-08 12:05:19:885 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(504) Using Active Accessibility to find IWebBrowser2 interface
D 2023-02-08 12:05:48:593 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(343) Command: GET /favicon.ico {}
D 2023-02-08 12:05:48:593 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(426) Response: {
"value" :
{
"error" : "unknown command",
"message" : "Command not found: GET /favicon.ico",
"stacktrace" : ""
}
} |
Is there more to the log? I don't think the driver reports a failure to the code for not finding favicon. |
Hi @titusfortner I 2023-02-09 10:23:54:030 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(88) Starting WebDriver server on port: '39850' on host: '' T 2023-02-09 10:23:55:509 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(345) Entering NewSessionCommandHandler::SetTimeoutSettings D 2023-02-09 10:23:55:509 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(133) path after was 00D9C150 T 2023-02-09 10:23:55:509 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(485) Entering NewSessionCommandHandler::SetInputSettings |
Also attaching log after initial browser URL option specified. Here the favicon related error is not occurring I 2023-02-09 10:35:51:962 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(88) Starting WebDriver server on port: '11239' on host: '' T 2023-02-09 10:35:53:163 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(345) Entering NewSessionCommandHandler::SetTimeoutSettings D 2023-02-09 10:35:53:163 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(133) path after was 00D93728 T 2023-02-09 10:35:53:163 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(485) Entering NewSessionCommandHandler::SetInputSettings |
These logs don't appear to match the code you are providing. Can you try launching IEDriver without changing any of the capabilities? The defaults in latest IEDriver should allow everything to "just work" |
Over the weekend my work laptop was upgraded to Win 11. I am now stuck at a point where on button click a new window opens in the AUT. But through ieDriver I get a message that 'a problem with this webpage caused internet explorer to close and reopen the tab in edge mode' |
Closing the issue given that the original reported problem is solved. For subsequent ones, please open a new issue with a reproducible test case so it can be triaged properly. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What happened?
Since IE is no longer supported, I need to move my scripts to work on MS Edge browser.
The application under test only works in IE and Edge browsers and while launching Edge browser, the IE mode needs to be enabled.
I am following the Microsoft has provided steps to run MS EDGE browser in IE Mode. While trying the steps suggested, am getting an exception as given below.
Am using the 32 bit driver for IE. There are 2 browser windows opening and then the exception is thrown. Attaching the screenshot
![Issue - Edge Browser in IE Mode](https://user-images.githubusercontent.com/124584702/216983796-5a05cbcd-51e8-458b-be08-19557674cfcd.png)
How can we reproduce the issue?
Relevant log output
Operating System
Windows 10
Selenium version
Selenium-Java 4.8
What are the browser(s) and version(s) where you see this issue?
Microsoft Edge Version 109.0.1518.78 (Official build) (64-bit)
What are the browser driver(s) and version(s) where you see this issue?
IEDriverServer 4.8
Are you using Selenium Grid?
No
The text was updated successfully, but these errors were encountered: