wallaby v0.14.0 Wallaby.XPath

Summary

Functions

Match any clickable buttons

Match any checkboxes

Matches any file field by name, id, or label

Match any input or textarea that can be filled with text. Excludes any inputs with types of submit, image, radio, checkbox, hidden, or file

XPath for links this xpath is gracious ripped from capybara via https://github.com/jnicklas/xpath/blob/master/lib/xpath/html.rb

Match any option by visible text

Match any radio buttons

Match any select by name, id, or label

Types

Functions

button(query)

Match any clickable buttons

checkbox(query)

Match any checkboxes

file_field(query)

Matches any file field by name, id, or label

fillable_field(query)

Match any input or textarea that can be filled with text. Excludes any inputs with types of submit, image, radio, checkbox, hidden, or file.

link(lnk)

XPath for links this xpath is gracious ripped from capybara via https://github.com/jnicklas/xpath/blob/master/lib/xpath/html.rb

option(query)

Match any option by visible text

radio_button(query)

Match any radio buttons

select(query)

Match any select by name, id, or label.