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

Posted on Sat Feb 3 13:27:53 2007 by abeltje in response to 4228 (See the whole thread of 7)
Re: Not able to select a check box which does not have a name attribute
Hi, does this checkbox have an onclick javascript-handler attached to it? if so, you might want to call the click() method on it: ${$cb}->{id} eq 'checkbox' and ${$cb}->click; else you must set the value explicitly: ${$cb}->{id} eq 'checkbox' and ${$cb}->{value} = 'Yes', ${$cb}->{checked} = 1; HTH, -- Abe.
Direct Responses: 4252 | Write a response