[SetUp]
public void Setup()
{
//open web page
}
[Test]
public void Test()
{
//test stuff
}
C# selenium driver has two methods, you can set up for example opening browser and going to specific web page, and then testing specific elements, so you don't have to write opening part in each test method.
But then all these web pages will stay open until you close them manually. Is there an equivalent for Setup that runs after test has been completed, so you can close browser automatically?