0
When trying to run the tests in Internet Explorer the following error appears (The HTTP request to the remote Webdriver server for URL http://localhost:52875/Session/8d661993-7a95-49fb-9c95-e7fe231e9394/url timed out after 60 Seconds). The test page opens but after a while the error is displayed. I have tried to increase the waiting time and did not resolve. I note that in Chrome it worked as due. I found old related questions but the solutions didn’t help me. Today there is something definite to fix the problem? Below example of the code.
InternetExplorerOptions options = new InternetExplorerOptions();
options.PageLoadStrategy = PageLoadStrategy.Eager;
IWebDriver driver = new
InternetExplorerDriver(@"C:\Users\gusta\source\repos\sorteio\sorteio\bin\Debug\netcoreapp3.1"/, options);
WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10));
driver.Navigate().GoToUrl("https://www.bing.com/?cc=br");
IWebElement webElement = wait.Until(e =>
e.FindElement(By.XPath("/html/body/div[2]/div[2]/header/div/div/a[1]/span[2]")));
webElement.Click();
hello @Gustavo, to use Iedriverserver in newer versions of IE (I believe you are using IE version 10 or +), have some settings you need to do on the machine where you will run the test see this link: https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver
– JMSlasher
For single IE 11, you will need to set a registry entry on the target computer so that the driver can maintain a connection to the Internet Explorer instance it creates. For 64-bit Windows installations, the key is HKEY_LOCAL_MACHINE SOFTWARE Wow6432node Microsoft Internet Explorer Main Featurecontrol FEATURE_BFCACHE. Note that Feature_bfcachesubchave may or may not be present and should be created if not present. Important: Inside this key, create a DWORD value named iexplore.exe with the value 0. This helped me thank you.
– Gustavo