Saved Bookmarks
| 1. |
What is the difference between driver.findElement() and driver.findElements() commands? |
|
Answer» The distinction between driver.findElement() and driver.findElements() commands is-
findElement() has the following syntax: WebElement textbox = driver.findElement(By.id("textBoxLocator"));
findElements() has the following syntax: List <WebElement> elements = element.findElements(By.id("value")); |
|