Win32-IE-Mechanize - Re: Not able to select a check box which does not have a name attribute

Posted on Fri Feb 2 15:05:06 2007 by abeltje in response to 4223 (See the whole thread of 7)
Re: Not able to select a check box which does not have a name attribute
Hi, One can try to find the checkbox from the form (UNTESTED): my $form = $ie->form_number( 1 ); my @cbs = $form->find_input( undef, 'checkbox' ); for my $cb ( @cbs ) { ${$cb}->{id} or next; ${$cb}->{id} eq 'checkbox' and ${$cb}->{checked} = 1; } HTH, -- Abe.
Direct Responses: 4228 | Write a response