Class: SeleniumDSL::WatirWebdriver::Script

Inherits:
Proxy
  • Object
show all
Defined in:
lib/selenium_dsl/watir_webdriver/script.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(driver) ⇒ Script



9
10
11
12
13
14
15
# File 'lib/selenium_dsl/watir_webdriver/script.rb', line 9

def initialize driver
  super driver, [:open, :select, :type]

  @driver = driver

  @timeout_in_seconds = 60
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class SeleniumDSL::Proxy

Instance Attribute Details

#driverObject (readonly)

Returns the value of attribute driver.



5
6
7
# File 'lib/selenium_dsl/watir_webdriver/script.rb', line 5

def driver
  @driver
end

#timeout_in_secondsObject

Returns the value of attribute timeout_in_seconds.



7
8
9
# File 'lib/selenium_dsl/watir_webdriver/script.rb', line 7

def timeout_in_seconds
  @timeout_in_seconds
end