Created
March 28, 2021 15:14
-
-
Save ultimate-qa2/0f6e39439ad728cc6083b38196e3aa8e 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 checkboxes() { | |
driver.get("https://the-internet.herokuapp.com/checkboxes"); | |
WebElement firstCheckbox = driver.findElement(By.xpath("//input[1]")); | |
if (!firstCheckbox.isSelected()) { | |
firstCheckbox.click(); | |
} | |
Assert.assertTrue(firstCheckbox.isSelected()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment