You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CSF.Extensions.WebDriver.Tests/Factories/WebDriverFromOptionsFactoryTests.cs
+20-1Lines changed: 20 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,18 @@ public void GetWebDriverShouldCreateALocalChromeDriverFromAppropriateOptions([St
26
26
{
27
27
Assert.Pass("Despite the exception raised, this is only because the driver isn't installed on the environment running the test; this is more than enough to prove that the driver was being created.");
if(invOpEx.Message.StartsWith("session not created:"))
32
+
Assert.Pass("Despite the exception raised, this is only because the wrong version of the driver is installed on the environment running the test; this is more than enough to prove that the driver was being created.");
33
+
throw;
34
+
}
35
+
catch(InvalidOperationExceptioninvOpEx)
36
+
{
37
+
if(invOpEx.Message.StartsWith("session not created:"))
38
+
Assert.Pass("Despite the exception raised, this is only because the wrong version of the driver is installed on the environment running the test; this is more than enough to prove that the driver was being created.");
39
+
throw;
40
+
}
30
41
}
31
42
32
43
[Test,AutoMoqData]
@@ -48,6 +59,14 @@ public void GetWebDriverShouldCustomiseDriverOptionsWithCallbackWhenItIsSpecifie
48
59
{
49
60
// Intentionally ignore this exception; we know it's going to fail but I care only about how the options were manipulated in this test.
0 commit comments