SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
30.47k stars 8.15k forks source link

[🐛 Bug]: ie mode in edge is fail #11807

Closed iamxiaojianzheng closed 1 year ago

iamxiaojianzheng commented 1 year ago

What happened?

I want to drive edge in IE mode

How can we reproduce the issue?

import org.junit.jupiter.api.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.ie.InternetExplorerOptions;

public class IEModeEdgeTest {

    @Test
    public void test() {
        InternetExplorerOptions ieOptions = new InternetExplorerOptions();
//        ieOptions.attachToEdgeChrome();
//        ieOptions.withEdgeExecutablePath("C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe");
        WebDriver driver = new InternetExplorerDriver(ieOptions);

        // There is a problem with this line
        driver.get("https://bing.com");
    }

}

Relevant log output

Started InternetExplorerDriver server (32-bit)
4.8.0.0
Listening on port 43689
Only local connections are allowed

org.openqa.selenium.TimeoutException: java.util.concurrent.TimeoutException
Build info: version: '4.8.1', revision: '8ebccac989'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_362'
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Command: [4406953e-2977-465b-816d-255fa2c8a836, get {url=https://bing.com}]
Capabilities {acceptInsecureCerts: false, browserName: internet explorer, browserVersion: 11, pageLoadStrategy: normal, platformName: WINDOWS, proxy: Proxy(), se:ieOptions: {browserAttachTimeout: 0, elementScrollBehavior: 0, enablePersistentHover: true, ie.browserCommandLineSwitches: , ie.edgechromium: false, ie.edgepath: , ie.ensureCleanSession: false, ie.fileUploadDialogTimeout: 3000, ie.forceCreateProcessApi: false, ignoreProtectedModeSettings: false, ignoreZoomSetting: true, initialBrowserUrl: http://localhost:43689/, nativeEvents: true, requireWindowFocus: false}, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
Session ID: 4406953e-2977-465b-816d-255fa2c8a836

    at org.openqa.selenium.remote.http.netty.NettyHttpHandler.makeCall(NettyHttpHandler.java:65)
    at org.openqa.selenium.remote.http.AddSeleniumUserAgent.lambda$apply$0(AddSeleniumUserAgent.java:42)
    at org.openqa.selenium.remote.http.Filter.lambda$andFinally$1(Filter.java:56)
    at org.openqa.selenium.remote.http.netty.NettyHttpHandler.execute(NettyHttpHandler.java:49)
    at org.openqa.selenium.remote.http.AddSeleniumUserAgent.lambda$apply$0(AddSeleniumUserAgent.java:42)
    at org.openqa.selenium.remote.http.Filter.lambda$andFinally$1(Filter.java:56)
    at org.openqa.selenium.remote.http.netty.NettyClient.execute(NettyClient.java:99)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:181)
    at org.openqa.selenium.remote.service.DriverCommandExecutor.invokeExecute(DriverCommandExecutor.java:167)
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:142)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543)
    at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:297)
    at com.haigui.tourmaline.selenium.IEModeEdgeTest.test(IEModeEdgeTest.java:20)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:688)
    at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
    at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
    at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
    at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140)
    at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84)
    at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
    at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
    at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
    at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
    at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
    at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
    at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
    at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
    at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:210)
    at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
    at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:206)
    at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:131)
    at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:65)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
    at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
    at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
    at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
    at java.util.ArrayList.forEach(ArrayList.java:1259)
    at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
    at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
    at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
    at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
    at java.util.ArrayList.forEach(ArrayList.java:1259)
    at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
    at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
    at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
    at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
    at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
    at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
    at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
    at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:107)
    at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
    at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
    at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
    at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
    at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
    at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
    at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
    at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53)
    at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:57)
    at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
    at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
    at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
    at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
    at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
Caused by: java.util.concurrent.TimeoutException
    at java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1784)
    at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1928)
    at org.asynchttpclient.netty.NettyResponseFuture.get(NettyResponseFuture.java:206)
    at org.openqa.selenium.remote.http.netty.NettyHttpHandler.makeCall(NettyHttpHandler.java:59)
    ... 81 more

Operating System

Windows11

Selenium version

Java 4.8.1

What are the browser(s) and version(s) where you see this issue?

Edge 111.0.1661.44

What are the browser driver(s) and version(s) where you see this issue?

IEDriverServer 4.8.0 Win32

Are you using Selenium Grid?

No response

github-actions[bot] commented 1 year ago

@iamxiaojianzheng, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

iamxiaojianzheng commented 1 year ago

After opening edge, the browser has been stuck until the last timeout error.

Caused by: org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Host info: host: 'DESKTOP-1Q32E2S', ip: '192.168.56.32'
Build info: version: '4.8.1', revision: '8ebccac989'
System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_231'
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Command: [null, newSession {capabilities=[Capabilities {browserName: internet explorer, se:ieOptions: {ie.edgechromium: true, initialBrowserUrl: about:blank}}], desiredCapabilities=Capabilities {browserName: internet explorer, se:ieOptions: {ie.edgechromium: true, initialBrowserUrl: about:blank}}}]
Capabilities {}
        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:561)
        at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:229)
        at org.openqa.selenium.ie.InternetExplorerDriver.run(InternetExplorerDriver.java:153)
        at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:140)
        at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:117)
        at com.haigui.tourmaline.selenium.driver.InternetWebDriver.<init>(InternetWebDriver.java:39)
        at com.haigui.tourmaline.selenium.driver.builder.DriverBuilder$Builder.ie(DriverBuilder.java:80)
        at com.haigui.tourmaline.selenium.driver.builder.DriverBuilder$Builder$ie$1.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:130)
        at com.haigui.qingting.script.SpireTest.beforeExecute(Script_b00b4be551a83c0f8a710b8aef0f0cc7.groovy:49)
        ... 13 common frames omitted
Caused by: java.lang.RuntimeException: NettyHttpHandler request execution error
        at org.openqa.selenium.remote.http.netty.NettyHttpHandler.makeCall(NettyHttpHandler.java:76)
        at org.openqa.selenium.remote.http.AddSeleniumUserAgent.lambda$apply$0(AddSeleniumUserAgent.java:42)
        at org.openqa.selenium.remote.http.Filter.lambda$andFinally$1(Filter.java:56)
        at org.openqa.selenium.remote.http.netty.NettyHttpHandler.execute(NettyHttpHandler.java:49)
        at org.openqa.selenium.remote.http.AddSeleniumUserAgent.lambda$apply$0(AddSeleniumUserAgent.java:42)
        at org.openqa.selenium.remote.http.Filter.lambda$andFinally$1(Filter.java:56)
        at org.openqa.selenium.remote.http.netty.NettyClient.execute(NettyClient.java:99)
        at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:124)
        at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:106)
        at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:67)
        at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:156)
        at org.openqa.selenium.remote.service.DriverCommandExecutor.invokeExecute(DriverCommandExecutor.java:167)
        at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:142)
        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543)
        ... 24 common frames omitted
Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.TimeoutException: Request timeout to localhost/127.0.0.1:13911 after 180000 ms
        at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
        at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1915)
        at org.asynchttpclient.netty.NettyResponseFuture.get(NettyResponseFuture.java:206)
        at org.openqa.selenium.remote.http.netty.NettyHttpHandler.makeCall(NettyHttpHandler.java:59)
        ... 37 common frames omitted
Caused by: java.util.concurrent.TimeoutException: Request timeout to localhost/127.0.0.1:13911 after 180000 ms
        at org.asynchttpclient.netty.timeout.TimeoutTimerTask.expire(TimeoutTimerTask.java:43)
        at org.asynchttpclient.netty.timeout.RequestTimeoutTimerTask.run(RequestTimeoutTimerTask.java:50)
        at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:669)
        at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:744)
        at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:469)
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        ... 1 common frames omitted
titusfortner commented 1 year ago

Yeah, this is a known issue with the Protected Mode settings. You can see the registry values to update here - https://titusfortner.com/2022/09/28/edge-ie-mode.html

Note that with the latest IE Driver, you no longer need to ignore zoom or set attach in options or give the location of Edge.

iamxiaojianzheng commented 1 year ago

Yeah, this is a known issue with the Protected Mode settings. You can see the registry values to update here - https://titusfortner.com/2022/09/28/edge-ie-mode.html

Note that with the latest IE Driver, you no longer need to ignore zoom or set attach in options or give the location of Edge.

I found that if I set the InitialBrowserUrl to about:blank, edge will block.

iamxiaojianzheng commented 1 year ago

Yeah, this is a known issue with the Protected Mode settings. You can see the registry values to update here - https://titusfortner.com/2022/09/28/edge-ie-mode.html

Note that with the latest IE Driver, you no longer need to ignore zoom or set attach in options or give the location of Edge.

Sorry to bother you, I followed the instructions on your blog. On Windows 11, I succeeded. However, on Windows 10, after opening Edge, it still blocks and does not move until it times out and reports an error.

titusfortner commented 1 year ago

You should have access to change the protected mode settings on Windows 10 in the IE configuration panel without setting the values in the registry. Are you sure you set all the values in the registry the same?

iamxiaojianzheng commented 1 year ago

You should have access to change the protected mode settings on Windows 10 in the IE configuration panel without setting the values in the registry. Are you sure you set all the values in the registry the same?

yes, I'm sure. image image image image image

