Created
August 20, 2020 09:40
-
-
Save angelovstanton/57ff0304d981e90a6eb0e63df8fc9e0c 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
@Test | |
public void takeFullScreenshot_test() throws Exception { | |
driver.navigate().to("http://automatetheplanet.com"); | |
takeFullScreenshot("testImage"); | |
} | |
@Test | |
public void takeElementScreenshot_test() throws Exception { | |
driver.navigate().to("http://automatetheplanet.com"); | |
var element = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("/html/body/div[1]/header/div/div[2]/div/div[2]/nav"))); | |
takeScreenshotOfElement(element, "testElementImage"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment