in reply to Re^2: choosing option value in test script.
in thread choosing option value in test script.
I was using the example in the WM doc, and used type instead of type_regex.my @teacher_input = $mech->find_all_inputs( { type => 'option', name => 'teacher', } ); Reference found where even-sized list expected at /usr/local/share/per +l/5.10.0/WWW/Mechanize.pm line 973. at /usr/local/share/perl/5.10.0/WWW/Mechanize.pm line 973
# get all text or textarea controls called "customer" my @customer_text_inputs = $mech->find_all_inputs( { type_regex => qr/^(text|textarea)$/, name => 'customer', } );
|
|---|