image image image image

These are my settings for IE

titusfortner commented 1 year ago

Hmm, not sure why it's not working for Windows 10. You can try turning on logging and seeing what it shows:

InternetExplorerDriverService service = new InternetExplorerDriverService.Builder().withLogLevel(InternetExplorerDriverLogLevel.TRACE).build();
InternetExplorerOptions options = new InternetExplorerOptions();
options.attachToEdgeChrome();

driver = new InternetExplorerDriver(service, options);
iamxiaojianzheng commented 1 year ago
I 2023-03-26 17:09:01:882 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(88) Starting WebDriver server on port: '6193' on host: ''
T 2023-03-26 17:09:01:883 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(738) Entering Server::PopulateCommandRepository
T 2023-03-26 17:09:01:883 C:\projects\seleniumhq\selenium\cpp\iedriver\IEServer.cpp(32) Entering IEServer::IEServer
I 2023-03-26 17:09:01:883 C:\projects\seleniumhq\selenium\cpp\iedriver\IEServer.cpp(33) Driver version: 4.8.0.0 (32-bit)
T 2023-03-26 17:09:01:883 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(180) Entering Server::Start
Started InternetExplorerDriver server (32-bit)
4.8.0.0
Listening on port 6193
Log level is set to TRACE
Only local connections are allowed
T 2023-03-26 17:09:02:151 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(234) Entering Server::ProcessRequest
T 2023-03-26 17:09:02:151 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(243) Process request with: URI: /status HTTP verb: GET
body: {}
T 2023-03-26 17:09:02:151 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(334) Entering Server::DispatchCommand
T 2023-03-26 17:09:02:151 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(687) Entering Server::LookupCommand
D 2023-03-26 17:09:02:151 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(343) Command: GET /status {}
T 2023-03-26 17:09:02:151 C:\projects\seleniumhq\selenium\cpp\iedriver\IEServer.cpp(51) Entering IEServer::GetStatus
T 2023-03-26 17:09:02:151 C:\projects\seleniumhq\selenium\cpp\webdriver-server\response.cc(81) Entering Response::SetSuccessResponse
T 2023-03-26 17:09:02:151 C:\projects\seleniumhq\selenium\cpp\webdriver-server\response.cc(87) Entering Response::SetResponse
T 2023-03-26 17:09:02:151 C:\projects\seleniumhq\selenium\cpp\webdriver-server\response.cc(60) Entering Response::Serialize
D 2023-03-26 17:09:02:151 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(426) Response: {
        "value" :
        {
                "build" :
                {
                        "version" : "4.8.0.0 (32-bit)"
                },
                "message" : "Ready to create session",
                "os" :
                {
                        "arch" : "x64",
                        "name" : "windows",
                        "version" : "10.0.19041.2486 (WinBuild.160101.0800)"
                },
                "ready" : true
        }
}
T 2023-03-26 17:09:02:151 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(479) Entering Server::SendResponseToClient
T 2023-03-26 17:09:02:152 C:\projects\seleniumhq\selenium\cpp\webdriver-server\response.cc(30) Entering Response::Deserialize
T 2023-03-26 17:09:02:152 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(540) Entering Server::SendHttpOk
T 2023-03-26 17:09:02:581 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(234) Entering Server::ProcessRequest
T 2023-03-26 17:09:02:581 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(298) Entering Server::ReadRequestBody
T 2023-03-26 17:09:02:581 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(243) Process request with: URI: /session HTTP verb: POST
body: {
  "desiredCapabilities": {
    "se:ieOptions": {
      "ie.edgechromium": true,
      "initialBrowserUrl": "https:\u002f\u002fbing.com",
      "ignoreZoomSetting": true
    },
    "browserName": "internet explorer"
  },
  "capabilities": {
    "firstMatch": [
      {
        "browserName": "internet explorer",
        "se:ieOptions": {
          "ie.edgechromium": true,
          "initialBrowserUrl": "https:\u002f\u002fbing.com",
          "ignoreZoomSetting": true
        }
      }
    ]
  }
}
T 2023-03-26 17:09:02:581 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(334) Entering Server::DispatchCommand
T 2023-03-26 17:09:02:581 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(687) Entering Server::LookupCommand
D 2023-03-26 17:09:02:581 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(343) Command: POST /session {
  "desiredCapabilities": {
    "se:ieOptions": {
      "ie.edgechromium": true,
      "initialBrowserUrl": "https:\u002f\u002fbing.com",
      "ignoreZoomSetting": true
    },
    "browserName": "internet explorer"
  },
  "capabilities": {
    "firstMatch": [
      {
        "browserName": "internet explorer",
        "se:ieOptions": {
          "ie.edgechromium": true,
          "initialBrowserUrl": "https:\u002f\u002fbing.com",
          "ignoreZoomSetting": true
        }
      }
    ]
  }
}
T 2023-03-26 17:09:02:581 C:\projects\seleniumhq\selenium\cpp\iedriver\IEServer.cpp(42) Entering IEServer::InitializeSession
T 2023-03-26 17:09:02:581 C:\projects\seleniumhq\selenium\cpp\iedriver\IESession.cpp(45) Entering IESession::Initialize
D 2023-03-26 17:09:02:581 C:\projects\seleniumhq\selenium\cpp\iedriver\IESession.cpp(60) Mutex acquired for session initalization
T 2023-03-26 17:09:02:583 C:\projects\seleniumhq\selenium\cpp\iedriver\IECommandExecutor.cpp(922) Entering IECommandExecutor::ThreadProc
T 2023-03-26 17:09:02:593 C:\projects\seleniumhq\selenium\cpp\iedriver\IECommandExecutor.cpp(75) Entering IECommandExecutor::OnCreate
T 2023-03-26 17:09:02:593 C:\projects\seleniumhq\selenium\cpp\iedriver\IECommandExecutor.cpp(1707) Entering IECommandExecutor::PopulateElementFinderMethods
T 2023-03-26 17:09:02:593 C:\projects\seleniumhq\selenium\cpp\iedriver\InputManager.cpp(56) Entering InputManager::InputManager
T 2023-03-26 17:09:02:593 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(1315) Entering BrowserFactory::GetEdgeExecutableLocation
T 2023-03-26 17:09:02:593 C:\projects\seleniumhq\selenium\cpp\iedriver\RegistryUtilities.cpp(49) Attempting to get registry value  from HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\msedge.exe
T 2023-03-26 17:09:02:593 C:\projects\seleniumhq\selenium\cpp\iedriver\RegistryUtilities.cpp(133) Retrieved value C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
T 2023-03-26 17:09:02:593 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(1255) Entering BrowserFactory::GetIEExecutableLocation
T 2023-03-26 17:09:02:593 C:\projects\seleniumhq\selenium\cpp\iedriver\RegistryUtilities.cpp(49) Attempting to get registry value {1FD49718-1D00-4B19-AF5F-070AF6D5D54C} from HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Ext\CLSID
T 2023-03-26 17:09:02:594 C:\projects\seleniumhq\selenium\cpp\iedriver\RegistryUtilities.cpp(133) Retrieved value 0
T 2023-03-26 17:09:02:594 C:\projects\seleniumhq\selenium\cpp\iedriver\RegistryUtilities.cpp(49) Attempting to get registry value  from HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetExplorer.Application\CLSID
T 2023-03-26 17:09:02:594 C:\projects\seleniumhq\selenium\cpp\iedriver\RegistryUtilities.cpp(133) Retrieved value {0002DF01-0000-0000-C000-000000000046}
T 2023-03-26 17:09:02:594 C:\projects\seleniumhq\selenium\cpp\iedriver\RegistryUtilities.cpp(49) Attempting to get registry value  from HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0002DF01-0000-0000-C000-000000000046}\LocalServer32
T 2023-03-26 17:09:02:594 C:\projects\seleniumhq\selenium\cpp\iedriver\RegistryUtilities.cpp(133) Retrieved value "%ProgramFiles%\Internet Explorer\iexplore.exe"
T 2023-03-26 17:09:02:594 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(1344) Entering BrowserFactory::GetIEVersion
T 2023-03-26 17:09:02:597 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlerRepository.cpp(110) Entering CommandHandlerRepository::PopulateCommandHandlers
T 2023-03-26 17:09:02:597 C:\projects\seleniumhq\selenium\cpp\iedriver\IESession.cpp(106) Created thread for command executor returns HWND: '000C010A'
T 2023-03-26 17:09:02:598 C:\projects\seleniumhq\selenium\cpp\iedriver\IESession.cpp(110) Session id is retrived from command executor window: '0a23787e-6229-48e9-8192-da21fcaaa054'
D 2023-03-26 17:09:02:598 C:\projects\seleniumhq\selenium\cpp\iedriver\IESession.cpp(116) Releasing session initialization mutex
T 2023-03-26 17:09:02:598 C:\projects\seleniumhq\selenium\cpp\iedriver\IESession.cpp(198) Entering IESession::ExecuteCommand
T 2023-03-26 17:09:02:598 C:\projects\seleniumhq\selenium\cpp\iedriver\IECommandExecutor.cpp(156) Entering IECommandExecutor::OnSetCommand
T 2023-03-26 17:09:02:598 C:\projects\seleniumhq\selenium\cpp\webdriver-server\command.cc(31) Entering Command::Deserialize
D 2023-03-26 17:09:02:598 C:\projects\seleniumhq\selenium\cpp\webdriver-server\command.cc(36) Raw JSON command: { "name" : "newSession", "locator" : { }, "parameters" : {
  "desiredCapabilities": {
    "se:ieOptions": {
      "ie.edgechromium": true,
      "initialBrowserUrl": "https:\u002f\u002fbing.com",
      "ignoreZoomSetting": true
    },
    "browserName": "internet explorer"
  },
  "capabilities": {
    "firstMatch": [
      {
        "browserName": "internet explorer",
        "se:ieOptions": {
          "ie.edgechromium": true,
          "initialBrowserUrl": "https:\u002f\u002fbing.com",
          "ignoreZoomSetting": true
        }
      }
    ]
  }
} }
T 2023-03-26 17:09:02:599 C:\projects\seleniumhq\selenium\cpp\webdriver-server\command.cc(31) Entering Command::Deserialize
D 2023-03-26 17:09:02:599 C:\projects\seleniumhq\selenium\cpp\webdriver-server\command.cc(36) Raw JSON command: { "name" : "newSession", "locator" : { }, "parameters" : {
  "desiredCapabilities": {
    "se:ieOptions": {
      "ie.edgechromium": true,
      "initialBrowserUrl": "https:\u002f\u002fbing.com",
      "ignoreZoomSetting": true
    },
    "browserName": "internet explorer"
  },
  "capabilities": {
    "firstMatch": [
      {
        "browserName": "internet explorer",
        "se:ieOptions": {
          "ie.edgechromium": true,
          "initialBrowserUrl": "https:\u002f\u002fbing.com",
          "ignoreZoomSetting": true
        }
      }
    ]
  }
} }
T 2023-03-26 17:09:02:599 C:\projects\seleniumhq\selenium\cpp\iedriver\IECommandExecutor.cpp(178) Entering IECommandExecutor::OnExecCommand
T 2023-03-26 17:09:02:599 C:\projects\seleniumhq\selenium\cpp\iedriver\IECommandExecutor.cpp(994) Entering IECommandExecutor::DispatchCommand
D 2023-03-26 17:09:02:599 C:\projects\seleniumhq\selenium\cpp\iedriver\IECommandExecutor.cpp(1059) Executing command: newSession
D 2023-03-26 17:09:02:599 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(48) Found W3C capabilities structure
T 2023-03-26 17:09:02:599 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(183) Entering NewSessionCommandHandler::ValidateArguments
D 2023-03-26 17:09:02:599 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(199) Validating alwaysMatch capability set
T 2023-03-26 17:09:02:599 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(672) Entering NewSessionCommandHandler::ValidateCapabilities
D 2023-03-26 17:09:02:599 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(673) Validating capabilities object
D 2023-03-26 17:09:02:599 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(220) Validating firstMatch capability set with index 0
T 2023-03-26 17:09:02:599 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(672) Entering NewSessionCommandHandler::ValidateCapabilities
D 2023-03-26 17:09:02:599 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(673) Validating capabilities object
D 2023-03-26 17:09:02:599 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(722) Found browserName capability. Validating value type is string.
D 2023-03-26 17:09:02:599 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(989) Found se:ieOptions capability. Validating value type is object.
T 2023-03-26 17:09:02:629 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(648) Entering NewSessionCommandHandler::MergeCapabilities
T 2023-03-26 17:09:02:629 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(274) Entering NewSessionCommandHandler::ProcessCapabilities
T 2023-03-26 17:09:02:629 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(589) Entering NewSessionCommandHandler::MatchCapabilities
D 2023-03-26 17:09:02:630 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(279) Processing matched capability set with index 0
T 2023-03-26 17:09:02:630 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability unhandledPromptBehavior
T 2023-03-26 17:09:02:630 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability pageLoadStrategy
T 2023-03-26 17:09:02:630 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(167) Entering NewSessionCommandHandler::GetPageLoadStrategyValue
T 2023-03-26 17:09:02:630 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability strictFileInteractability
T 2023-03-26 17:09:02:630 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability timeouts
W 2023-03-26 17:09:02:630 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

