MicrosoftEdge / EdgeWebDriver

Feedback and discussions about WebDriver for Microsoft Edge
MIT License
56 stars 7 forks source link

Selenium Edge with IEMode( IEDriverServer (4.0.0.0) Unable to create session when run on locked VDI #15

Open Gauravgupta1501 opened 2 years ago

Gauravgupta1501 commented 2 years ago

What happened? Scenario- Execution of the selenium code in the locked window or on some remote desktop. Issue- Following error is encountered whenever the selenium script is put on execution while window is locked. Error- java.net.SocketException: Connection reset.

Same code is working fine when the window is unlocked. Though I have used the "requireWindowFocus()" capability also yet the issue persists. It works fine even with IE using same IE driver.. no error on locking the window...Only IE comp mode in edge is generating the error on locking the window... Are there any specific settings or capabilities that needs to be enabled to resolve this issue?

The above scenario works with the following setup Selenium 4 IE Driver Server 4.0.0 IE 11.

The above scenario doesn't work with following setup Selenium 4 IE Driver Server 4.0.0 IE Compatibility mode in Edge

How can we reproduce the issue? here is the code that is being used to launch the browser in IE compatibility mode in Edge.

private WebDriver initIEDriver(String appURL) {
        try {
            System.out.println("Launching Internet Explorer with new profile..");
            System.setProperty("webdriver.ie.driver", "Driver\\IEDriverServer.exe");
            InternetExplorerOptions edgeIe11Options = new InternetExplorerOptions();
            Map<String, Object> ops = (Map<String, Object>) edgeIe11Options.getCapability("se:ieOptions");
            ops.put("ie.edgechromium", true);
            ops.put("ie.edgepath", "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe");    // Edge Browser directory path
            edgeIe11Options.introduceFlakinessByIgnoringSecurityDomains();
            edgeIe11Options.ignoreZoomSettings();
            edgeIe11Options.enablePersistentHovering();
            edgeIe11Options.takeFullPageScreenshot();
            edgeIe11Options.setCapability("nativeEvents", false);
            edgeIe11Options.requireWindowFocus();
            edgeIe11Options.destructivelyEnsureCleanSession();

            edgeIe11Options.setCapability("ignoreProtectedModeSettings", true);
            edgeIe11Options.setUnhandledPromptBehaviour(UnexpectedAlertBehaviour.IGNORE);

            this.driver = new InternetExplorerDriver(edgeIe11Options);
            System.out.println("t1");
            this.driver.manage().window().maximize();
            this.driver.manage().timeouts().pageLoadTimeout(60L, TimeUnit.SECONDS);
            this.driver.manage().timeouts().implicitlyWait(60L, TimeUnit.SECONDS);
            this.driver.get(appURL);
        } catch (Exception var4) {
            System.out.println("Error in InternetExplorer-->" + var4.getMessage());
        }

        return this.driver;
    }

Relevant log output Whenever we lock the window the following error is encountered otherwise it executes fine with unlocked window..

Error in InternetExplorer-->java.net.SocketException: Connection reset Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:01:39.354Z' Operating System Window 10

Selenium version Selenium 3.7.1

What are the browser(s) and version(s) where you see this issue? IECompatibility mode in Edge... IE11 and Edge exe - Version 100.0.1185.44

What are the browser driver(s) and version(s) where you see this issue? InternetExplorerDriver server (32-bit) 4.0.0.0 . Its not navigate to the URL while run on locked window/VDI and throws Error- java.net.SocketException: Connection reset

bwalderman commented 2 years ago

Thank you for reporting this issue. I've added it to the team's backlog to investigate.

naijabounce commented 2 years ago

I have been having the same issue and have reported it back in December on the selenium project.

https://github.com/SeleniumHQ/selenium/issues/10162

For me the issue has been in the IEDriverServer since 3.141.59.1.

From the logs it looks like the require window focus capability setting is not being respected by the driver.

With Edge it would be great to get this working since it doesn't seem like Edge IE Mode requires it, at least from my testing

Gauravgupta1501 commented 2 years ago

Hi team Any update on above issue?

bwalderman commented 2 years ago

Hi @Gauravgupta1501 we don't have an update on this issue yet. Any updates will be posted here when they are available.

MatsMats100 commented 2 years ago

Hello,

Is there any new development on this issue? if not, do you have any workaround for this as it is affected for more teams/orgs?

edochsibur commented 1 year ago

Hi,

The issue still persist for Edge on IE11 emulation mode. We have a series of Windows 10 nodes running on VDIs. Can you please let us know if there is any progress on this?

Edition: Windows 10 Enterprise Version: 21H2 OS build: 10.0.19041.1741 Selenium IEDriverServer.exe: 4.7.0 Selenium version: 4.7.0.0 (32-bit) Microsoft Edge: v108.0.1462.42 (Official build) (64-bit) JDK: 11.0.15+8-LTS-149 x64

If it helps, it seems that it gets stuck on C:\projects\selenium\cpp\iedriver\DocumentHost.cpp(461) Using UI Automation to set window focus.

Drivers logs:

I 2022-12-07 21:24:13:300 C:\projects\selenium\cpp\webdriver-server\server.cc(88) Starting WebDriver server on port: '43862' on host: ''
T 2022-12-07 21:24:13:301 C:\projects\selenium\cpp\webdriver-server\server.cc(738) Entering Server::PopulateCommandRepository
T 2022-12-07 21:24:13:301 C:\projects\selenium\cpp\iedriver\IEServer.cpp(32) Entering IEServer::IEServer
I 2022-12-07 21:24:13:301 C:\projects\selenium\cpp\iedriver\IEServer.cpp(33) Driver version: 4.7.0.0 (32-bit)
T 2022-12-07 21:24:13:302 C:\projects\selenium\cpp\webdriver-server\server.cc(180) Entering Server::Start
T 2022-12-07 21:24:13:523 C:\projects\selenium\cpp\webdriver-server\server.cc(234) Entering Server::ProcessRequest
T 2022-12-07 21:24:13:524 C:\projects\selenium\cpp\webdriver-server\server.cc(243) Process request with: URI: /status HTTP verb: GET
body: {}
T 2022-12-07 21:24:13:524 C:\projects\selenium\cpp\webdriver-server\server.cc(334) Entering Server::DispatchCommand
T 2022-12-07 21:24:13:525 C:\projects\selenium\cpp\webdriver-server\server.cc(687) Entering Server::LookupCommand
D 2022-12-07 21:24:13:525 C:\projects\selenium\cpp\webdriver-server\server.cc(343) Command: GET /status {}
T 2022-12-07 21:24:13:525 C:\projects\selenium\cpp\iedriver\IEServer.cpp(51) Entering IEServer::GetStatus
T 2022-12-07 21:24:13:527 C:\projects\selenium\cpp\webdriver-server\response.cc(81) Entering Response::SetSuccessResponse
T 2022-12-07 21:24:13:527 C:\projects\selenium\cpp\webdriver-server\response.cc(87) Entering Response::SetResponse
T 2022-12-07 21:24:13:527 C:\projects\selenium\cpp\webdriver-server\response.cc(60) Entering Response::Serialize
D 2022-12-07 21:24:13:527 C:\projects\selenium\cpp\webdriver-server\server.cc(426) Response: {
    "value" : 
    {
        "build" : 
        {
            "version" : "4.7.0.0 (32-bit)"
        },
        "message" : "Ready to create session",
        "os" : 
        {
            "arch" : "x64",
            "name" : "windows",
            "version" : "10.0.19041.1741 (WinBuild.160101.0800)"
        },
        "ready" : true
    }
}
T 2022-12-07 21:24:13:528 C:\projects\selenium\cpp\webdriver-server\server.cc(479) Entering Server::SendResponseToClient
T 2022-12-07 21:24:13:528 C:\projects\selenium\cpp\webdriver-server\response.cc(30) Entering Response::Deserialize
T 2022-12-07 21:24:13:528 C:\projects\selenium\cpp\webdriver-server\server.cc(540) Entering Server::SendHttpOk
T 2022-12-07 21:24:14:101 C:\projects\selenium\cpp\webdriver-server\server.cc(234) Entering Server::ProcessRequest
T 2022-12-07 21:24:14:101 C:\projects\selenium\cpp\webdriver-server\server.cc(298) Entering Server::ReadRequestBody
T 2022-12-07 21:24:14:102 C:\projects\selenium\cpp\webdriver-server\server.cc(243) Process request with: URI: /session HTTP verb: POST
body: {
  "desiredCapabilities": {
    "se:ieOptions": {
      "ie.edgechromium": true,
      "disable-popup-blocking": true,
      "ie.edgepath": "C:\u002fProgram Files (x86)\u002fMicrosoft\u002fEdge\u002fApplication\u002fmsedge.exe",
      "ignoreZoomSetting": true,
      "ignoreProtectedModeSettings": true
    },
    "browserName": "internet explorer"
  },
  "capabilities": {
    "firstMatch": [
      {
        "browserName": "internet explorer",
        "se:ieOptions": {
          "ie.edgechromium": true,
          "disable-popup-blocking": true,
          "ie.edgepath": "C:\u002fProgram Files (x86)\u002fMicrosoft\u002fEdge\u002fApplication\u002fmsedge.exe",
          "ignoreZoomSetting": true,
          "ignoreProtectedModeSettings": true
        }
      }
    ]
  }
}
T 2022-12-07 21:24:14:102 C:\projects\selenium\cpp\webdriver-server\server.cc(334) Entering Server::DispatchCommand
T 2022-12-07 21:24:14:102 C:\projects\selenium\cpp\webdriver-server\server.cc(687) Entering Server::LookupCommand
D 2022-12-07 21:24:14:102 C:\projects\selenium\cpp\webdriver-server\server.cc(343) Command: POST /session {
  "desiredCapabilities": {
    "se:ieOptions": {
      "ie.edgechromium": true,
      "disable-popup-blocking": true,
      "ie.edgepath": "C:\u002fProgram Files (x86)\u002fMicrosoft\u002fEdge\u002fApplication\u002fmsedge.exe",
      "ignoreZoomSetting": true,
      "ignoreProtectedModeSettings": true
    },
    "browserName": "internet explorer"
  },
  "capabilities": {
    "firstMatch": [
      {
        "browserName": "internet explorer",
        "se:ieOptions": {
          "ie.edgechromium": true,
          "disable-popup-blocking": true,
          "ie.edgepath": "C:\u002fProgram Files (x86)\u002fMicrosoft\u002fEdge\u002fApplication\u002fmsedge.exe",
          "ignoreZoomSetting": true,
          "ignoreProtectedModeSettings": true
        }
      }
    ]
  }
}
T 2022-12-07 21:24:14:103 C:\projects\selenium\cpp\iedriver\IEServer.cpp(42) Entering IEServer::InitializeSession
T 2022-12-07 21:24:14:103 C:\projects\selenium\cpp\iedriver\IESession.cpp(45) Entering IESession::Initialize
D 2022-12-07 21:24:14:103 C:\projects\selenium\cpp\iedriver\IESession.cpp(60) Mutex acquired for session initalization
T 2022-12-07 21:24:14:107 C:\projects\selenium\cpp\iedriver\IECommandExecutor.cpp(922) Entering IECommandExecutor::ThreadProc
T 2022-12-07 21:24:14:119 C:\projects\selenium\cpp\iedriver\IECommandExecutor.cpp(75) Entering IECommandExecutor::OnCreate
T 2022-12-07 21:24:14:121 C:\projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1707) Entering IECommandExecutor::PopulateElementFinderMethods
T 2022-12-07 21:24:14:121 C:\projects\selenium\cpp\iedriver\InputManager.cpp(56) Entering InputManager::InputManager
T 2022-12-07 21:24:14:121 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(1315) Entering BrowserFactory::GetEdgeExecutableLocation
T 2022-12-07 21:24:14:121 C:\projects\selenium\cpp\iedriver\RegistryUtilities.cpp(49) Attempting to get registry value  from HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\msedge.exe
T 2022-12-07 21:24:14:121 C:\projects\selenium\cpp\iedriver\RegistryUtilities.cpp(133) Retrieved value C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
T 2022-12-07 21:24:14:121 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(1255) Entering BrowserFactory::GetIEExecutableLocation
T 2022-12-07 21:24:14:121 C:\projects\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 2022-12-07 21:24:14:122 C:\projects\selenium\cpp\iedriver\RegistryUtilities.cpp(133) Retrieved value 1
T 2022-12-07 21:24:14:122 C:\projects\selenium\cpp\iedriver\RegistryUtilities.cpp(49) Attempting to get registry value  from HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetExplorer.Application\CLSID
T 2022-12-07 21:24:14:122 C:\projects\selenium\cpp\iedriver\RegistryUtilities.cpp(133) Retrieved value {0002DF01-0000-0000-C000-000000000046}
T 2022-12-07 21:24:14:122 C:\projects\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 2022-12-07 21:24:14:122 C:\projects\selenium\cpp\iedriver\RegistryUtilities.cpp(133) Retrieved value "%ProgramFiles%\Internet Explorer\iexplore.exe"
T 2022-12-07 21:24:14:123 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(1344) Entering BrowserFactory::GetIEVersion
T 2022-12-07 21:24:14:125 C:\projects\selenium\cpp\iedriver\CommandHandlerRepository.cpp(110) Entering CommandHandlerRepository::PopulateCommandHandlers
T 2022-12-07 21:24:14:126 C:\projects\selenium\cpp\iedriver\IESession.cpp(106) Created thread for command executor returns HWND: '0063040E'
T 2022-12-07 21:24:14:126 C:\projects\selenium\cpp\iedriver\IESession.cpp(110) Session id is retrived from command executor window: '43a70dd6-cde2-4223-87c0-881b1181bcb1'
D 2022-12-07 21:24:14:126 C:\projects\selenium\cpp\iedriver\IESession.cpp(116) Releasing session initialization mutex
T 2022-12-07 21:24:14:126 C:\projects\selenium\cpp\iedriver\IESession.cpp(198) Entering IESession::ExecuteCommand
T 2022-12-07 21:24:14:126 C:\projects\selenium\cpp\iedriver\IECommandExecutor.cpp(156) Entering IECommandExecutor::OnSetCommand
T 2022-12-07 21:24:14:126 C:\projects\selenium\cpp\webdriver-server\command.cc(31) Entering Command::Deserialize
D 2022-12-07 21:24:14:127 C:\projects\selenium\cpp\webdriver-server\command.cc(36) Raw JSON command: { "name" : "newSession", "locator" : { }, "parameters" : {
  "desiredCapabilities": {
    "se:ieOptions": {
      "ie.edgechromium": true,
      "disable-popup-blocking": true,
      "ie.edgepath": "C:\u002fProgram Files (x86)\u002fMicrosoft\u002fEdge\u002fApplication\u002fmsedge.exe",
      "ignoreZoomSetting": true,
      "ignoreProtectedModeSettings": true
    },
    "browserName": "internet explorer"
  },
  "capabilities": {
    "firstMatch": [
      {
        "browserName": "internet explorer",
        "se:ieOptions": {
          "ie.edgechromium": true,
          "disable-popup-blocking": true,
          "ie.edgepath": "C:\u002fProgram Files (x86)\u002fMicrosoft\u002fEdge\u002fApplication\u002fmsedge.exe",
          "ignoreZoomSetting": true,
          "ignoreProtectedModeSettings": true
        }
      }
    ]
  }
} }
T 2022-12-07 21:24:14:127 C:\projects\selenium\cpp\webdriver-server\command.cc(31) Entering Command::Deserialize
D 2022-12-07 21:24:14:127 C:\projects\selenium\cpp\webdriver-server\command.cc(36) Raw JSON command: { "name" : "newSession", "locator" : { }, "parameters" : {
  "desiredCapabilities": {
    "se:ieOptions": {
      "ie.edgechromium": true,
      "disable-popup-blocking": true,
      "ie.edgepath": "C:\u002fProgram Files (x86)\u002fMicrosoft\u002fEdge\u002fApplication\u002fmsedge.exe",
      "ignoreZoomSetting": true,
      "ignoreProtectedModeSettings": true
    },
    "browserName": "internet explorer"
  },
  "capabilities": {
    "firstMatch": [
      {
        "browserName": "internet explorer",
        "se:ieOptions": {
          "ie.edgechromium": true,
          "disable-popup-blocking": true,
          "ie.edgepath": "C:\u002fProgram Files (x86)\u002fMicrosoft\u002fEdge\u002fApplication\u002fmsedge.exe",
          "ignoreZoomSetting": true,
          "ignoreProtectedModeSettings": true
        }
      }
    ]
  }
} }
T 2022-12-07 21:24:14:127 C:\projects\selenium\cpp\iedriver\IECommandExecutor.cpp(178) Entering IECommandExecutor::OnExecCommand
T 2022-12-07 21:24:14:127 C:\projects\selenium\cpp\iedriver\IESession.cpp(226) Beginning wait for response length to be not zero
T 2022-12-07 21:24:14:127 C:\projects\selenium\cpp\iedriver\IECommandExecutor.cpp(994) Entering IECommandExecutor::DispatchCommand
D 2022-12-07 21:24:14:127 C:\projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1059) Executing command: newSession
D 2022-12-07 21:24:14:127 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(48) Found W3C capabilities structure
T 2022-12-07 21:24:14:127 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(183) Entering NewSessionCommandHandler::ValidateArguments
D 2022-12-07 21:24:14:127 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(199) Validating alwaysMatch capability set
T 2022-12-07 21:24:14:128 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(672) Entering NewSessionCommandHandler::ValidateCapabilities
D 2022-12-07 21:24:14:128 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(673) Validating capabilities object
D 2022-12-07 21:24:14:128 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(220) Validating firstMatch capability set with index 0
T 2022-12-07 21:24:14:128 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(672) Entering NewSessionCommandHandler::ValidateCapabilities
D 2022-12-07 21:24:14:128 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(673) Validating capabilities object
D 2022-12-07 21:24:14:128 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(722) Found browserName capability. Validating value type is string.
D 2022-12-07 21:24:14:128 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(989) Found se:ieOptions capability. Validating value type is object.
T 2022-12-07 21:24:14:128 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(648) Entering NewSessionCommandHandler::MergeCapabilities
T 2022-12-07 21:24:14:128 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(274) Entering NewSessionCommandHandler::ProcessCapabilities
T 2022-12-07 21:24:14:128 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(589) Entering NewSessionCommandHandler::MatchCapabilities
D 2022-12-07 21:24:14:128 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(279) Processing matched capability set with index 0
T 2022-12-07 21:24:14:128 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability unhandledPromptBehavior
T 2022-12-07 21:24:14:128 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability pageLoadStrategy
T 2022-12-07 21:24:14:128 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(167) Entering NewSessionCommandHandler::GetPageLoadStrategyValue
T 2022-12-07 21:24:14:128 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability strictFileInteractability
T 2022-12-07 21:24:14:128 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability timeouts
W 2022-12-07 21:24:14:128 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(105) Invalid capability setting: timeouts is type null instead of object. Default value will be used: null

