Quality,  Selenium,  Selenium RC

Locators in Selenium RC and Webdriver

We have Locators in Selenium RC and Webdriver to identify the web elements. Some useful locators are mentioned below:



Link text




How to find ID, Link text and Name of Web Element?

Step 1: Move and put the cursor of the mouse on the web-element.

Step 2: Right Click, so the action list open.

Step 3: Find the Inspect Element or Inspect option and Click on it.

For example: If you want to find the locator ID of Search button of Google Search:

Locators in Selenium RC and Webdriver

Locators in Selenium RC and Webdriver

How to find CSS Locator?

If ID and Name are not available or not working then we can go for CSS (Cascade Style Sheet). It is a combination of “tag name.class name”.

Syntax: Selenium.click (“css = tagname.classname”);

Example: Selenium.click (“css = td.cal to day.tcalselected”);

Note: If the classname is having space then we will replace the space with dot (.).


X – Path:

It will identify the elements by using tag name with attributes.

Syntax: “//tagname[@attribute (s)]

It is of two types:

  1. Relative X-Path
  2. Absolute X-Path 

Relative X-Path:

It will identify the elements with Parent tag and attributes. The advantage is we can give multiple attributes like: ID, Name, Value etc. to identify the elements.


Selenium.click (“//tagname [@ attributes]”);

Selenium.click (“//input [@value= ’clear’]”);

Selenium.click (“//input [@value= ‘clear’ and @class = ‘log’]”);


Absolute X-Path:

If you are unable to identify the element by using the Relative X-Path, then we can go for Absolute X-Path.

  • It will identify the element with the hierarchical tags of the field.
  • We can take the Absolute X-Path & Relative X-Path from the use of Fire Path and Firebug tool
  • Firebug and Fire Path are compatible with only Firefox browser.


Please click here to read Selenium RC Programmes

Please click here to read Selenium RC Specification

Please click here to read Steps for creating a project in Eclipse

Please click here to read Selenium Configuration with Java

Please click here to read Selenium Components

Please click here to read Selenium IDE

Please click here to read Advantages and limitations of Selenium IDE


  • jordan 6

    I simply needed to appreciate you once more. I do not know what I would’ve gone through in the absence of these tips discussed by you regarding this industry. It was a very difficult difficulty in my opinion, but considering your specialised tactic you treated the issue took me to cry over delight. I am happier for this help and in addition hope you really know what a powerful job you have been carrying out instructing many others through the use of your website. Most probably you have never got to know all of us.

  • adidas yeezy

    I must show some thanks to you for bailing me out of this particular scenario. As a result of surfing through the world-wide-web and finding proposals which were not beneficial, I figured my life was well over. Being alive minus the approaches to the difficulties you’ve sorted out by means of your article is a serious case, and those which might have in a negative way affected my career if I had not discovered your web site. That competence and kindness in dealing with every item was helpful. I am not sure what I would have done if I hadn’t encountered such a stuff like this. I’m able to at this time relish my future. Thank you very much for your reliable and results-oriented help. I will not think twice to endorse the sites to anyone who desires care on this subject matter.

  • kate spade handbags

    A lot of thanks for all of your hard work on this blog. Gloria really likes making time for internet research and it’s really obvious why. Most people know all about the lively manner you produce invaluable information on your web blog and attract response from others on the idea plus our simple princess is certainly learning a lot. Have fun with the remaining portion of the new year. You’re the one carrying out a dazzling job.

  • supreme clothing

    I have to convey my appreciation for your generosity for those individuals that really need guidance on the field. Your very own dedication to passing the message around appeared to be certainly beneficial and has truly allowed those like me to reach their ambitions. Your invaluable publication means a whole lot a person like me and even further to my office colleagues. Thank you; from all of us.

  • hermes belt

    My spouse and i ended up being fulfilled when Raymond managed to carry out his reports through the entire ideas he came across in your web pages. It’s not at all simplistic just to find yourself offering ideas which often many people may have been trying to sell. And we grasp we now have you to give thanks to for this. The entire explanations you’ve made, the simple site navigation, the friendships you will make it easier to promote – it’s got many extraordinary, and it’s really aiding our son in addition to the family reckon that the matter is thrilling, which is seriously serious. Thank you for all the pieces!

  • golden goose sneakers

    Thanks so much for giving everyone an extremely nice possiblity to check tips from this web site. It can be so good and as well , packed with a good time for me and my office co-workers to visit the blog at minimum 3 times weekly to study the newest things you have. And lastly, I am also actually astounded for the breathtaking thoughts served by you. Selected 3 areas on this page are honestly the most efficient we have all had.

  • kd 11

    I simply desired to say thanks yet again. I am not sure what I might have achieved in the absence of these solutions shared by you concerning such a area. This was an absolute daunting setting in my position, however , seeing a new specialized manner you processed that made me to cry with delight. Now i am happy for your advice as well as believe you know what a powerful job your are doing teaching the others through the use of your blog post. I know that you have never come across any of us.

  • jordan shoes

    I wish to express thanks to the writer for bailing me out of such a incident. As a result of browsing throughout the world wide web and finding suggestions which are not powerful, I figured my entire life was done. Living devoid of the strategies to the issues you’ve resolved as a result of your entire site is a critical case, as well as ones that might have badly affected my career if I had not discovered your web blog. Your own natural talent and kindness in handling all the pieces was excellent. I am not sure what I would’ve done if I hadn’t come upon such a thing like this. It’s possible to at this moment relish my future. Thanks for your time so much for this skilled and result oriented guide. I will not think twice to suggest your blog to any individual who needs to have guidelines about this matter.

  • balenciaga sneakers

    I wish to show my thanks to this writer for rescuing me from this dilemma. Because of browsing throughout the online world and getting advice that were not helpful, I assumed my entire life was over. Living without the solutions to the issues you have resolved by means of your main blog post is a serious case, as well as those which may have in a negative way damaged my career if I had not noticed the website. Your personal mastery and kindness in touching the whole lot was priceless. I am not sure what I would have done if I had not encountered such a point like this. I can at this time relish my future. Thank you very much for this skilled and amazing help. I won’t be reluctant to endorse your blog to any person who should have guidelines about this situation.

  • yeezy boost 700

    I am glad for writing to let you know of the extraordinary experience our child developed reading through your web site. She learned plenty of issues, including what it is like to have a marvelous helping mindset to make the mediocre ones without hassle know just exactly a number of hard to do subject matter. You truly surpassed our expected results. Thank you for delivering these necessary, healthy, educational not to mention fun guidance on this topic to Lizeth.

  • froleprotrem

    Undeniably believe that which you stated. Your favorite justification seemed to be on the internet the easiest thing to be aware of. I say to you, I definitely get irked while people consider worries that they just don’t know about. You managed to hit the nail upon the top and also defined out the whole thing without having side effect , people can take a signal. Will likely be back to get more. Thanks

  • lebron shoes

    I’m often to running a blog and i really appreciate your content. The article has actually peaks my interest. I’m going to bookmark your website and maintain checking for brand new information.

  • 부달부달

    An impressive share! I have just forwarded this onto a coworker who was conducting a little homework on this. And he actually bought me dinner because I found it for him… lol. So let m부달
    e reword this…. Thanks for the meal!! But yeah, thanks for spending time to discuss this subject here on your web site.|

  • cheap jordans

    Oh my goodness! a tremendous article dude. Thanks However I’m experiencing problem with ur rss . Don抰 know why Unable to subscribe to it. Is there anyone getting similar rss downside? Anyone who is aware of kindly respond. Thnkx

Leave a Reply

Your email address will not be published. Required fields are marked *


Enjoy this blog? Please spread the word :)

Follow by Email