Handle disposal from driverfixture
This commit is contained in:
@ -1,10 +1,11 @@
|
||||
using EATestFramework.Settings;
|
||||
using OpenQA.Selenium;
|
||||
using System;
|
||||
|
||||
namespace EATestFramework.Driver
|
||||
{
|
||||
|
||||
public class DriverFixture : IDriverFixture
|
||||
public class DriverFixture : IDriverFixture, IDisposable
|
||||
{
|
||||
IWebDriver driver;
|
||||
private readonly TestSettings _testSettings;
|
||||
@ -31,5 +32,9 @@ namespace EATestFramework.Driver
|
||||
};
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
driver.Quit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user