Why Locators are required?

  • When we go to any website it has multiple fields, buttons, forms, etc. We need to uniquely identify the elements present on the website in order to successfully automate different flows.
  • If we want to click a particular button, it is possible that the page contains multiple buttons. So, how will you identify which button to click?
  • This is where the locators come into play. They help us identify each and every element uniquely present on the web page.

#testing #locators #selenium #locator strategy

Locator strategy using Selenium 4.0
1.45 GEEK