Created
July 15, 2011 07:46
-
-
Save freynaud/1084264 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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