Module: WatirRobot::Button

Included in:
KeywordLibrary
Defined in:
lib/watir_robot/keywords/button.rb

Overview

Functionality related to HTML buttons (whether <input> type submit or actual <button> tags)

Instance Method Summary (collapse)

Instance Method Details

- (Object) click_button(loc)

Click a button

Parameters:

  • loc (String)

    attribute/value pairs that match an HTML element



15
16
17
# File 'lib/watir_robot/keywords/button.rb', line 15

def click_button(loc)
  @browser.button(parse_location(loc)).click
end