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 ⇒ Object
- #timeout ⇒ 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 ⇒ Object
11 12 13 |
# File 'lib/playwright/timeout_settings.rb', line 11 def @default_navigation_timeout || @default_timeout || @parent&. || DEFAULT_TIMEOUT end |
#timeout ⇒ Object
15 16 17 |
# File 'lib/playwright/timeout_settings.rb', line 15 def timeout @default_timeout || @parent&.timeout || DEFAULT_TIMEOUT end |