Module: TerminusSpec::Locators

Included in:
TerminusSpec
Defined in:
lib/terminus_spec/locators.rb

Instance Method Summary collapse

Instance Method Details

#button_web_object(locator) ⇒ Object

Returns a button object.

Parameters:

  • locator (Hash)

    how the button can be found



18
19
20
# File 'lib/terminus_spec/locators.rb', line 18

def button_web_object(locator)
  @platform.get_button_for(locator.clone)
end

Returns a link object.

Parameters:

  • locator (Hash)

    how the link can be found



6
7
8
# File 'lib/terminus_spec/locators.rb', line 6

def link_web_object(locator)
  @platform.get_link_for(locator.clone)
end

#text_field_web_object(locator) ⇒ Object

Returns a text field object.

Parameters:

  • locator (Hash)

    how the link can be found



12
13
14
# File 'lib/terminus_spec/locators.rb', line 12

def text_field_web_object(locator)
  @platform.get_text_field_for(locator.clone)
end