karl368 / firepath

Automatically exported from code.google.com/p/firepath
GNU General Public License v3.0
0 stars 0 forks source link

Add [@class="foo"] and [@id="bar"] in addition to the current div[##] XPath presentation #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Add a richer display of XPaths (showing @class and @id arguments).

Original issue reported on code.google.com by saidimu on 30 Nov 2010 at 4:30

GoogleCodeExporter commented 9 years ago
Thanks for reporting this. 
Could you please give more details? With the current description I'm not sure 
what you are asking for. Maybe you could give an example that shows what you 
currently get and what you would expect.

Original comment by pierre.t...@gmail.com on 3 Dec 2010 at 4:06

GoogleCodeExporter commented 9 years ago
I wanted those sorts of options too, so I wrote them into the version of 
FirePath I've been using.  I've attached the diffs for bindings.xml and 
FirePathPanel.js

Original comment by theaetet...@gmail.com on 16 Mar 2012 at 7:29

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Not only @id (already implemented) and @class are interesting. There should be 
an option to get the XPath applying to arbitrary attributes.

There's a use case for this on stackoverflow.[1] I also added issue fbug:7191 
to allow the something similar in Firebug.

Sebastian

[1] http://stackoverflow.com/questions/21644615/how-to-get-the-correct-xml-path

Original comment by sebastia...@gmail.com on 19 Feb 2014 at 11:16