T 2022-12-07 21:24:14:129 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(345) Entering NewSessionCommandHandler::SetTimeoutSettings
T 2022-12-07 21:24:14:129 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(364) Entering NewSessionCommandHandler::SetBrowserFactorySettings
T 2022-12-07 21:24:14:129 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability ignoreProtectedModeSettings
T 2022-12-07 21:24:14:129 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability ignoreZoomSetting
T 2022-12-07 21:24:14:129 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability browserAttachTimeout
T 2022-12-07 21:24:14:129 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability initialBrowserUrl
T 2022-12-07 21:24:14:129 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability ie.forceCreateProcessApi
T 2022-12-07 21:24:14:129 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability ie.forceShellWindowsApi
T 2022-12-07 21:24:14:129 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability ie.browserCommandLineSwitches
T 2022-12-07 21:24:14:129 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability ie.ensureCleanSession
T 2022-12-07 21:24:14:129 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability ie.edgechromium
T 2022-12-07 21:24:14:129 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability ie.edgepath
T 2022-12-07 21:24:14:129 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(121) Entering BrowserFactory::Initialize
D 2022-12-07 21:24:14:129 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(131) path before was C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe

D 2022-12-07 21:24:14:129 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(133) path after was 0113D718

T 2022-12-07 21:24:14:129 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(485) Entering NewSessionCommandHandler::SetInputSettings
T 2022-12-07 21:24:14:130 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability nativeEvents
T 2022-12-07 21:24:14:130 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability elementScrollBehavior
T 2022-12-07 21:24:14:130 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability requireWindowFocus
T 2022-12-07 21:24:14:130 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability ie.fileUploadDialogTimeout
T 2022-12-07 21:24:14:130 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(101) Entering NewSessionCommandHandler::GetCapability for capability enablePersistentHover
T 2022-12-07 21:24:14:130 C:\projects\selenium\cpp\iedriver\InputManager.cpp(82) Entering InputManager::Initialize
T 2022-12-07 21:24:14:130 C:\projects\selenium\cpp\iedriver\CommandHandlers\NewSessionCommandHandler.cpp(532) Entering NewSessionCommandHandler::CreateReturnedCapabilities
T 2022-12-07 21:24:14:130 C:\projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1581) Entering IECommandExecutor::CreateNewBrowser
T 2022-12-07 21:24:14:130 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(153) Entering BrowserFactory::LaunchBrowserProcess
D 2022-12-07 21:24:14:130 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(157) Ignoring Protected Mode Settings: 1
D 2022-12-07 21:24:14:130 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(163) Has Valid Protected Mode Settings: 0
T 2022-12-07 21:24:14:130 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(239) Entering BrowserFactory::IsIELaunchURLAvailable
T 2022-12-07 21:24:14:156 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(141) Entering BrowserFactory::ClearCache
T 2022-12-07 21:24:14:156 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(382) Entering BrowserFactory::LaunchEdgeInIEMode
D 2022-12-07 21:24:14:156 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(383) Starting Edge Chromium from the command line
T 2022-12-07 21:24:14:157 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(404) 6D9CF548C:\Users\GEN_TA~1\AppData\Local\Temp\IEDriver-06de0b6c-5f47-44c9-9891-513bc18a253c.
T 2022-12-07 21:24:14:157 C:\projects\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\GEN_TA~1\AppData\Local\Temp\IEDriver-06de0b6c-5f47-44c9-9891-513bc18a253c --no-first-run --no-service-autorun --disable-sync --disable-features=msImplicitSignin --disable-popup-blocking --enable-features=msIEModeAlwaysWaitForUnload http://localhost:43862/'.
D 2022-12-07 21:24:14:770 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(215) IE launched successfully with process ID 10368
D 2022-12-07 21:24:14:770 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(221) Process with ID 10368 is executing msedge.exe
T 2022-12-07 21:24:14:770 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(494) Entering BrowserFactory::AttachToBrowser
D 2022-12-07 21:24:14:771 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(504) Using Active Accessibility to find IWebBrowser2 interface
T 2022-12-07 21:24:14:771 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(555) Entering BrowserFactory::AttachToBrowserUsingActiveAccessibility
T 2022-12-07 21:24:21:189 C:\projects\selenium\cpp\webdriver-server\server.cc(234) Entering Server::ProcessRequest
T 2022-12-07 21:24:21:189 C:\projects\selenium\cpp\webdriver-server\server.cc(243) Process request with: URI: / HTTP verb: GET
body: {}
T 2022-12-07 21:24:21:189 C:\projects\selenium\cpp\webdriver-server\server.cc(540) Entering Server::SendHttpOk
T 2022-12-07 21:24:21:779 C:\projects\selenium\cpp\webdriver-server\server.cc(234) Entering Server::ProcessRequest
T 2022-12-07 21:24:21:780 C:\projects\selenium\cpp\webdriver-server\server.cc(243) Process request with: URI: /favicon.ico HTTP verb: GET
body: {}
T 2022-12-07 21:24:21:780 C:\projects\selenium\cpp\webdriver-server\server.cc(334) Entering Server::DispatchCommand
T 2022-12-07 21:24:21:780 C:\projects\selenium\cpp\webdriver-server\server.cc(687) Entering Server::LookupCommand
D 2022-12-07 21:24:21:780 C:\projects\selenium\cpp\webdriver-server\server.cc(343) Command: GET /favicon.ico {}
T 2022-12-07 21:24:21:780 C:\projects\selenium\cpp\webdriver-server\response.cc(94) Entering Response::SetErrorResponse
T 2022-12-07 21:24:21:780 C:\projects\selenium\cpp\webdriver-server\response.cc(87) Entering Response::SetResponse
T 2022-12-07 21:24:21:780 C:\projects\selenium\cpp\webdriver-server\response.cc(60) Entering Response::Serialize
D 2022-12-07 21:24:21:780 C:\projects\selenium\cpp\webdriver-server\server.cc(426) Response: {
    "value" : 
    {
        "error" : "unknown command",
        "message" : "Command not found: GET /favicon.ico",
        "stacktrace" : ""
    }
}
T 2022-12-07 21:24:21:780 C:\projects\selenium\cpp\webdriver-server\server.cc(479) Entering Server::SendResponseToClient
T 2022-12-07 21:24:21:780 C:\projects\selenium\cpp\webdriver-server\response.cc(30) Entering Response::Deserialize
T 2022-12-07 21:24:21:780 C:\projects\selenium\cpp\webdriver-server\server.cc(603) Entering Server::SendHttpNotFound
D 2022-12-07 21:24:22:281 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(1199) Looking for 10368
D 2022-12-07 21:24:22:281 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(582) Found window handle 002D0586 for window with class 'Internet Explorer_Server' belonging to process with id 10368
T 2022-12-07 21:24:22:281 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(458) Entering BrowserFactory::GetDocumentFromWindowHandle
T 2022-12-07 21:24:22:720 C:\projects\selenium\cpp\webdriver-server\server.cc(234) Entering Server::ProcessRequest
T 2022-12-07 21:24:22:720 C:\projects\selenium\cpp\webdriver-server\server.cc(243) Process request with: URI: /favicon.ico HTTP verb: GET
body: {}
T 2022-12-07 21:24:22:720 C:\projects\selenium\cpp\webdriver-server\server.cc(334) Entering Server::DispatchCommand
T 2022-12-07 21:24:22:720 C:\projects\selenium\cpp\webdriver-server\server.cc(687) Entering Server::LookupCommand
D 2022-12-07 21:24:22:720 C:\projects\selenium\cpp\webdriver-server\server.cc(343) Command: GET /favicon.ico {}
T 2022-12-07 21:24:22:720 C:\projects\selenium\cpp\webdriver-server\response.cc(94) Entering Response::SetErrorResponse
T 2022-12-07 21:24:22:720 C:\projects\selenium\cpp\webdriver-server\response.cc(87) Entering Response::SetResponse
T 2022-12-07 21:24:22:720 C:\projects\selenium\cpp\webdriver-server\response.cc(60) Entering Response::Serialize
D 2022-12-07 21:24:22:720 C:\projects\selenium\cpp\webdriver-server\server.cc(426) Response: {
    "value" : 
    {
        "error" : "unknown command",
        "message" : "Command not found: GET /favicon.ico",
        "stacktrace" : ""
    }
}
T 2022-12-07 21:24:22:720 C:\projects\selenium\cpp\webdriver-server\server.cc(479) Entering Server::SendResponseToClient
T 2022-12-07 21:24:22:720 C:\projects\selenium\cpp\webdriver-server\response.cc(30) Entering Response::Deserialize
T 2022-12-07 21:24:22:721 C:\projects\selenium\cpp\webdriver-server\server.cc(603) Entering Server::SendHttpNotFound
D 2022-12-07 21:24:22:748 C:\projects\selenium\cpp\iedriver\BrowserFactory.cpp(525) Ignoring zoom setting: 1
I 2022-12-07 21:24:22:748 C:\projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1604) Persistent hovering set to: 1
T 2022-12-07 21:24:22:748 C:\projects\selenium\cpp\iedriver\ProxyManager.cpp(103) ProxyManager::SetProxySettings
D 2022-12-07 21:24:22:748 C:\projects\selenium\cpp\iedriver\ProxyManager.cpp(119) Using existing system proxy settings.
T 2022-12-07 21:24:22:748 C:\projects\selenium\cpp\iedriver\DocumentHost.cpp(37) Entering DocumentHost::DocumentHost
T 2022-12-07 21:24:22:748 C:\projects\selenium\cpp\iedriver\CookieManager.cpp(48) Entering CookieManager::Initialize
T 2022-12-07 21:24:22:748 C:\projects\selenium\cpp\iedriver\Browser.cpp(38) Entering Browser::Browser
T 2022-12-07 21:24:22:748 C:\projects\selenium\cpp\iedriver\Browser.cpp(414) Entering Browser::AttachEvents
T 2022-12-07 21:24:22:755 C:\projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1359) Entering IECommandExecutor::AddManagedBrowser
T 2022-12-07 21:24:22:755 C:\projects\selenium\cpp\iedriver\IECommandExecutor.cpp(1363) Setting current browser id to 330f667d-7515-434c-8c59-eded5229e0e4
T 2022-12-07 21:24:22:755 C:\projects\selenium\cpp\iedriver\DocumentHost.cpp(447) Entering DocumentHost::SetFocusToBrowser
T 2022-12-07 21:24:22:755 C:\projects\selenium\cpp\iedriver\Browser.cpp(559) Entering Browser::GetTopLevelWindowHandle
T 2022-12-07 21:24:22:755 C:\projects\selenium\cpp\iedriver\DocumentHost.cpp(452) Top-level IE window is 002C06B6 foreground window is 00000000
T 2022-12-07 21:24:22:776 C:\projects\selenium\cpp\iedriver\DocumentHost.cpp(461) Using UI Automation to set window focus
edochsibur commented 1 year ago

