Skip to content

Commit

Permalink
Properly closing and making driver null in .NET AlertsTest
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Apr 11, 2019
1 parent 1d46f6b commit e002511
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dotnet/test/common/AlertsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,9 @@ public void ShouldHandleAlertOnPageBeforeUnloadAlertAtQuit()
IWebElement element = driver.FindElement(By.Id("navigate"));
element.Click();
IAlert alert = WaitFor<IAlert>(AlertToBePresent, "No alert found");
driver.Quit();
driver = null;

// CloserCurrentDriver() contains a call to driver.Quit()
EnvironmentManager.Instance.CloseCurrentDriver();
}

// Disabling test for all browsers. Authentication API is not supported by any driver yet.
Expand Down

0 comments on commit e002511

Please sign in to comment.