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

Passes all calls to missing methods to @selenium



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

def method_missing(method_name, *args)
  if args.empty?
      @selenium.send(method_name)
  else
      @selenium.send(method_name, *args)
  end
end

Instance Method Details

#open(addr) ⇒ Object

Overrides standard “open” method with @selenium.open



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

def open(addr)
  @selenium.open(addr)
end

#select(inputLocator, optionLocator) ⇒ Object

Overrides standard “select” method with @selenium.select



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

def select(inputLocator, optionLocator)
  @selenium.select(inputLocator, optionLocator)
end

#type(inputLocator, value) ⇒ Object

Overrides standard “type” method with @selenium.type



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

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