1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/.yard/templates_custom/default/class/html/selectors.erb

34 lines
1,022 B
Text
Raw Normal View History

2016-09-08 14:01:22 -04:00
<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>