T 2023-03-26 17:09:02:630 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(345) Entering NewSessionCommandHandler::SetTimeoutSettings
T 2023-03-26 17:09:02:630 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(364) Entering NewSessionCommandHandler::SetBrowserFactorySettings
T 2023-03-26 17:09:02:630 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability ignoreProtectedModeSettings
T 2023-03-26 17:09:02:630 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability ignoreZoomSetting
T 2023-03-26 17:09:02:630 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability browserAttachTimeout
T 2023-03-26 17:09:02:630 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability initialBrowserUrl
T 2023-03-26 17:09:02:630 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability ie.forceCreateProcessApi
T 2023-03-26 17:09:02:630 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability ie.forceShellWindowsApi
T 2023-03-26 17:09:02:630 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability ie.browserCommandLineSwitches
T 2023-03-26 17:09:02:630 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability ie.ensureCleanSession
T 2023-03-26 17:09:02:630 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability ie.edgechromium
T 2023-03-26 17:09:02:674 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability ie.edgepath
T 2023-03-26 17:09:02:674 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(121) Entering BrowserFactory::Initialize
D 2023-03-26 17:09:02:674 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(131) path before was

D 2023-03-26 17:09:02:674 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(133) path after was 06937F70

T 2023-03-26 17:09:02:674 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(485) Entering NewSessionCommandHandler::SetInputSettings
T 2023-03-26 17:09:02:674 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability nativeEvents
T 2023-03-26 17:09:02:674 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability elementScrollBehavior
T 2023-03-26 17:09:02:674 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability requireWindowFocus
T 2023-03-26 17:09:02:674 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability ie.fileUploadDialogTimeout
T 2023-03-26 17:09:02:674 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability enablePersistentHover
T 2023-03-26 17:09:02:674 C:\projects\seleniumhq\selenium\cpp\iedriver\InputManager.cpp(82) Entering InputManager::Initialize
T 2023-03-26 17:09:02:674 C:\projects\seleniumhq\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(532) Entering NewSessionCommandHandler::CreateReturnedCapabilities
T 2023-03-26 17:09:02:674 C:\projects\seleniumhq\selenium\cpp\iedriver\IECommandExecutor.cpp(1581) Entering IECommandExecutor::CreateNewBrowser
T 2023-03-26 17:09:02:674 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(153) Entering BrowserFactory::LaunchBrowserProcess
D 2023-03-26 17:09:02:674 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(157) Ignoring Protected Mode Settings: 0
D 2023-03-26 17:09:02:674 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(160) Checking validity of Protected Mode settings.
T 2023-03-26 17:09:02:675 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(1363) Entering BrowserFactory::ProtectedModeSettingsAreValid
D 2023-03-26 17:09:02:675 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(1366) Detected IE version: 11, Windows version supports Protected Mode: 1
T 2023-03-26 17:09:02:675 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(1440) Entering BrowserFactory::GetZoneProtectedModeSetting
D 2023-03-26 17:09:02:675 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(1457) Found Protected Mode setting value of 3 for zone 1
T 2023-03-26 17:09:02:675 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(1440) Entering BrowserFactory::GetZoneProtectedModeSetting
D 2023-03-26 17:09:02:675 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(1457) Found Protected Mode setting value of 3 for zone 2
T 2023-03-26 17:09:02:675 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(1440) Entering BrowserFactory::GetZoneProtectedModeSetting
D 2023-03-26 17:09:02:675 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(1457) Found Protected Mode setting value of 3 for zone 3
T 2023-03-26 17:09:02:675 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(1440) Entering BrowserFactory::GetZoneProtectedModeSetting
D 2023-03-26 17:09:02:675 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(1457) Found Protected Mode setting value of 3 for zone 4
D 2023-03-26 17:09:02:685 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(163) Has Valid Protected Mode Settings: 1
T 2023-03-26 17:09:02:685 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(239) Entering BrowserFactory::IsIELaunchURLAvailable
T 2023-03-26 17:09:02:799 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(141) Entering BrowserFactory::ClearCache
T 2023-03-26 17:09:02:799 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(382) Entering BrowserFactory::LaunchEdgeInIEMode
D 2023-03-26 17:09:02:799 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(383) Starting Edge Chromium from the command line
T 2023-03-26 17:09:02:801 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(404) 7582F598C:\Users\haigui\AppData\Local\Temp\IEDriver-37e46730-df83-4ae6-a15e-aa068472b08b.
T 2023-03-26 17:09:02:801 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(428) IE starting command line is: 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe --ie-mode-force --internet-explorer-integration=iemode --user-data-dir=C:\Users\haigui\AppData\Local\Temp\IEDriver-37e46730-df83-4ae6-a15e-aa068472b08b --no-first-run --no-service-autorun --disable-sync --disable-features=msImplicitSignin --disable-popup-blocking --enable-features=msIEModeAlwaysWaitForUnload https://bing.com'.
T 2023-03-26 17:09:03:052 C:\projects\seleniumhq\selenium\cpp\iedriver\IESession.cpp(226) Beginning wait for response length to be not zero
D 2023-03-26 17:09:03:052 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(215) IE launched successfully with process ID 6236
D 2023-03-26 17:09:03:052 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(221) Process with ID 6236 is executing msedge.exe
T 2023-03-26 17:09:03:052 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(494) Entering BrowserFactory::AttachToBrowser
D 2023-03-26 17:09:03:052 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(504) Using Active Accessibility to find IWebBrowser2 interface
T 2023-03-26 17:09:03:052 C:\projects\seleniumhq\selenium\cpp\iedriver\BrowserFactory.cpp(555) Entering BrowserFactory::AttachToBrowserUsingActiveAccessibility
T 2023-03-26 17:12:02:296 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(234) Entering Server::ProcessRequest
T 2023-03-26 17:12:02:296 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(243) Process request with: URI: /shutdown HTTP verb: GET
body: {}
T 2023-03-26 17:12:02:296 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(540) Entering Server::SendHttpOk
T 2023-03-26 17:12:02:297 C:\projects\seleniumhq\selenium\cpp\iedriver\IEServer.cpp(88) Entering IEServer::ShutDown
T 2023-03-26 17:12:02:298 C:\projects\seleniumhq\selenium\cpp\iedriver\WebDriver.cpp(54) Entering StopServer
T 2023-03-26 17:12:02:298 C:\projects\seleniumhq\selenium\cpp\webdriver-server\server.cc(225) Entering Server::Stop

