Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Mechanize select with "id" or "class" other than "name".

by Corion (Pope)
on Nov 12, 2012 at 09:39 UTC ( #1003394=note: print w/replies, xml ) Need Help??


in reply to Mechanize select with "id" or "class" other than "name".

->select uses HTML::Form->find_input, so you should be able to specify an id by using a # prefix:

$mech->select('#keyword-country-option', 'Canada');

Replies are listed 'Best First'.
Re^2: Mechanize select with "id" or "class" other than "name".
by Anonymous Monk on Nov 12, 2012 at 10:31 UTC

    Thank you...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003394]
help
Chatterbox?
[hippo]: I very much hope so.
[moritz]: there are already some (very few) Perl 6 modules on CPAN, but in a way that the p5 indexer avoids them
[hippo]: It's confusing enough to have the Perl6:: namespace which isn't for Perl6 but for features from that ported into Perl.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2017-01-24 09:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (203 votes). Check out past polls.