Skip to content

Instantly share code, notes, and snippets.

@freynaud
Created July 15, 2011 07:46
Show Gist options
  • Save freynaud/1084264 to your computer and use it in GitHub Desktop.
Save freynaud/1084264 to your computer and use it in GitHub Desktop.
@BeforeClass
public static void prepare() throws Exception {
port = 4444;// PortProber.findFreePort();
RemoteControlConfiguration config = new RemoteControlConfiguration();
config.setPort(port);
server = new SeleniumServer(config);
server.boot();
}
@Test
public void remote() throws Throwable {
WebDriver driver = null;
driver = new RemoteWebDriver(new URL("http://localhost:44444/wd/hub"), cap);
driver.get("http://pages.uk.fp004.qa.ebay.com/sitemap.html?_trksid=m37");
driver.quit();
}
@AfterClass
public static void teardown() {
server.stop();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment