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
2016-09-10 12:46:39 -07:00

38 lines
1.1 KiB
Text

<div id="selectors">
<h2>Built-in Selectors</h2>
<ul>
<% @selectors.each do |name, selector| %>
<li>
<h3>:<%= name %></h3>
<div class="docstring">
<div class="discussion">
<p><%= h(selector.docstring) %></p>
</div>
</div>
<div class="tags">
<p class="inline">Locator:</p>
<% if locator=selector.tag('locator') %>
<p class="inline"><%= h 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><%= h(filter.types.join(', ')) %></tt>)</span>
<% end %>
<% if filter.text %>
<div class="inline"><p><%= h filter.text %></p></div>
<% end %>
</li>
<% end %>
</ul>
<% end %>
</div
</li>
<% end %>
</ul>
</div>