I have an application which leverages Selenium to drive an IE session (the target site is IE only). This all works fine.
With the retirement of IE, I have made the appropriate changes so that the application uses Edge in IE Compatibility Mode instead of IE. No other changes have been made other than adding in the following:
if (useEdgeInCompatabilityMode)
{
ieOptions.EnableNativeEvents = true;
ieOptions.AttachToEdgeChrome = true;
ieOptions.EdgeExecutablePath = edgeExePath;
}
What I am finding is that I get a high frequency of the "The HTTP request to the remote WebDriver server timed out after 60 seconds" error when using Edge. It is not consistent, and sometimes the application runs fine without error.
The error itself seems to happen when a Click action is called on a button within a pop-up window. Clicking the button causes the pop-up to close, at which point the next step in the Selenium process should be called on the parent window. However, it seems the Click action is never "resolved" to the satisfaction of Selenium, hence the timeout. I have experimented with replacing the Click with a Submit and with calling a JS Executor to call the JS which resides behind the target button directly, but neither seems to help.
I am using the most up to date NuGet and IEDriverServer.exe (4.2.0 for both).
Any advice appreciated.