Skip to content

Commit

Permalink
Updating .NET test to not need two driver instances
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Jun 12, 2018
1 parent 8eb7d85 commit 9ad2f48
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dotnet/test/common/UnexpectedAlertBehaviorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class UnexpectedAlertBehaviorTest : DriverTestFixture
[SetUp]
public void RestartOriginalDriver()
{
driver = EnvironmentManager.Instance.GetCurrentDriver();
EnvironmentManager.Instance.CloseCurrentDriver();
}

[TearDown]
Expand All @@ -24,6 +24,8 @@ public void QuitDriver()
localDriver.Quit();
localDriver = null;
}

EnvironmentManager.Instance.CreateFreshDriver();
}

[Test]
Expand All @@ -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");
}

Expand Down

0 comments on commit 9ad2f48

Please sign in to comment.