Caused by: org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Host info: host: 'DESKTOP-1Q32E2S', ip: '192.168.56.32'
Build info: version: '4.8.1', revision: '8ebccac989'
System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_231'
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Command: [null, newSession {capabilities=[Capabilities {browserName: internet explorer, se:ieOptions: {ie.edgechromium: true, ignoreZoomSetting: true, initialBrowserUrl: https://bing.com}}], desiredCapabilities=Capabilities {browserName: internet explorer, se:ieOptions: {ie.edgechromium: true, ignoreZoomSetting: true, initialBrowserUrl: https://bing.com}}}]
Capabilities {}
        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:561)
        at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:229)
        at org.openqa.selenium.ie.InternetExplorerDriver.run(InternetExplorerDriver.java:153)
        at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:140)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        ... 13 common frames omitted
Caused by: java.lang.RuntimeException: NettyHttpHandler request execution error
        at org.openqa.selenium.remote.http.netty.NettyHttpHandler.makeCall(NettyHttpHandler.java:76)
        at org.openqa.selenium.remote.http.AddSeleniumUserAgent.lambda$apply$0(AddSeleniumUserAgent.java:42)
        at org.openqa.selenium.remote.http.Filter.lambda$andFinally$1(Filter.java:56)
        at org.openqa.selenium.remote.http.netty.NettyHttpHandler.execute(NettyHttpHandler.java:49)
        at org.openqa.selenium.remote.http.AddSeleniumUserAgent.lambda$apply$0(AddSeleniumUserAgent.java:42)
        at org.openqa.selenium.remote.http.Filter.lambda$andFinally$1(Filter.java:56)
        at org.openqa.selenium.remote.http.netty.NettyClient.execute(NettyClient.java:99)
        at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:124)
        at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:106)
        at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:67)
        at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:156)
        at org.openqa.selenium.remote.service.DriverCommandExecutor.invokeExecute(DriverCommandExecutor.java:167)
        at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:142)
        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543)
        ... 26 common frames omitted
Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.TimeoutException: Request timeout to localhost/127.0.0.1:6193 after 180000 ms
        at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
        at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1915)
        at org.asynchttpclient.netty.NettyResponseFuture.get(NettyResponseFuture.java:206)
        at org.openqa.selenium.remote.http.netty.NettyHttpHandler.makeCall(NettyHttpHandler.java:59)
        ... 39 common frames omitted
