Module: Selenium::Client::SeleniumHelper

Defined in:
lib/selenium/client/selenium_helper.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *args) ⇒ Object

Delegates to @selenium on method missing



39
40
41
42
43
# File 'lib/selenium/client/selenium_helper.rb', line 39

def method_missing(method_name, *args)
  return super unless @selenium.respond_to?(method_name)

  @selenium.send(method_name, *args)
end

Instance Method Details

#open(url) ⇒ Object

Overrides default open method to actually delegates to @selenium



24
25
26
# File 'lib/selenium/client/selenium_helper.rb', line 24

def open(url)
  @selenium.open url
end

#select(input_locator, option_locator) ⇒ Object

Overrides default select method to actually delegates to @selenium



34
35
36
# File 'lib/selenium/client/selenium_helper.rb', line 34

def select(input_locator, option_locator)
  @selenium.select input_locator, option_locator
end

#type(locator, value) ⇒ Object

Overrides default type method to actually delegates to @selenium



29
30
31
# File 'lib/selenium/client/selenium_helper.rb', line 29

def type(locator, value)
  @selenium.type locator, value
end