Example: Let’s take the above example:
You can easily choose the element with the help of Name locator from the above example:
name = “login”
name = “password”
1
2
3
|
WebElement elementUsername = driver.findElement(By.name("login"));
WebElement elementPassword = driver.findElement(By.name("password"));
|
No comments:
Post a Comment