Caused by: java.util.concurrent.TimeoutException: Request timeout to localhost/127.0.0.1:6193 after 180000 ms
        at org.asynchttpclient.netty.timeout.TimeoutTimerTask.expire(TimeoutTimerTask.java:43)
        at org.asynchttpclient.netty.timeout.RequestTimeoutTimerTask.run(RequestTimeoutTimerTask.java:50)
        at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:669)
        at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:744)
        at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:469)
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        ... 1 common frames omitted
iamxiaojianzheng commented 1 year ago

image

Windows 10 on the left and Windows 11 on the right. The results of the two debugs are different.

titusfortner commented 1 year ago

Hmm, I can't tell what is going on here. ☹️ Can you try with 4.8.3?

iamxiaojianzheng commented 1 year ago

Hmm, I can't tell what is going on here. ☹️ Can you try with 4.8.3?

I tried version 4.8.3, but it still doesn't solve the problem. By looking at the trace log, I guess it is caused by the coexistence of Edge and IE in Windows 10?

By comparing the logs, I found that the key log is after the line "Entering BrowserFactory::AttachToBrowserUsingActiveAccessibility". Under normal circumstances, "Looking for 25376" should be output, but when testing in Windows 10, there is no such line of log, and it has been blocked at "Entering BrowserFactory::AttachToBrowserUsingActiveAccessibility".

image

titusfortner commented 1 year ago

On Windows 10, are you sending: ieOptions.attachToEdgeChrome(); It only automatically uses Edge if IE is not set to be used.

iamxiaojianzheng commented 1 year ago

On Windows 10, are you sending: ieOptions.attachToEdgeChrome(); It only automatically uses Edge if IE is not set to be used.

Here is the code I tested.

InternetExplorerDriverService service = new InternetExplorerDriverService.Builder().withLogLevel(InternetExplorerDriverLogLevel.TRACE).build();
InternetExplorerOptions defaultOptions = new InternetExplorerOptions();
defaultOptions.attachToEdgeChrome();
defaultOptions.ignoreZoomSettings();
defaultOptions.withInitialBrowserUrl("https://bing.com");
System.setProperty(InternetExplorerDriverService.IE_DRIVER_EXE_PROPERTY, "C:\\Users\\JIAHE\\.cache\\selenium\\IEDriverServer\\win32\\4.8.3\\IEDriverServer.exe");
ieDriver = new InternetWebDriver(new InternetExplorerDriver(service, defaultOptions));
iamxiaojianzheng commented 1 year ago

On Windows 10, are you sending: ieOptions.attachToEdgeChrome(); It only automatically uses Edge if IE is not set to be used.

Here is the code I tested.

