in reply to WWW::Mechanize::Firefox latency using RemoteObject
You can at least avoid some of the loops by using ->xpath queries to find relevant elements. For example to find all INPUT elements for a given form, you can use
my @inputs = $mech->selector( 'input,select,textarea', node => $form ) +;
There is no convenient way to do bulk-fetching for attributes, so you're basically stuck there.
If all you want is the HTML of elements, you can just print $element->{innerHTML}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: WWW::Mechanize::Firefox latency using RemoteObject
by hansendc (Novice) on Apr 03, 2011 at 20:14 UTC | |
by Corion (Patriarch) on Apr 04, 2011 at 07:06 UTC | |
by hansendc (Novice) on Apr 09, 2011 at 23:50 UTC |