Thursday 28 August 2014

Selenium Tool : Download and Install WebDriver Element Locator Add-on

Element Locator Add-on is available in FireFox Browser as Add-on or extension. You can install it in FireFox browser.

Element Locator Add-on is very useful to find or locate appropriate web element or control like, text box, button, image, input box, etc. in browser. It will return location string of that particular control. This string is helpful in selenium automation process.

When you right click on particular control or element in Firefox browser, it will populate context menu with very useful XPATH for 'WebDriver' which is very useful in 'findElement' method of selenium 'WebDirver' API.

Here are steps to download and install 'WebDriver' element locator.


STEP 1 : Go to FireFox add-on link :
FireFox Add-on URL : https://addons.mozilla.org/en-US/firefox/addon/element-locator-for-webdriv/?src=api

[Image : Open Add-on URL] :
Download and Install WebDriver Element Locator Add-on
(To view original size image , click on image)

STEP 2 : Install :
After opening this URL you can see one 'Add to Firefox' button, click on this button, it will open one dialog box and ask you for Install, Click on 'Install' button, after that Add-on is installed and give a successful installation message. You can also check in 'FireFox' add menu, for that go to Menu, Tools -> Add-Ons, here you can find list of installed add-ons.

[Image : Install Now] : 
Download and Install WebDriver Element Locator Add-on
(To view original size image , click on image)

[Image : Install Successfully] :  
Download and Install WebDriver Element Locator Add-on
(To view original size image , click on image)

[Image : Element Locator Context Menu] : 
Download and Install WebDriver Element Locator Add-on
(To view original size image , click on image)

After installation, open any URL and do right click on any element you can see the various menu items like C# Locator, XPATH, etc. In this, you can find various Locator strings, you can use this locator strings depending on your use.


Full Video : 

No comments:

Post a Comment