Name
, ID
, Xpath
, DOM
, Link Text
, CSS Selector
. Following are the methods .ID
, elements can be located. There are two different steps to found the elements by ID Username
. Inspection of any web site is simple in any web site, for example while entering any credentials to the form, by giving right click on the text field user can change the name of the filed and also at the place of password one can keep the show
or text
to visible the data.
Name type
is used to locate prime element with similar name , in case variuos elements have similar values for a particular name, then it's better utilize filters to future refining purpose. XPath
is nothing but a dialect
that utilized for XML document to locate the nodes, one can use the XPath when thers is no id or name element to locate, these locators can be used to declare elements via using attributes. Document Object Model
. Page elements can be accessed by using Document Object Model. It represents the static page and it will be drived by using JavaScript code that access an element. There are two steps to find page elements using Document Object Model.