You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to navigate to another page by button click. public T SubmitApplication<T>() where T : UiComponent, new() { return Navigate.To<T>(By.CssSelector(".login-button > button")); }
But i get this error : TestStack.Seleno.Configuration.Interceptors.SelenoReceivedException : The HTTP request to the remote WebDriver server for URL http://localhost:7055/hub/session/c1e40776-5c00-4e65-8217-3814aafdab7f/element timed out after 60 seconds. ----> OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:7055/hub/session/c1e40776-5c00-4e65-8217-3814aafdab7f/element timed out after 60 seconds.
There is some sort of version issue - make sure you are using the latest versions of selenium web driver and the driver for your browser
The server you are testing against is really slow and after the button was clicked the next request took more than (in this case) 60 seconds to respond with anything.
If you have this sort of problem locally and your computer isn't slow then it's like the former issue - the browser you are targeting has a mismatch with the version of web driver.
How can i increase the time out in this code public T SubmitApplication<T>() where T : UiComponent, new() { return Navigate.To<T>(By.CssSelector(".login-button > button")); }
I used WaitFor.AjaxCallsToComplete(TimeSpan.FromSeconds(120)); before the click button but it didn't work.
how can i specify the firefox time out in seleno host instance Instance.Run("Application", port, configure => { configure.WithRouteConfig(BigBrother.Web.BigBrotherWeb.RouteConfig.RegisterRoutes); configure.UsingLoggerFactory(new ConsoleFactory()); });
When you create the Instance you need to specify it then.
e.g. something like:
vartimeout=TimeSpan.FromSeconds(120);Instance.Run("Application",port, c =>c.WithRouteConfig(BigBrother.Web.BigBrotherWeb.RouteConfig.RegisterRoutes).UsingLoggerFactory(newConsoleFactory()).WithRemoteWebDriver(()=>newFirefoxDriver(newFirefoxBinary(),newFirefoxProfile(),timeout)));
Keep in mind this approach allows your tests to take a long time to run so I'd highly recommend you get a faster server if you find you need to do this.
Activity
robdmoore commentedon Aug 7, 2016
That usually means either:
wijdench commentedon Aug 15, 2016
Hi,
How can i do when The server is slow?
Also i had this issue when i run locally the tests, but they are running correctly in the server.
robdmoore commentedon Aug 15, 2016
Get a beefier server (or increase the timeout) ;)
If you have this sort of problem locally and your computer isn't slow then it's like the former issue - the browser you are targeting has a mismatch with the version of web driver.
wijdench commentedon Aug 15, 2016
Thanks robdmoore,
How can i increase the time out in this code
public T SubmitApplication<T>() where T : UiComponent, new() { return Navigate.To<T>(By.CssSelector(".login-button > button")); }I used WaitFor.AjaxCallsToComplete(TimeSpan.FromSeconds(120)); before the click button but it didn't work.
robdmoore commentedon Aug 15, 2016
It's something you need to specify when creating the web driver object. This link shows examples for how to do that for the Firefox web driver: http://stackoverflow.com/questions/22322596/selenium-error-the-http-request-to-the-remote-webdriver-timed-out-after-60-sec
wijdench commentedon Aug 15, 2016
how can i specify the firefox time out in seleno host instance
Instance.Run("Application", port, configure => { configure.WithRouteConfig(BigBrother.Web.BigBrotherWeb.RouteConfig.RegisterRoutes); configure.UsingLoggerFactory(new ConsoleFactory()); });robdmoore commentedon Aug 16, 2016
When you create the
Instanceyou need to specify it then.e.g. something like:
Keep in mind this approach allows your tests to take a long time to run so I'd highly recommend you get a faster server if you find you need to do this.
wijdench commentedon Aug 16, 2016
OK thanks a lot