public class BTest implements WebDriverProvider
{
@Test
public void launch()
{
System.setProperty("browser", "firefox");
Configuration.browser=BTest.class.getName();
Configuration.screenshots = false;
Configuration.browserSize = "1920x1200";
}
@Override
public WebDriver createDriver(DesiredCapabilities arg0) {
FirefoxDriverManager.getInstance().setup();
return new FirefoxDriver();
}
}
问问题
463 次