Finding element locators not always easy, particularly with AJAX and dynamic components. It appears there’s no one-size-fits-all tool that will find every element for you. Sometimes need to use combination of tools to find element. When one tool doesn’t work, try another. Or use multiple to find the best matching locator for an element. For Firefox that includes:
there may be others, but the list above is what I currently use. FirePath is my favorite among the list. Anyone have suggestions for tools not in that list? FirePath is my preferred tool in the set, followed by Firebug.
What about for other browsers? Suggestions?
For IE, at least IE8+, there’s built in developer toolbar but I find it rather very slow compared to Firefox extensions. I’d only use it as last resort. I think the dev toolbar addon for IE7 is better (or rather faster) but haven’t used it much to really say. For my IE needs, I’ve been using IE DebugBar instead.
For other browsers, I just use their native developer tools.
Interestingly today, I came across a prime example of when one tool doesn’t work, try another that I mention in this blog post, see this Selenium user group discussion: