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



41
42
43
44
45
# File 'lib/selenium/client/selenium_helper.rb', line 41

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



26
27
28
# File 'lib/selenium/client/selenium_helper.rb', line 26

def open(url)
  @selenium.open url
end

#select(input_locator, option_locator) ⇒ Object

Overrides default select method to actually delegates to @selenium



36
37
38
# File 'lib/selenium/client/selenium_helper.rb', line 36

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



31
32
33
# File 'lib/selenium/client/selenium_helper.rb', line 31

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