Exception: Watir::Exception::TimeOutException

Inherits:
WatirException
  • Object
show all
Defined in:
lib/watir-classic/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.



39
40
41
# File 'lib/watir-classic/exceptions.rb', line 39

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

Instance Attribute Details

#durationObject (readonly)

Returns the value of attribute duration.



42
43
44
# File 'lib/watir-classic/exceptions.rb', line 42

def duration
  @duration
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



42
43
44
# File 'lib/watir-classic/exceptions.rb', line 42

def timeout
  @timeout
end