You may face the error saying Http request to the remote webdriver server for url timed out after 60 seconds in Selenium Webdriver.
Solution -
You can edit the browser profile and increase timeout to say 180 seconds from default 60 seconds. Please note that this constructor is available in .Net API only. I am wondering why this kind of constructor is not available in Java API. If anyone has any idea, kindly write in comment.
WebDriver driver = new FirefoxDriver(new FirefoxBinary(), new FirefoxProfile(), TimeSpan.FromMinutes(3));
For internet explorer driver, you can use below syntax.
driver = new InternetExplorerDriver(@"z:\seleniumc", new InternetExplorerOptions(),TimeSpan.FromMinutes(5));
So if you launch the browser with above configuration, then you will not receive any error.
Hope you also fix yours.
What do you think on above selenium topic. Please provide your inputs and comments. You can write to me at reply2sagar@gmail.com
Solution -
You can edit the browser profile and increase timeout to say 180 seconds from default 60 seconds. Please note that this constructor is available in .Net API only. I am wondering why this kind of constructor is not available in Java API. If anyone has any idea, kindly write in comment.
WebDriver driver = new FirefoxDriver(new FirefoxBinary(), new FirefoxProfile(), TimeSpan.FromMinutes(3));
For internet explorer driver, you can use below syntax.
driver = new InternetExplorerDriver(@"z:\seleniumc", new InternetExplorerOptions(),TimeSpan.FromMinutes(5));
So if you launch the browser with above configuration, then you will not receive any error.
Hope you also fix yours.
What do you think on above selenium topic. Please provide your inputs and comments. You can write to me at reply2sagar@gmail.com
That worked for my IE driver perfectly.. Thanks for the solution Sagar..
ReplyDeleteThank you!
ReplyDelete