Method: Webdrone::XPath#link_or_button

Defined in:
lib/webdrone/xpath.rb

Match anything returned by either #link or #button.

Parameters:

  • locator (String)

    Text, id, title, or image alt attribute of the link or button


38
39
40
# File 'lib/webdrone/xpath.rb', line 38

def link_or_button(locator)
  link(locator) + button(locator)
end