Hi @bwalderman, would you have any idea about a fix date to be released? Thanks

bwalderman commented 1 year ago

@dorianlupu, I'd recommend working around this by running any tests that require IE on a dedicated machine or VM that can remain logged in interactively. IE Mode automation is not a priority for the Edge developer tools team, so although this issue is on our radar, I'm not able to commit to a date when this will be investigated or fixed.

Ricardo99999999 commented 1 year ago

Good afternoon

I have the same problem. I can see that have passed a long time from the last answer. Do you know something about a possible solution or date?

Thanks

ashhem commented 1 year ago

Hi @bwalderman, I can see that this issue still persists. Can you please let us know if the source code is publicly accessible and how can we proceed if we want to take a shot at fixing this ?

edochsibur commented 11 months ago

Hi @bwalderman

I am following up on this issue reported more than a year ago. I want to understand if there is any update on this issue or at least to know if there is any interest from Microsoft to support/fix IE11 compatibility issues moving forward?

Thank you

bwalderman commented 10 months ago

@edochsibur, @ashhem, @Ricardo99999999

I apologize for the lack of updates on this, but the answer above has not changed. Our team receives a very low volume of feedback for IE Driver compared to other modern developer tools we maintain, and so it's not practical for us to prioritize this issue over other projects that our team is responsible for.