Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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');


Comment on Re: Mechanize select with "id" or "class" other than "name".
Select or Download Code
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2014-07-26 03:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls