We will use the same XPath Attribute for our next command which involves typing the username as a login credential in the "Username" text box.
#HOW TO INSTALL SELENIUM IDE FOR FIREFOX HOW TO#
Syntax: and Example: and us consider an example on how to use XPath as a target for commands in Selenium IDE.XPath Attributes allows us to locate web elements using their different attributes.XPath Attributes is always recommended when you don't have a suitable id or name attribute for the element you want to locate.Example: //html/body/div/div/div/div/div/div/fieldset/form/div/input.It is not recommended because it takes the complete XPath location and if the location of the web element is changed or it belongs to some other parent then XPath will be unable to locate the desired element.XPath Absolute enables users to mention the complete XPath location from the root HTML tag to the specific elements.XPath provides locating strategies like:.XPath can be used as a substitute when you don't have a suitable id or name attribute for the element you want to locate.XPath is a language used for locating nodes in XML documents.Next → ← prev Selenium IDE- Locating Strategies (By XPath)