Class: SeleniumDSL::WatirWebdriver::Script
- Defined in:
- lib/selenium_dsl/watir_webdriver/script.rb
Instance Attribute Summary collapse
-
#driver ⇒ Object
readonly
Returns the value of attribute driver.
-
#timeout_in_seconds ⇒ Object
Returns the value of attribute timeout_in_seconds.
Instance Method Summary collapse
-
#initialize(driver) ⇒ Script
constructor
A new instance of Script.
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
#driver ⇒ Object (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_seconds ⇒ Object
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 |