It appears that both of these give me access to the first FORM element in a document:
page.form
page.forms.first
How can I search for a particular checkbox like
page.form.checkbox_with(:name=>"yep")
if I don’t know which FORM it is inside?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do you want all the forms with that checkbox, or only the first one?
For the first one, do
For all, do