Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool to find out XPath [closed]

I find XPath difficult to get my head around at times and am looking for a tools that I can point at a line in an xml config file an it will tell me the xpath to the attributes that I need.

Any help with this would be much appreciated>

like image 224
Burt Avatar asked Dec 16 '09 15:12

Burt


People also ask

Which tool should be used to find the XPath of an element in selenium in Mozilla Firefox?

We can get XPath and CSS selector of Web element using Firebug. Let's see how. Do right click on web element which you want to locate and select Inspect Element with Firebug. It will highlight the code.

How do I get XPath in HTML?

Open the website that you want to inspect. ... Click the web page element that you want to inspect. ... Right-click the highlighted code in the Firebug panel. ... Select "Copy XPath" from the menu.

How do you define XPath?

XPath is defined as XML path. It is a syntax or language for finding any element on the web page using the XML path expression. XPath is used to find the location of any element on a webpage using HTML DOM structure.


3 Answers

I've used the "Buba XPath builder" to do this. SketchPath (now XMLQuire) may also do the trick:

http://qutoric.com/xmlquire/

like image 149
James Kolpack Avatar answered Oct 22 '22 08:10

James Kolpack


Visual XPath is full of win.

like image 23
Ta01 Avatar answered Oct 22 '22 09:10

Ta01


If you use firefox you might want to check out XPather. Even if you find another tool, this is a handy thing to have around when you just want to check something out quickly if you are like me and almost always have a browser window already open.

like image 30
Dolphin Avatar answered Oct 22 '22 08:10

Dolphin