Exception: Watir::Exception::TimeOutException

Inherits:
WatirException show all
Defined in:
lib/watir/exceptions.rb

Overview

This exception is raised if a timeout is exceeded

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(duration, timeout) ⇒ TimeOutException

Returns a new instance of TimeOutException.



35
36
37
# File 'lib/watir/exceptions.rb', line 35

def initialize(duration, timeout)
  @duration, @timeout = duration, timeout
end

Instance Attribute Details

#durationObject (readonly)

Returns the value of attribute duration.



38
39
40
# File 'lib/watir/exceptions.rb', line 38

def duration
  @duration
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



38
39
40
# File 'lib/watir/exceptions.rb', line 38

def timeout
  @timeout
end