From e4dde10a3f8e17839d148f1a474b4b49314d96ee Mon Sep 17 00:00:00 2001 From: Stepan Goremykin Date: Sun, 19 Mar 2023 00:42:57 +0100 Subject: [PATCH] Update Selenium.Support package --- src/NzbDrone.Automation.Test/AutomationTest.cs | 5 ++--- src/NzbDrone.Automation.Test/PageModel/PageBase.cs | 5 ++--- src/NzbDrone.Automation.Test/Sonarr.Automation.Test.csproj | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/NzbDrone.Automation.Test/AutomationTest.cs b/src/NzbDrone.Automation.Test/AutomationTest.cs index f4cb204dd..e6228ef17 100644 --- a/src/NzbDrone.Automation.Test/AutomationTest.cs +++ b/src/NzbDrone.Automation.Test/AutomationTest.cs @@ -11,7 +11,6 @@ using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Test.Common; using OpenQA.Selenium; using OpenQA.Selenium.Chrome; -using OpenQA.Selenium.Remote; namespace NzbDrone.Automation.Test { @@ -20,7 +19,7 @@ namespace NzbDrone.Automation.Test public abstract class AutomationTest { private NzbDroneRunner _runner; - protected RemoteWebDriver driver; + protected ChromeDriver driver; public AutomationTest() { @@ -40,7 +39,7 @@ namespace NzbDrone.Automation.Test var service = ChromeDriverService.CreateDefaultService(); // Timeout as windows automation tests seem to take alot longer to get going - driver = new ChromeDriver(service, options, new TimeSpan(0, 3, 0)); + driver = new ChromeDriver(service, options, TimeSpan.FromMinutes(3)); driver.Manage().Window.Size = new System.Drawing.Size(1920, 1080); diff --git a/src/NzbDrone.Automation.Test/PageModel/PageBase.cs b/src/NzbDrone.Automation.Test/PageModel/PageBase.cs index d11f3a330..b0c787a8a 100644 --- a/src/NzbDrone.Automation.Test/PageModel/PageBase.cs +++ b/src/NzbDrone.Automation.Test/PageModel/PageBase.cs @@ -1,16 +1,15 @@ using System; using System.Threading; using OpenQA.Selenium; -using OpenQA.Selenium.Remote; using OpenQA.Selenium.Support.UI; namespace NzbDrone.Automation.Test.PageModel { public class PageBase { - private readonly RemoteWebDriver _driver; + private readonly IWebDriver _driver; - public PageBase(RemoteWebDriver driver) + public PageBase(IWebDriver driver) { _driver = driver; driver.Manage().Window.Maximize(); diff --git a/src/NzbDrone.Automation.Test/Sonarr.Automation.Test.csproj b/src/NzbDrone.Automation.Test/Sonarr.Automation.Test.csproj index be3d4d4db..34936d049 100644 --- a/src/NzbDrone.Automation.Test/Sonarr.Automation.Test.csproj +++ b/src/NzbDrone.Automation.Test/Sonarr.Automation.Test.csproj @@ -3,7 +3,7 @@ net6.0 - +