Joel Pearson wrote in post #1101638:
> You might be able to narrow it down via a specific parent or child
> element, and work from there.
>
> When all else fails, use index.

Thanks a lot Joel.

I was able to search for the form using below:
checkboxForm = page.form_with(:action => 'colchange.cgi')

Now when I pp checkboxForm i get a list of all the checkboxes in the 
form.
But the "value: " is shown as null for all checkboxes which are checked 
even.
Shouldnt this be check or uncheck? Then i click a specific checkbox and 
fetch a new page object, but not getting the desired results. If you 
could please help. Below is the snippet of script:
-----
checkboxForm = page.form_with(:action => 'colchange.cgi')

#Setting the state of checkbox
checkboxForm.checkbox_with(:name => 'column_opendate').check

page=pageAgent.submit(checkboxForm,checkboxForm.buttons.first)

#Clicking the CSV link
page = pageAgent.page.link_with(:text => 'CSV').click

#Retrieving the uri from the object and storing as string in the var
uriDownload=page.uri.to_s

#Downloading and saving the CSV file
agent.pluggable_parser.default = Mechanize::Download
agent.get(uriDownload).save('openBugs.csv')

-----

Based on the above code the CSV file should be showing additional column 
"opendate" for which i have checked the 'column_opendate' checkbox.

regards,

Rochit

-- 
Posted via http://www.ruby-forum.com/.