Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dotnet] mark UseSpecCompliantProtocol obsolete and throw error when …
…false (#10448)
- Loading branch information
1 parent
a52bfcd
commit d830a13
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,26 @@ | ||
using NUnit.Framework; | ||
using System; | ||
using NUnit.Framework; | ||
using OpenQA.Selenium.Environment; | ||
|
||
namespace OpenQA.Selenium.Chrome | ||
{ | ||
[TestFixture] | ||
public class ChromeSpecificTests : DriverTestFixture | ||
{ | ||
[OneTimeTearDown] | ||
public void RunAfterAnyTests() | ||
{ | ||
EnvironmentManager.Instance.CloseCurrentDriver(); | ||
EnvironmentManager.Instance.WebServer.Stop(); | ||
} | ||
|
||
[Test] | ||
public void W3CFalse() | ||
{ | ||
Assert.Throws<ArgumentException>(() => new ChromeOptions | ||
{ | ||
UseSpecCompliantProtocol = false | ||
}); | ||
} | ||
} | ||
} |