I have class Login.
public class Login
{
private WebDriver driver;
@Beforetest
public void SetUp()
{
doingsmth();
//How to do this?
driver = FirefoxDriver or Chromedriver depending on smth.
}
@test
public void loginFirefox_a(){}
@test
public void loginFirefox_b(){}
@test
public void loginFirefox_c(){}
@test
public void loginFirefox_d(){}
@test
public void loginChrome_a(){}
@test
public void loginChrome_b(){}
@test
public void loginChrome_c(){}
@test
public void loginChrome_d(){}
}
I know I somehow can use parametrized, but don't know how to use it (f.e how test recognise param name?) Any help will be appreciated.