diff --git a/Objectivity.Test.Automation.Common.Documentation/Objectivity.Test.Automation.Common.Documentation.shfbproj b/Objectivity.Test.Automation.Common.Documentation/Objectivity.Test.Automation.Common.Documentation.shfbproj index 0c2bcd265..548f4dbf6 100644 --- a/Objectivity.Test.Automation.Common.Documentation/Objectivity.Test.Automation.Common.Documentation.shfbproj +++ b/Objectivity.Test.Automation.Common.Documentation/Objectivity.Test.Automation.Common.Documentation.shfbproj @@ -1,5 +1,5 @@  - + @@ -51,7 +51,7 @@ Framework to automate tests using Selenium WebDriver TestAutomationGroup%40objectivity.co.uk http://www.objectivity.co.uk/ - ..\packages\EWSoftware.SHFB.2016.4.9.0\tools\ + ..\packages\EWSoftware.SHFB.2016.9.17.0\tools\ ..\packages\ Summary, Parameter, Returns, AutoDocumentCtors, TypeParameter, AutoDocumentDispose @@ -69,10 +69,12 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected + False + ..\Objectivity.Test.Automation.Common\ - $(MSBuildThisFileDirectory)..\packages\EWSoftware.SHFB.2016.4.9.0\tools\ + $(MSBuildThisFileDirectory)..\packages\EWSoftware.SHFB.2016.9.17.0\tools\ diff --git a/Objectivity.Test.Automation.Common.Documentation/Selenium.shfbproj b/Objectivity.Test.Automation.Common.Documentation/Selenium.shfbproj index fa23bccb3..36527d973 100644 --- a/Objectivity.Test.Automation.Common.Documentation/Selenium.shfbproj +++ b/Objectivity.Test.Automation.Common.Documentation/Selenium.shfbproj @@ -1,5 +1,5 @@  - + @@ -27,10 +27,10 @@ - - - - + + + + 100 OnlyWarningsAndErrors Website @@ -53,13 +53,14 @@ Framework to automate tests using Selenium WebDriver TestAutomationGroup%40objectivity.co.uk http://www.objectivity.co.uk/ - ..\packages\EWSoftware.SHFB.2016.4.9.0\tools\ + ..\packages\EWSoftware.SHFB.2016.9.17.0\tools\ ..\packages\ Summary, Parameter, Returns, AutoDocumentCtors, TypeParameter, AutoDocumentDispose + True - $(MSBuildThisFileDirectory)..\packages\EWSoftware.SHFB.2016.4.9.0\tools\ + $(MSBuildThisFileDirectory)..\packages\EWSoftware.SHFB.2016.9.17.0\tools\ diff --git a/Objectivity.Test.Automation.Common.Documentation/packages.config b/Objectivity.Test.Automation.Common.Documentation/packages.config index 3a9428b86..1a538c214 100644 --- a/Objectivity.Test.Automation.Common.Documentation/packages.config +++ b/Objectivity.Test.Automation.Common.Documentation/packages.config @@ -1,5 +1,5 @@  - + \ No newline at end of file diff --git a/Objectivity.Test.Automation.Common/App.config b/Objectivity.Test.Automation.Common/App.config index 4154d9b95..1cdee55ec 100644 --- a/Objectivity.Test.Automation.Common/App.config +++ b/Objectivity.Test.Automation.Common/App.config @@ -19,6 +19,7 @@ + diff --git a/Objectivity.Test.Automation.Common/BaseConfiguration.cs b/Objectivity.Test.Automation.Common/BaseConfiguration.cs index aa3e43fa0..cf3f59baa 100644 --- a/Objectivity.Test.Automation.Common/BaseConfiguration.cs +++ b/Objectivity.Test.Automation.Common/BaseConfiguration.cs @@ -187,6 +187,28 @@ public static bool FullDesktopScreenShotEnabled } } + /// + /// Gets a value indicating whether enable legacy implementation for Firefox. + /// + public static bool FirefoxUseLegacyImplementation + { + get + { + Logger.Trace(CultureInfo.CurrentCulture, "Firefox Use Legacy Implementation Enabled value from App.config '{0}'", ConfigurationManager.AppSettings["FirefoxUseLegacyImplementation"]); + if (string.IsNullOrEmpty(ConfigurationManager.AppSettings["FirefoxUseLegacyImplementation"])) + { + return false; + } + + if (ConfigurationManager.AppSettings["FirefoxUseLegacyImplementation"].ToLower(CultureInfo.CurrentCulture).Equals("true")) + { + return true; + } + + return false; + } + } + /// /// Gets a value indicating whether use firefox profile. False by default. /// diff --git a/Objectivity.Test.Automation.Common/DriverContext.cs b/Objectivity.Test.Automation.Common/DriverContext.cs index 4d74c873b..9859c0c1d 100644 --- a/Objectivity.Test.Automation.Common/DriverContext.cs +++ b/Objectivity.Test.Automation.Common/DriverContext.cs @@ -411,12 +411,12 @@ public void Start() switch (BaseConfiguration.TestBrowser) { case BrowserType.Firefox: - this.driver = new FirefoxDriver(new FirefoxBinary(), this.FirefoxProfile, TimeSpan.FromSeconds(BaseConfiguration.LongTimeout)); + var fireFoxOptionsLegacy = new FirefoxOptions { Profile = this.FirefoxProfile, UseLegacyImplementation = BaseConfiguration.FirefoxUseLegacyImplementation }; + this.driver = new FirefoxDriver(fireFoxOptionsLegacy); break; case BrowserType.FirefoxPortable: - var profile = this.FirefoxProfile; - var firefoxBinary = new FirefoxBinary(BaseConfiguration.FirefoxPath); - this.driver = new FirefoxDriver(firefoxBinary, profile, TimeSpan.FromSeconds(BaseConfiguration.LongTimeout)); + var fireFoxOptions = new FirefoxOptions { BrowserExecutableLocation = BaseConfiguration.FirefoxPath, Profile = this.FirefoxProfile, UseLegacyImplementation = BaseConfiguration.FirefoxUseLegacyImplementation }; + this.driver = new FirefoxDriver(fireFoxOptions); break; case BrowserType.InternetExplorer: this.driver = new InternetExplorerDriver(this.InternetExplorerProfile); diff --git a/Objectivity.Test.Automation.Common/Objectivity.Test.Automation.Common.csproj b/Objectivity.Test.Automation.Common/Objectivity.Test.Automation.Common.csproj index efe9a1b40..f6dbbf827 100644 --- a/Objectivity.Test.Automation.Common/Objectivity.Test.Automation.Common.csproj +++ b/Objectivity.Test.Automation.Common/Objectivity.Test.Automation.Common.csproj @@ -121,12 +121,12 @@ - - ..\packages\Selenium.WebDriver.2.53.1\lib\net40\WebDriver.dll + + ..\packages\Selenium.WebDriver.3.0.0\lib\net40\WebDriver.dll True - - ..\packages\Selenium.Support.2.53.1\lib\net40\WebDriver.Support.dll + + ..\packages\Selenium.Support.3.0.0\lib\net40\WebDriver.Support.dll True @@ -173,7 +173,11 @@ This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + diff --git a/Objectivity.Test.Automation.Tests.MsTest/App.config b/Objectivity.Test.Automation.Tests.MsTest/App.config index 2a14ab39d..bfbb9690d 100644 --- a/Objectivity.Test.Automation.Tests.MsTest/App.config +++ b/Objectivity.Test.Automation.Tests.MsTest/App.config @@ -19,6 +19,7 @@ + diff --git a/Objectivity.Test.Automation.Tests.MsTest/Objectivity.Test.Automation.Tests.MsTest.csproj b/Objectivity.Test.Automation.Tests.MsTest/Objectivity.Test.Automation.Tests.MsTest.csproj index 8e1ab69f9..e30002eec 100644 --- a/Objectivity.Test.Automation.Tests.MsTest/Objectivity.Test.Automation.Tests.MsTest.csproj +++ b/Objectivity.Test.Automation.Tests.MsTest/Objectivity.Test.Automation.Tests.MsTest.csproj @@ -65,6 +65,10 @@ + + ..\packages\Selenium.WebDriver.3.0.0\lib\net40\WebDriver.dll + True + diff --git a/Objectivity.Test.Automation.Tests.MsTest/packages.config b/Objectivity.Test.Automation.Tests.MsTest/packages.config index 2a215b059..caef8fd28 100644 --- a/Objectivity.Test.Automation.Tests.MsTest/packages.config +++ b/Objectivity.Test.Automation.Tests.MsTest/packages.config @@ -2,5 +2,6 @@ + \ No newline at end of file diff --git a/Objectivity.Test.Automation.Tests.NUnit/App.config b/Objectivity.Test.Automation.Tests.NUnit/App.config index 67e028d33..9fac27c82 100644 --- a/Objectivity.Test.Automation.Tests.NUnit/App.config +++ b/Objectivity.Test.Automation.Tests.NUnit/App.config @@ -19,6 +19,7 @@ + diff --git a/Objectivity.Test.Automation.Tests.PageObjects/Objectivity.Test.Automation.Tests.PageObjects.csproj b/Objectivity.Test.Automation.Tests.PageObjects/Objectivity.Test.Automation.Tests.PageObjects.csproj index 14e2d9aba..727c305bb 100644 --- a/Objectivity.Test.Automation.Tests.PageObjects/Objectivity.Test.Automation.Tests.PageObjects.csproj +++ b/Objectivity.Test.Automation.Tests.PageObjects/Objectivity.Test.Automation.Tests.PageObjects.csproj @@ -60,12 +60,12 @@ - - ..\packages\Selenium.WebDriver.2.53.1\lib\net40\WebDriver.dll + + ..\packages\Selenium.WebDriver.3.0.0\lib\net40\WebDriver.dll True - - ..\packages\Selenium.Support.2.53.1\lib\net40\WebDriver.Support.dll + + ..\packages\Selenium.Support.3.0.0\lib\net40\WebDriver.Support.dll True @@ -121,12 +121,16 @@ + + IEDriverServer.exe + PreserveNewest + + + geckodriver.exe + PreserveNewest + chromedriver.exe - Always - - - IEDriverServer.exe PreserveNewest @@ -142,8 +146,10 @@ This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + diff --git a/TestFramework.sln b/TestFramework.sln index 8f734abb4..cda98f276 100644 --- a/TestFramework.sln +++ b/TestFramework.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 -VisualStudioVersion = 14.0.25123.0 +VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Objectivity.Test.Automation.Common", "Objectivity.Test.Automation.Common\Objectivity.Test.Automation.Common.csproj", "{46FA4EDC-A114-4E8F-A545-996F99E31EA8}" EndProject