How to use Locator Assistance to get other options to identify the webelement in selenium IDE?

Follow this blog entry before read this blog > Read ME

Target is used to identify webelement on the webpage

How many types for Locating Elements on the webpage?

Locating by Id / Locating by Name / Locating by XPath / Locating Hyperlinks by Link Text / Locating by CSS

We need to install two addons in firefox before moving forward

Firebug :: Add-ons for Firefox

FirePath :: Add-ons for Firefox

Using this addon we can get all details of webpage.

Locating by Id

Lets go on to WordPress web portal –

We want to find Username textbox element on the webpage using ID of that element

For that start firebug.

use web element inspector to get location of Username element on the webpage.

We get following code for it. in which one attribute  id=”user_login” which is used to identify Username field at run time.

<input type="text" tabindex="10" size="20" value="" class="input" id="user_login" name="log" style="background-color: rgb(251, 251, 251);">

Locating by Name

Using Name of the webelement we get access of that at runtime.

In wordpress example name=”log” 

<input type="text" tabindex="10" size="20" value="" class="input" id="user_login" name="log" style="background-color: rgb(251, 251, 251);">

🙂 Locating by XPath 🙂 

Very useful…………..

For this we will firebug + firepath.

There are two ways of accessing element using xpath:

  1. absolute XPATH
  2. Relative XPATH

On wordpress website we get both as following to identify element




We mostly use identical / relative xpath identify web element on the page.

Locating by XPath

Locating by XPath

Locating by XPath – By finding a nearby element with an id or name attribute (ideally a parent element) you can locate your target element based on the relationship

Locating Hyperlinks by Link Text

 <a title="Password Lost and Found" href="" style="background-color: transparent;">Lost your password?</a>



Locating by CSS

What is CSS?

  • CSS stands for Cascading Style Sheets
  • Styles define how to display HTML elements

So in our wordpress example, Login page webelements has given some css

  • class=”input”
<input type="text" tabindex="10" size="20" value="" class="input" id="user_login" name="log" style="background-color: rgb(251, 251, 251);">


If we want to identify webelement using CSS given to it We should enter following values into Target field



<input type="password" tabindex="20" size="20" value="" class="input" id="user_pass" name="pwad">



For a better web


News and reviews from the world of gadgets, gear, apps and the web

Digital Inspiration

Tips and tutorials around all things tech.

Thinkwareglobal's Blog

Just another weblog

Kenazari's Blog

Just another weblog

Richfowler1's Blog

Just another weblog

Romaicus's Blog

Just another weblog


Just another site


Just another site


Just another site


digital media expert blog

Different Journeys

Let's make life easier!

Thinking in Silverlight

Silverlight/WPF/Windows 8 Store App




Promoting Indian language Books

Actively Lazy

Software, crafted with passion


An ongoing discussion about SAP infrastructure

SAP Career

Your Career Mentor


Just another site

The secret product manager

Thoughts about product management, SUSE, Linux, ARM processors, Cloud, AIX, Power Systems, and other things that interest me

Simon Les Flex's Blog

SAP Process Integration Specialist - NOW WE CAN DO BETTER!

Oracle Technologies Primer

An Oracle Fusion Middleware and iPaaS blog!

Gilberto Holms

Java, Middleware, SOA Architecture Blog

The Skeleton

Java code skeletons, tips and pointers

J@n van Zoggel

Journal of a tech junkie

The Pragmatic Integrator

Hints and tips from a pragmatic integration specialist


The pace of life..

Optimalbg's Blog

Just another site

IT Jobs in USA

Keep the track of this Blog if you are looking out for some good Opportunities to work in USA....

Referral Jobs | Right Place to Get a Job

Hurry you are one Click away to get a job - Fresher Jobs for 2012, 2013 fresher’s and also high paid jobs for well Experienced IT professionals on Referal jobs.

Michael Korn's Blog

Musings on Life, Career, Faith and Technology


Just another weblog


.Net Core, AspNetCore, Entity Framework, Entity Framework Core, AspNetIdentity, AspNetIdentityCore, Unit Test, WCF, Workflows

Expertqtp's Weblog

Just another weblog

Sai Chamarthi

Experienced Testing Professional


A great site

Suresh4qtp's Blog

Just another site


This site is the cat’s pajamas

It's always something...

Just another weblog

Faculty of Information Technology - Lê Ngọc Tiến

Be Yourself! Simplify Our Goals! Nothing is Impossible!

Anti-Malware Testing

Thoughts on security product testing past and present

Methods & Tools

Practical knowledge for the software developer, tester and project manager

Mindscripts Software Testing Training Institutes In Pune

Software Testing In Pune, Software Testing Training In Pune, Software Testing Training Institute,Software Testing Training Institutes In Pune ,Software Testing Training Centers,Software Testing Classes In Pune,,Software Testing Courses Pune, Software Testing Certification In Pune,,software testing certification course in pune,software testing certification institutes in pune

edington associates

Working with organizations to develop sustainable and thriving workplaces and people.

Enterprise WordPress hosting, support, and consulting - WordPress VIP

Our best-in-class enterprise WordPress hosting platform, expert consulting and support, and diverse partner ecosystem free you to focus on your business objectives.

WORK Online

Virtual Office at HOME