Class: Selenium::WebDriver::Elements::Browser
- Defined in:
- lib/selenium/webdriver/elements/browser.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Browser
constructor
A new instance of Browser.
Methods inherited from Element
#create_element, #element_present?, #find_element, #find_elements, #method_missing
Constructor Details
#initialize(*args) ⇒ Browser
Returns a new instance of Browser.
9 10 11 12 13 14 15 16 |
# File 'lib/selenium/webdriver/elements/browser.rb', line 9 def initialize *args if args.length == 1 and args[1].is_a? Selenium::WebDriver::Driver @element = args[1] else @element = Selenium::WebDriver.for *args end @browser = @element end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Selenium::WebDriver::Elements::Element