Module: WatirRobot::Link

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

Overview

Functionality related to links in an HTML document

Instance Method Summary collapse

Instance Method Details

Click a link

Parameters:

  • loc (String)

    attribute/value pairs that match an HTML element



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

def click_link(loc)
  @browser.link(parse_location(loc)).click
end