InternetExplorerDriverService service = new InternetExplorerDriverService.Builder().withLogLevel(InternetExplorerDriverLogLevel.TRACE).build();
InternetExplorerOptions defaultOptions = new InternetExplorerOptions();
defaultOptions.attachToEdgeChrome();
defaultOptions.ignoreZoomSettings();
defaultOptions.withInitialBrowserUrl("https://bing.com");
System.setProperty(InternetExplorerDriverService.IE_DRIVER_EXE_PROPERTY, "C:\\Users\\JIAHE\\.cache\\selenium\\IEDriverServer\\win32\\4.8.3\\IEDriverServer.exe");
ieDriver = new InternetWebDriver(new InternetExplorerDriver(service, defaultOptions));

I have tried with or without this parameter.

defaultOptions.attachToEdgeChrome();
iamxiaojianzheng commented 1 year ago

On Windows 10, are you sending: ieOptions.attachToEdgeChrome(); It only automatically uses Edge if IE is not set to be used.

The problem I'm having is actually the same as this issue-11848.

diemol commented 1 year ago

@iamxiaojianzheng the problem in the other issue is when they run on Admin mode. I do not think it is the same problem.

I tried to get a Windows 10 VM to reproduce your issue but sadly I could not find any, seems Microsoft stopped to provide them. I am not sure how to troubleshoot the issue.

Could you please report this issue to the Edge folks and see if they can find why it works on Windows 11 but not on Windows 10?

github-actions[bot] commented 1 year ago

Hi, @iamxiaojianzheng. This issue has been determined to require fixes in MSEdgeDriver or in the IE Mode in Edge.

You can see if the feature is passing in the Web Platform Tests.

If it is something new, please create an Issue with the MSEdgeDriver team.

Feel free to comment the issues that you raise back in this issue. Thank you.

iamxiaojianzheng commented 1 year ago

@iamxiaojianzheng the problem in the other issue is when they run on Admin mode. I do not think it is the same problem.

I tried to get a Windows 10 VM to reproduce your issue but sadly I could not find any, seems Microsoft stopped to provide them. I am not sure how to troubleshoot the issue.

Could you please report this issue to the Edge folks and see if they can find why it works on Windows 11 but not on Windows 10?

Sorry, I overlooked the problem of starting with administrator privileges in the previous test. On Windows 11, I started it normally, and on Windows 10, I started it as administrator. Today I did not start as an administrator on Windows 10, and found that it can be driven.

diemol commented 1 year ago

Great. Glad you found a way to fix it.

iamxiaojianzheng commented 1 year ago

@iamxiaojianzheng the problem in the other issue is when they run on Admin mode. I do not think it is the same problem.

I tried to get a Windows 10 VM to reproduce your issue but sadly I could not find any, seems Microsoft stopped to provide them. I am not sure how to troubleshoot the issue.

Could you please report this issue to the Edge folks and see if they can find why it works on Windows 11 but not on Windows 10?

So, according to my test performance on Windows 10, the problem with [issues-11848](https://github.com/SeleniumHQ/selenium/issues/11848 is a problem). If started with administrator privileges, there will be blocking problems.

github-actions[bot] commented 10 months ago

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.