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