mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
34 lines
1,022 B
Text
34 lines
1,022 B
Text
|
<div id="selectors">
|
||
|
<h2>Built-in Selectors</h2>
|
||
|
<ul>
|
||
|
<% @selectors.each do |name, selector| %>
|
||
|
<li>
|
||
|
<h3>:<%= name %></h3>
|
||
|
<div class="tags">
|
||
|
<p class="inline">Locator:</p>
|
||
|
<% if locator=selector.tag('locator') %>
|
||
|
<p class="inline"><%= locator.text %></p>
|
||
|
<% end %>
|
||
|
<% if selector.has_tag?('filter') %>
|
||
|
<p>Filters:</p>
|
||
|
<ul class="param">
|
||
|
<% selector.tags('filter').each do |filter| %>
|
||
|
<li>
|
||
|
<span class="name"><%= filter.name %></span>
|
||
|
<% if filter.types %>
|
||
|
<span class="type">(<tt><%= filter.types.join(', ') %></tt>)</span>
|
||
|
<% end %>
|
||
|
<% if filter.text %>
|
||
|
—
|
||
|
<div class="inline"><p><%= filter.text %></p></div>
|
||
|
<% end %>
|
||
|
</li>
|
||
|
<% end %>
|
||
|
</ul>
|
||
|
<% end %>
|
||
|
</div
|
||
|
</li>
|
||
|
<% end %>
|
||
|
</ul>
|
||
|
</div>
|