Module: Selenium::Client::SeleniumHelper
- Defined in:
- rb/lib/selenium/client/selenium_helper.rb
Instance Method Summary (collapse)
-
- (Object) method_missing(method_name, *args)
Delegates to @selenium on method missing.
-
- (Object) open(url)
Overrides default open method to actually delegates to @selenium.
-
- (Object) select(input_locator, option_locator)
Overrides default select method to actually delegates to @selenium.
-
- (Object) type(locator, value)
Overrides default type method to actually delegates to @selenium.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
- (Object) method_missing(method_name, *args)
Delegates to @selenium on method missing
26 27 28 29 30 |
# File 'rb/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
- (Object) open(url)
Overrides default open method to actually delegates to @selenium
11 12 13 |
# File 'rb/lib/selenium/client/selenium_helper.rb', line 11 def open(url) @selenium.open url end |
- (Object) select(input_locator, option_locator)
Overrides default select method to actually delegates to @selenium
21 22 23 |
# File 'rb/lib/selenium/client/selenium_helper.rb', line 21 def select(input_locator, option_locator) @selenium.select input_locator, option_locator end |
- (Object) type(locator, value)
Overrides default type method to actually delegates to @selenium
16 17 18 |
# File 'rb/lib/selenium/client/selenium_helper.rb', line 16 def type(locator, value) @selenium.type locator, value end |