Class: Playwright::TimeoutSettings
- Inherits:
-
Object
- Object
- Playwright::TimeoutSettings
- Defined in:
- lib/playwright/timeout_settings.rb
Constant Summary collapse
- DEFAULT_TIMEOUT =
30000
Instance Attribute Summary collapse
-
#default_navigation_timeout ⇒ Object
writeonly
Sets the attribute default_navigation_timeout.
-
#default_timeout ⇒ Object
writeonly
Sets the attribute default_timeout.
Instance Method Summary collapse
-
#initialize(parent = nil) ⇒ TimeoutSettings
constructor
A new instance of TimeoutSettings.
- #navigation_timeout(timeout_override = nil) ⇒ Object
- #timeout(timeout_override = nil) ⇒ Object
Constructor Details
#initialize(parent = nil) ⇒ TimeoutSettings
Returns a new instance of TimeoutSettings.
5 6 7 |
# File 'lib/playwright/timeout_settings.rb', line 5 def initialize(parent = nil) @parent = parent end |
Instance Attribute Details
#default_navigation_timeout=(value) ⇒ Object (writeonly)
Sets the attribute default_navigation_timeout
9 10 11 |
# File 'lib/playwright/timeout_settings.rb', line 9 def (value) @default_navigation_timeout = value end |
#default_timeout=(value) ⇒ Object (writeonly)
Sets the attribute default_timeout
9 10 11 |
# File 'lib/playwright/timeout_settings.rb', line 9 def default_timeout=(value) @default_timeout = value end |
Instance Method Details
#navigation_timeout(timeout_override = nil) ⇒ Object
11 12 13 |
# File 'lib/playwright/timeout_settings.rb', line 11 def (timeout_override = nil) timeout_override || @default_navigation_timeout || @default_timeout || @parent&. || DEFAULT_TIMEOUT end |
#timeout(timeout_override = nil) ⇒ Object
15 16 17 |
# File 'lib/playwright/timeout_settings.rb', line 15 def timeout(timeout_override = nil) timeout_override || @default_timeout || @parent&.timeout || DEFAULT_TIMEOUT end |