RE: Advise on hierarchy for element locators

Answered

Hi, whilst I am aware of how to search for the different elements on a page, e.g.by xpath, id, css etc, I was after some advise as to which hierarchy to use and why? E.g. should we use xpath locators before reverting to searching for the id?

Any help would be appreciated.

tilston1001 Train Asked on December 8, 2014 in Selenium WebDriver.
Add Comment
3 Answers

Hi Lakshay, that’s great thanks. I’ll close off the answer now 🙂 Hope you’re well anyway. Andy

Train Answered on December 9, 2014.

I am good Andy,
Thats how we close the answer 🙂
http://forumsqa.com/selenium-webdriver/how-to-choose-best-answer-insert-code-vote-up-an-answer/

Click on you name and you will find there are 3 more unclosed questions on your name, please close them as well.

on December 9, 2014.

OOps, cheers Laksh. Hopefully done that correctly now 🙂

on December 9, 2014.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.