Created
February 24, 2021 15:41
-
-
Save ultimate-qa2/79e08def5e111ad7a718d9b39402840a to your computer and use it in GitHub Desktop.
Basic web element interactions performed with Selenium WebDriver in Java
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.findElement(By.id(“sign-in”)).click(); | |
driver.findElement(By.id(“session_email”)).click(); | |
WebElement email = driver.findElement(By.id(“session_email”)); | |
email.sendKeys("sauce@example.com"); | |
WebElement email = driver.findElement(By.id(“session_password”)); | |
email.sendKeys("password"); | |
driver.findElement(By.tagName(“form”)).submit(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment