From ed23a31e8eae922641465e5b72ffdf6215e9b712 Mon Sep 17 00:00:00 2001 From: Jakub Raczek Date: Fri, 17 Feb 2017 08:49:31 +0100 Subject: [PATCH] Replaced obsolete ITimeouts.SetPageLoadTimeout(TimeSpan) to the PageLoad property, ITimeouts.SetScriptTimeout(TimeSpan) to the AsynchronousJavaScript property and 'ITimeouts.ImplicitlyWait(TimeSpan)'to the ImplicitWait property --- Objectivity.Test.Automation.Common/DriverContext.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Objectivity.Test.Automation.Common/DriverContext.cs b/Objectivity.Test.Automation.Common/DriverContext.cs index 5490d272f..d92bca9e4 100644 --- a/Objectivity.Test.Automation.Common/DriverContext.cs +++ b/Objectivity.Test.Automation.Common/DriverContext.cs @@ -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(); }