Firebug (?) displays Ruby code to get/set HTML element

J

Jack Bamford

Several months ago I used a Firefox/Firebug extension that displayed the
Ruby code (python too IIRC) needed to get and/or set a selected HTML
element.

Now I can't find it again and it's making me crazy.

I have googled and FAQ'd my butt off but no dice. I'd even consider
paying a Ruby wizard to help me find this, if neccy. cb0 <punctuation>
me <punctuation> com

PLEASE help!!!

CB

PS. It may even not be a Firefox thingie --- I just can't imagine what
else it would be. I use Mac OS X, and can't find it in Safari either.
 
F

Fabian Streitel

[Note: parts of this message were removed to make it a legal post.]

huh? since when does firebug use ruby?
i think you're mistaken here. AFAIK that's all javascript

Greetz
 
J

Jack Bamford

Fabian said:
huh? since when does firebug use ruby?
Greetz

It's a Firefox/Firebug EXTENSION, not a native function.

Here's how it worked:
You browsed to a website of interest, then selected a field on the page.
The extension I am looking for would display, in a separate window, the
Ruby (or optionally Python) expression needed to access that field
(under the Ruby OSA interface to Apple Script).

I am not dreaming this --- I used it several times about 10 months ago
--- but I cant remember its name or find it thru google.

I will admit my OP was very confusing.

Thx
 
M

Mark Thomas

It's a Firefox/Firebug EXTENSION, not a native function.

Here's how it worked:
You browsed to a website of interest, then selected a field on the page.
The extension I am looking for would display, in a separate window, the
Ruby (or optionally Python) expression needed to access that field

That's neat, but it's not hard to put a

doc.at( )

around an XPath (Nokogiri syntax) that you get from Firebug or another
tool. Note, however, that you will get superior results crafting the
XPath yourself rather than blindly taking output from DOM-based tools.
See http://groups.google.com/group/comp...10467/2317d10bf6c4c1e3?hl=en#2317d10bf6c4c1e3
for a discussion.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top