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

131 lines
2.4 KiB
Text
Raw Normal View History

2017-01-26 19:10:51 -05:00
2009-11-24 15:45:52 -05:00
<form action="/form" method="post">
<table id="agent_table">
<caption>Agent</caption>
<tr onclick="this.querySelector('td label').innerHTML = 'Clicked'">
2009-11-24 15:45:52 -05:00
<td>
<label for="form_agent_name">Name</label>
</td>
<td>
<input type="text" name="form[agent_name]" value="James" id="form_agent_name"/>
</td>
</tr>
2009-11-24 15:45:52 -05:00
<tr>
<td colspan="2">
<input type="submit" value="Create"/>
</td>
</tr>
</table>
</form>
<form action="/form" method="post">
<table id="girl_table">
<caption>Girl</caption>
2009-11-24 15:45:52 -05:00
<tr>
<td>
<label for="form_girl_name">Name</label>
</td>
<td>
<input type="text" name="form[girl_name]" value="Vesper" id="form_girl_name"/>
</td>
</tr>
2009-11-24 15:45:52 -05:00
<tr>
<td colspan="2">
<input type="submit" value="Create"/>
</td>
</tr>
</table>
</form>
<form action="/form" method="post">
<table id="villain_table">
<caption>Villain</caption>
2009-11-24 15:45:52 -05:00
<tr>
<td>
<label for="form_villain_name">Name</label>
</td>
<td>
<input type="text" name="form[villain_name]" value="Ernst" id="form_villain_name"/>
</td>
</tr>
2009-11-24 15:45:52 -05:00
<tr>
<td colspan="2">
<input type="submit" value="Create"/>
</td>
</tr>
</table>
2010-02-20 16:41:53 -05:00
</form>
2019-03-14 04:29:50 -04:00
<table>
<caption>Horizontal Headers</caption>
2019-03-14 04:29:50 -04:00
<thead>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>City</th>
2019-03-14 04:29:50 -04:00
</tr>
</thead>
<tbody>
<tr>
<td>Thomas</td>
<td>Walpole</td>
<td>Oceanside</td>
</tr>
<tr>
<td>Danilo</td>
<td>Wilkinson</td>
<td>Johnsonville</td>
</tr>
<tr>
<td>Vern</td>
<td>Konopelski</td>
<td>Everette</td>
</tr>
<tr>
<td>Ratke</td>
<td>Lawrence</td>
<td>East Sorayashire</td>
</tr>
<tr>
<td>Palmer</td>
<td>Sawayn</td>
<td>West Trinidad</td>
2019-03-14 04:29:50 -04:00
</tr>
</tbody>
</table>
<table>
<caption>Vertical Headers</caption>
2019-03-14 04:29:50 -04:00
<tr>
<th>First Name</th>
<td>Thomas</td>
<td>Danilo</td>
<td>Vern</td>
<td>Ratke</td>
<td>Palmer</td>
2019-03-14 04:29:50 -04:00
</tr>
<tr>
<th>Last Name</th>
<td>Walpole</td>
<td>Wilkinson</td>
<td>Konopelski</td>
<td>Lawrence</td>
<td>Sawayn</td>
</tr>
<tr>
<th>City</th>
<td>Oceanside</td>
<td>Johnsonville</td>
<td>Everette</td>
<td>East Sorayashire</td>
<td>West Trinidad</td>
2019-03-14 04:29:50 -04:00
</tr>
</table>