You are on page 1of 2

Inspect Elements / Locate them

on browser
Multiple Ways To Locate Elements - Locators

 Id – unique id of an element
 Name – unique name of an element
 className – element belonging to a particular class
 tagName – element from specific tag name i.e. a, div etc.
 linkText – The text mentioned on a link
 partialLinkText – The text mentioned on a link but matched partially
 cssSelector – using css to find element.
 Xpath – using xml path to determine the location of an element it works on both Html page
and XML documents

Demo Website : https://www.techlistic.com/p/selenium-practice-form.html

You might also like