* BrowserTests.cs:
* BrowserDriver.cs: * weehawken.csproj: NUnit framework only. Removing the Specflow stuff, because it was stomping on the nunit tests. Need to figure out why that's happening.
This commit is contained in:
parent
2f51c326e4
commit
e0fa52305e
@ -18,9 +18,9 @@ namespace weehawken
|
|||||||
case "firefox":
|
case "firefox":
|
||||||
return GetFirefox(headless);
|
return GetFirefox(headless);
|
||||||
case "safari":
|
case "safari":
|
||||||
return getSafari(headless);
|
return getSafari(false); //headless not supported
|
||||||
case "edge":
|
case "edge":
|
||||||
return getEdge(headless);
|
return getEdge(headless); //headless only available in Selenium 4
|
||||||
default:
|
default:
|
||||||
throw new ArgumentException("Invalid browser specified");
|
throw new ArgumentException("Invalid browser specified");
|
||||||
}
|
}
|
@ -5,7 +5,7 @@ using OpenQA.Selenium.Remote;
|
|||||||
|
|
||||||
namespace weehawken
|
namespace weehawken
|
||||||
{
|
{
|
||||||
public class Tests
|
public class BrowserTests
|
||||||
{
|
{
|
||||||
private String url;
|
private String url;
|
||||||
private RemoteWebDriver driver;
|
private RemoteWebDriver driver;
|
@ -7,8 +7,6 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="nunit" Version="3.12.0" />
|
|
||||||
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
|
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
|
||||||
<PackageReference Include="Selenium.WebDriver" Version="4.0.0-alpha05" />
|
<PackageReference Include="Selenium.WebDriver" Version="4.0.0-alpha05" />
|
||||||
<PackageReference Include="Selenium.Support" Version="4.0.0-alpha05" />
|
<PackageReference Include="Selenium.Support" Version="4.0.0-alpha05" />
|
||||||
@ -17,11 +15,9 @@
|
|||||||
<PackageReference Include="Selenium.WebDriver.GeckoDriver" Version="0.27.0" />
|
<PackageReference Include="Selenium.WebDriver.GeckoDriver" Version="0.27.0" />
|
||||||
<PackageReference Include="Selenium.WebDriver.Extensions" Version="3.3.0" />
|
<PackageReference Include="Selenium.WebDriver.Extensions" Version="3.3.0" />
|
||||||
<PackageReference Include="Selenium.WebDriver.MSEdgeDriver" Version="85.0.564.41" />
|
<PackageReference Include="Selenium.WebDriver.MSEdgeDriver" Version="85.0.564.41" />
|
||||||
<PackageReference Include="SpecFlow" Version="3.4.14" />
|
<PackageReference Include="NUnit" Version="3.12.0" />
|
||||||
<PackageReference Include="SpecFlow.NUnit" Version="3.4.14" />
|
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
|
||||||
<PackageReference Include="SpecFlow.Tools.MsBuild.Generation" Version="3.4.14" />
|
<PackageReference Include="BoDi" Version="1.4.1" />
|
||||||
<PackageReference Include="gherkin" Version="6.0.0" />
|
|
||||||
<PackageReference Include="SpecFlow.CustomPlugin" Version="3.4.14" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@ -29,4 +25,8 @@
|
|||||||
<Visible>False</Visible>
|
<Visible>False</Visible>
|
||||||
</SpecFlowFeatureFiles>
|
</SpecFlowFeatureFiles>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="Harness\" />
|
||||||
|
<Folder Include="Tests\" />
|
||||||
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
Loading…
Reference in New Issue
Block a user