-4

I am running a test with the Test Explorer in Visual Studio C# and it returns a timeout and the execution time is 30 seconds(I specified that time) but in browserstack is almost 2 minutes. How can I change the 90 seconds idle timeout in browserstack in order to finish the test in Visual studio and browserstack at the same time? This is giving me issues because I have to much tests in the queue and I am reaching the limit of my account

Marion
  • 315
  • 1
  • 4
  • 15
  • 1
    See: [How do I do X?](https://meta.stackoverflow.com/questions/253069/whats-the-appropriate-new-current-close-reason-for-how-do-i-do-x) The expectation on SO is that the user asking a question not only does research to answer their own question but also shares that research, code attempts, and results. This demonstrates that you’ve taken the time to try to help yourself, it saves us from reiterating obvious answers, and most of all it helps you get a more specific and relevant answer! See also: [ask] – JeffC Jul 28 '17 at 16:04

1 Answers1

0

It sounds like you're asking for how to increase the default timeout of the webdriver.

Driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(90);
Driver.Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(90);

The above code with change the maximum time the driver will wait for the page to load and the maximum time the driver will wait while finding an element. This is assuming your IWebDriver object is named 'Driver.

st0ve
  • 374
  • 3
  • 13