[Mechanize-users] How to select randomly named checkbox

Chris Harris
Thu, 15 Feb 2007 01:56:34 -0000

I am trying to select a checkbox that is randomly named depending on the ID
assigned to it by the webpage.

[9713816764515361h] is the random bit.

    #<WWW::Mechanize::CheckBox:0x7a2b3c0
     @checked=false,

@name="communityContentFields[9713816764515361h].postToArea_checkbox",
     @value="true">

What code should I use to check the box?

Thanks
Chris
-------------- next part --------------
An HTML attachment was scrubbed...