Skip to content

Commit

Permalink
Replaced obsolete ITimeouts.SetPageLoadTimeout(TimeSpan) to the PageL…
Browse files Browse the repository at this point in the history
…oad property, ITimeouts.SetScriptTimeout(TimeSpan) to the AsynchronousJavaScript property and 'ITimeouts.ImplicitlyWait(TimeSpan)'to the ImplicitWait property
  • Loading branch information
raczeja committed Feb 17, 2017
1 parent ccd0941 commit ed23a31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Objectivity.Test.Automation.Common/DriverContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,9 @@ public void Start()
string.Format(CultureInfo.CurrentCulture, "Driver {0} is not supported", BaseConfiguration.TestBrowser));
}

this.driver.Manage().Timeouts().SetPageLoadTimeout(TimeSpan.FromSeconds(BaseConfiguration.LongTimeout));
this.driver.Manage().Timeouts().SetScriptTimeout(TimeSpan.FromSeconds(BaseConfiguration.ShortTimeout));
this.driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromMilliseconds(BaseConfiguration.ImplicitlyWaitMilliseconds));
this.driver.Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(BaseConfiguration.LongTimeout);
this.driver.Manage().Timeouts().AsynchronousJavaScript = TimeSpan.FromSeconds(BaseConfiguration.ShortTimeout);
this.driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromMilliseconds(BaseConfiguration.ImplicitlyWaitMilliseconds);
this.driver.Manage().Window.Maximize();
}

Expand Down

0 comments on commit ed23a31

Please sign in to comment.