Updating .NET test to not need two driver instances
@@ -13,7 +13,7 @@ public class UnexpectedAlertBehaviorTest : DriverTestFixture
[SetUp]
public void RestartOriginalDriver()
{
- driver = EnvironmentManager.Instance.GetCurrentDriver();
+ EnvironmentManager.Instance.CloseCurrentDriver();
}
[TearDown]
@@ -24,6 +24,8 @@ public void QuitDriver()
localDriver.Quit();
localDriver = null;
}
+
+ EnvironmentManager.Instance.CreateFreshDriver();
}
[Test]
@@ -32,7 +34,6 @@ public void QuitDriver()
[IgnoreBrowser(Browser.Safari, "Test issue, Safari driver does not support multiple simultaneous instances")]
public void CanAcceptUnhandledAlert()
{
-
ExecuteTestWithUnhandledPrompt(UnhandledPromptBehavior.AcceptAndNotify, "This is a default value");
}
