Created
May 31, 2011 17:00
-
-
Save freynaud/1000880 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
driver = new RemoteWebDriver(new URL("http://10.250.57.219:4444/wd/hub"), cap); | |
driver.get("http://www.ebay.co.uk"); | |
Augmenter a = new Augmenter(); | |
driver = a.augment(driver); | |
TakesScreenshot s = (TakesScreenshot)driver; | |
File tmp = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE); | |
tmp.renameTo(new File("c:\\tmp\\ss2.png")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment