Class: SeleniumDSL::Capybara::Script
- Defined in:
- lib/selenium_dsl/capybara/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
Returns a new instance of Script.
10 11 12 13 14 15 16 |
# File 'lib/selenium_dsl/capybara/script.rb', line 10 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.
6 7 8 |
# File 'lib/selenium_dsl/capybara/script.rb', line 6 def driver @driver end |
#timeout_in_seconds ⇒ Object
Returns the value of attribute timeout_in_seconds.
8 9 10 |
# File 'lib/selenium_dsl/capybara/script.rb', line 8 def timeout_in_seconds @timeout_in_seconds end |