In my WatiN tests I am currently structuring the test like this:
[TestMethod]
public void Failed_Attempted_Login_Invalid_Combination()
{
using (var browser = new IE(baseUrl + "login.aspx"))
{
browser.Page<AVLoginPage>().Login("test@roger.com", "123421343414");
Assert.IsTrue(browser.ContainsText("Email address or password is incorrect. "));
}
}
Is there a clean way to be able to specify the browser without having to create separate tests for each browser type?