From f07421897b5521157915e21a7d5483e48bcd1932 Mon Sep 17 00:00:00 2001 From: Sven Jost Date: Wed, 19 Apr 2017 16:06:41 +0200 Subject: [PATCH 1/4] Support for selenium 3.3 --- .../GetSessionCapabilitiesExecutor.cs | 20 +++++++++++++++++++ .../CommandExecutors/SetTimeoutExecutor.cs | 20 +++++++++++++++++++ .../Winium.Desktop.Driver.csproj | 4 +++- src/Winium.Desktop.Driver/packages.config | 2 +- 4 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 src/Winium.Desktop.Driver/CommandExecutors/GetSessionCapabilitiesExecutor.cs create mode 100644 src/Winium.Desktop.Driver/CommandExecutors/SetTimeoutExecutor.cs diff --git a/src/Winium.Desktop.Driver/CommandExecutors/GetSessionCapabilitiesExecutor.cs b/src/Winium.Desktop.Driver/CommandExecutors/GetSessionCapabilitiesExecutor.cs new file mode 100644 index 0000000..09a7756 --- /dev/null +++ b/src/Winium.Desktop.Driver/CommandExecutors/GetSessionCapabilitiesExecutor.cs @@ -0,0 +1,20 @@ +namespace Winium.Desktop.Driver.CommandExecutors +{ + #region using + + using Winium.StoreApps.Common; + + #endregion + + internal class GetSessionCapabilitiesExecutor : CommandExecutorBase + { + #region Methods + + protected override string DoImpl() + { + return this.JsonResponse(ResponseStatus.Success, this.Automator.ActualCapabilities); + } + + #endregion + } +} diff --git a/src/Winium.Desktop.Driver/CommandExecutors/SetTimeoutExecutor.cs b/src/Winium.Desktop.Driver/CommandExecutors/SetTimeoutExecutor.cs new file mode 100644 index 0000000..cf6209e --- /dev/null +++ b/src/Winium.Desktop.Driver/CommandExecutors/SetTimeoutExecutor.cs @@ -0,0 +1,20 @@ +namespace Winium.Desktop.Driver.CommandExecutors +{ + #region using + + using Winium.StoreApps.Common; + + #endregion + + internal class SetTimeoutExecutor : CommandExecutorBase + { + #region Methods + + protected override string DoImpl() + { + return this.JsonResponse(ResponseStatus.Success, null); + } + + #endregion + } +} \ No newline at end of file diff --git a/src/Winium.Desktop.Driver/Winium.Desktop.Driver.csproj b/src/Winium.Desktop.Driver/Winium.Desktop.Driver.csproj index 1ad8823..9238a25 100644 --- a/src/Winium.Desktop.Driver/Winium.Desktop.Driver.csproj +++ b/src/Winium.Desktop.Driver/Winium.Desktop.Driver.csproj @@ -72,6 +72,7 @@ + @@ -85,6 +86,7 @@ + @@ -163,4 +165,4 @@ - \ No newline at end of file + diff --git a/src/Winium.Desktop.Driver/packages.config b/src/Winium.Desktop.Driver/packages.config index 0486d04..9b60155 100644 --- a/src/Winium.Desktop.Driver/packages.config +++ b/src/Winium.Desktop.Driver/packages.config @@ -5,6 +5,6 @@ - + \ No newline at end of file From 164385104d47759dfe31fd713b239ad1b0e42ebd Mon Sep 17 00:00:00 2001 From: Sven Jost Date: Wed, 19 Apr 2017 17:25:10 +0200 Subject: [PATCH 2/4] Update selenium version in tests --- .../WindowsFormsTestApplication.Tests/packages.config | 4 ++-- src/TestApps.Tests/WpfTestApplication.Tests/packages.config | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/TestApps.Tests/WindowsFormsTestApplication.Tests/packages.config b/src/TestApps.Tests/WindowsFormsTestApplication.Tests/packages.config index c5c2577..7518043 100644 --- a/src/TestApps.Tests/WindowsFormsTestApplication.Tests/packages.config +++ b/src/TestApps.Tests/WindowsFormsTestApplication.Tests/packages.config @@ -1,5 +1,5 @@  - - \ No newline at end of file + + diff --git a/src/TestApps.Tests/WpfTestApplication.Tests/packages.config b/src/TestApps.Tests/WpfTestApplication.Tests/packages.config index c5c2577..7518043 100644 --- a/src/TestApps.Tests/WpfTestApplication.Tests/packages.config +++ b/src/TestApps.Tests/WpfTestApplication.Tests/packages.config @@ -1,5 +1,5 @@  - - \ No newline at end of file + + From 43f0bdc5f3c639e09d178c7eb8c0f3d2003b46bd Mon Sep 17 00:00:00 2001 From: Sven Jost Date: Wed, 19 Apr 2017 17:37:12 +0200 Subject: [PATCH 3/4] Update Winium.Desktop.Driver.csproj --- src/Winium.Desktop.Driver/Winium.Desktop.Driver.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Winium.Desktop.Driver/Winium.Desktop.Driver.csproj b/src/Winium.Desktop.Driver/Winium.Desktop.Driver.csproj index 9238a25..b70cae3 100644 --- a/src/Winium.Desktop.Driver/Winium.Desktop.Driver.csproj +++ b/src/Winium.Desktop.Driver/Winium.Desktop.Driver.csproj @@ -52,8 +52,8 @@ - - ..\packages\Selenium.WebDriver.2.53.1\lib\net40\WebDriver.dll + + ..\packages\Selenium.WebDriver.3.3.0\lib\net40\WebDriver.dll True From 1f7f7e979bef05c904223620245e4b5ccffaeba2 Mon Sep 17 00:00:00 2001 From: Sven Jost Date: Wed, 19 Apr 2017 17:40:32 +0200 Subject: [PATCH 4/4] Fix include reference versions for tests --- .../WindowsFormsTestApplication.Tests.csproj | 6 +++--- .../WpfTestApplication.Tests.csproj | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/TestApps.Tests/WindowsFormsTestApplication.Tests/WindowsFormsTestApplication.Tests.csproj b/src/TestApps.Tests/WindowsFormsTestApplication.Tests/WindowsFormsTestApplication.Tests.csproj index c709295..76d2c9e 100644 --- a/src/TestApps.Tests/WindowsFormsTestApplication.Tests/WindowsFormsTestApplication.Tests.csproj +++ b/src/TestApps.Tests/WindowsFormsTestApplication.Tests/WindowsFormsTestApplication.Tests.csproj @@ -41,8 +41,8 @@ - - ..\..\packages\Selenium.WebDriver.2.53.1\lib\net40\WebDriver.dll + + ..\..\packages\Selenium.WebDriver.3.3.0\lib\net40\WebDriver.dll True @@ -92,4 +92,4 @@ --> - \ No newline at end of file + diff --git a/src/TestApps.Tests/WpfTestApplication.Tests/WpfTestApplication.Tests.csproj b/src/TestApps.Tests/WpfTestApplication.Tests/WpfTestApplication.Tests.csproj index a7ee778..9d48552 100644 --- a/src/TestApps.Tests/WpfTestApplication.Tests/WpfTestApplication.Tests.csproj +++ b/src/TestApps.Tests/WpfTestApplication.Tests/WpfTestApplication.Tests.csproj @@ -40,8 +40,8 @@ - - ..\..\packages\Selenium.WebDriver.2.53.1\lib\net40\WebDriver.dll + + ..\..\packages\Selenium.WebDriver.3.3.0\lib\net40\WebDriver.dll True @@ -96,4 +96,4 @@ --> - \ No newline at end of file +