Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 99415

Selenium IE driver hangs after navigating to URL

$
0
0

I have simple Selenium xUnit Test as below

    [Fact]
    public void Test()
    {
        var driver = new InternetExplorerDriver(@"C:\Users\myusername\.nuget\packages\selenium.webdriver.iedriver\3.150.1\driver");

        driver.Navigate().GoToUrl("http://www.google.com");

        var q = driver.FindElementByName("q");
        q.SendKeys("Stackoverflow");
    }

When i run test. it opens IE11 browser, goes to url, in this case it goes to www.google.com and thats it.
After navigating to the URL it does not execute the next line of code, which is var q = driver.FindElementByName("q");

and after 60 seconds it throws error

OpenQA.Selenium.WebDriverException: 'The HTTP request to the remote WebDriver server for URL http://localhost:64515/session/4240d446-303f-40b4-b25e-6d7161b2ac73/url timed out after 60 seconds.'


Viewing all articles
Browse latest Browse all 99415

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>