Showing posts with label locators. Show all posts
Showing posts with label locators. Show all posts

8 Ways to locate an element using Selenium - Java

For testing an application you need to first locate an element.There are many ways to select an element .

  • By ID. 
  • By name.
  • By class name.
  • By tag name.
  • By link text.
  • By partial link text.
  • By CSS.
  • By XPath.