11th December 2019

guru99
15

What are the locators in selenium?

Locator is a command that tells Selenium IDE which GUI elements ( say Text Box, Buttons, Check Boxes etc) its needs to operate on. Identification of correct GUI elements is a prerequisite to creating an automation script.

What is relative and absolute XPath?

Absolute Xpath: It uses Complete path from the Root Element to the desire element. Relative Xpath: You can simply start by referencing the element you want and go from there. Always Relative Xpaths are preferred as they are not the complete paths from the Root element. So Always use Relative Xpaths in your Automation.

What is a Webelement?

A WebElement is just the reference to that element within the DOM. It is Selenium 's way of representing a DOM element to you so that you can manipulate it.
Write Your Answer

Rate

80% people found this answer useful, click to cast your vote.

4 / 5 based on 3 votes.

Bookmark

Press Ctrl + D to add this site to your favorites!

Share