Rodrigo
0
Q:

how to choose locator in selenium

--> How do you decide which locator to use? Which one is the 
most important locator?
    #1-> If it is a link, I would go for linkText.
    
    #2-> If there is id, I will use id value 
    to locate (after making sure it is not dynamic)
    
    #3-> If there is class, I'll quickly check if it is unique or not?
   
   #4-> If none of the others are not working, then I would create '
   my custom locator with XPATH 
0
--> WHAT ARE LOCATORS? 
    - Locators are methods that are used to locate HTML web elements for 
      Selenium browser driver.
      
--> WHAT IT IS USED FOR? 
    - It is used to locate any specific web element 
    on the UI of AUT (application under test)

--> HOW MANY Selenium LOCATORS?
   - There are 8 locators.
    - id, class, name, linktext, partialLinktext, cssSelector, xpath, tagName
0
--> WHAT ARE LOCATORS? 
    - Locators are methods that are used to locate HTML web elements
      for Selenium browser driver.
      
--> WHAT IT IS USED FOR? 
    - It is used to locate any specific web element on the UI of AUT (application under test)
--> HOW MANY Selenium LOCATORS?

    - There are 8 locators.
    - id, class, name, linktext, partialLinktext, cssSelector, xpath, tagName
0

New to Communities?

Join the community