power_settings_new

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

answered by (171 points)
0 votes

Selenium webdriver uses 8 locators to find the elements on web page.

  • id
  • Name
  • Linktext
  • Partial Linktext
  • Tag Name
  • Class name
  • CssXpath

 

Example to identify element by ID:

WebElement Ele = driver.findElement(By.id("toolbar"));
Rest you may type . after By and figure out.
add
...