1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/spec/views/form.erb

119 lines
3.5 KiB
Text
Raw Normal View History

2009-11-07 19:13:16 -05:00
<h1>Form</h1>
<form action="/form" method="post">
<p>
<label for="form_first_name">First Name</label>
<input type="text" name="form[first_name]" value="John" id="form_first_name"/>
2009-11-07 19:13:16 -05:00
</p>
<p>
<label for="form_last_name">Last Name</label>
<input type="text" name="form[last_name]" value="Smith" id="form_last_name"/>
2009-11-07 19:13:16 -05:00
</p>
2009-11-10 17:08:26 -05:00
<p>
<label for="form_password">Password</label>
<input type="password" name="form[password]" value="seeekrit" id="form_password"/>
</p>
2009-11-11 15:41:20 -05:00
2009-11-12 11:07:43 -05:00
<p>
<label for="form_image">Image</label>
<input type="file" name="form[image]" id="form_image"/>
</p>
2009-11-11 15:41:20 -05:00
<p>
<input type="hidden" name="form[token]" value="12345" id="form_token"/>
</p>
2009-11-10 17:08:26 -05:00
2009-11-09 17:10:15 -05:00
<p>
<label for="form_locale">Locale</label>
<select name="form[locale]" id="form_locale">
<option value="sv">Swedish</option>
<option selected="selected" value="en">English</option>
<option value="fi">Finish</option>
<option value="no">Norwegian</option>
</select>
</p>
<p>
<label for="form_region">Region</label>
<select name="form[region]" id="form_region">
<option>Sweden</option>
<option selected="selected">Norway</option>
<option>Finland</option>
</select>
</p>
<p>
<label for="form_city">City</label>
<select name="form[city]" id="form_city">
<option>London</option>
<option>Stockholm</option>
<option>Paris</option>
</select>
</p>
<p>
<label for="form_tendency">Tendency</label>
<select name="form[tendency]" id="form_tendency"></select>
</p>
<p>
<label for="form_description">Description</label></br>
<textarea name="form[description]" id="form_description">Descriptive text goes here</textarea>
<p>
<p>
2009-11-11 15:37:48 -05:00
<input type="radio" name="form[gender]" value="male" id="gender_male"/>
2009-11-09 17:10:15 -05:00
<label for="gender_male">Male</label>
2009-11-11 15:37:48 -05:00
<input type="radio" name="form[gender]" value="female" id="gender_female" checked="checked"/>
2009-11-09 17:10:15 -05:00
<label for="gender_female">Female</label>
2009-11-11 15:37:48 -05:00
<input type="radio" name="form[gender]" value="both" id="gender_both"/>
2009-11-09 17:10:15 -05:00
<label for="gender_both">Both</label>
</p>
<p>
2009-11-11 15:55:20 -05:00
<input type="checkbox" value="dog" name="form[pets][]" id="form_pets_dog" checked="checked"/>
<label for="form_pets_dog">Dog</label>
<input type="checkbox" value="cat" name="form[pets][]" id="form_pets_cat"/>
<label for="form_pets_cat">Cat</label>
<input type="checkbox" value="hamster" name="form[pets][]" id="form_pets_hamster" checked="checked"/>
<label for="form_pets_hamster">Hamster</label>
2009-11-09 17:10:15 -05:00
</p>
2009-11-07 19:13:16 -05:00
<p>
2009-11-07 19:29:03 -05:00
<input type="submit" name="form[awesome]" id="awe123" value="awesome"/>
<input type="submit" name="form[crappy]" id="crap321" value="crappy"/>
<input type="image" name="form[okay]" id="okay556" value="okay"/>
<button type="submit" id="click_me_123" value="click_me">Click me!</button>
2009-11-07 19:13:16 -05:00
</p>
</form>
<form action="/form/get?foo=bar" method="get">
<p>
2009-11-17 17:36:27 -05:00
<label for="form_middle_name">Middle Name</label>
<input type="text" name="form[middle_name]" value="Darren" id="form_middle_name"/>
</p>
<p>
<input type="submit" name="form[mediocre]" id="mediocre" value="med"/>
<p>
</form>
2009-11-12 11:07:43 -05:00
<form action="/upload" method="post" enctype="multipart/form-data">
<p>
<label for="form_document">Document</label>
<input type="file" name="form[document]" id="form_document"/>
</p>
<p>
<input type="submit" value="Upload"/>
<p>
</form>
2009-11-12 13:02:00 -05:00
<form action="/redirect" method="post">
<p>
<input type="submit" value="Go FAR"/>
</p>
</form>