Locators in selenium(for locating web element-static method in By class)
| 2 | locator | inspect element on web page | |
| <input placeholder="Patient First Name" maxlength="30" class="form-control jqName" size="30" type="text" name="appointment[patient_ | id | unique | driver.findElement(By.id(" |
| class | driver.findElement(By.class(" | ||
| classname | driver.findElement(By. | ||
| cssSelector() | WebElement ref = driver.findElement(By. | ||
| <a href="https://www.credihealth. | linkText() | WebElement ref = driver.findElement(By. | |
| partiallinktext() | WebElement ref = driver.findElement(By. | ||
| tagName | WebElement ref = driver.findElement(By.tagName( |
Comments
Post a Comment