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


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

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


11
12
13
# File 'lib/selenium/client/selenium_helper.rb', line 11

def open(url)
  @selenium.open url
end

#select(input_locator, option_locator) ⇒ Object

Overrides default select method to actually delegates to @selenium


21
22
23
# File 'lib/selenium/client/selenium_helper.rb', line 21

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


16
17
18
# File 'lib/selenium/client/selenium_helper.rb', line 16

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