Class: SeleniumDSL::Capybara::Script

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#driverObject (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_secondsObject

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