public class FlipkartBackedGrid2 extends SeleneseTestCase {
private Selenium selenium;
@Parameters({"browser","port"})
@BeforeClass
public void beforeClass(String browser,String port){
DesiredCapabilities capability= new DesiredCapabilities();
capability.setBrowserName(browser);
try {
WebDriver driver= new RemoteWebDriver(new URL("http://localhost:".concat(port).concat("/wd/hub")), capability);
selenium = new WebDriverBackedSelenium(driver, "http://www.flipkart.com");
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
private Selenium selenium;
@Parameters({"browser","port"})
@BeforeClass
public void beforeClass(String browser,String port){
DesiredCapabilities capability= new DesiredCapabilities();
capability.setBrowserName(browser);
try {
WebDriver driver= new RemoteWebDriver(new URL("http://localhost:".concat(port).concat("/wd/hub")), capability);
selenium = new WebDriverBackedSelenium(driver, "http://www.flipkart.com");
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
No comments:
Post a Comment