class Playwright::ElementHandle::WaitForSelectorOptions
- Playwright::ElementHandle::WaitForSelectorOptions
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
playwright/elementhandle.crConstructors
- .new(pull : JSON::PullParser)
- .new(state : Playwright::ElementHandle::WaitForSelectorOptions::State | Nil = nil, timeout : Int32 | Nil = nil)
Instance Method Summary
-
#state : State | Nil
Defaults to
'visible'. -
#state=(state : State | Nil)
Defaults to
'visible'. -
#timeout : Int32 | Nil
Maximum time in milliseconds, defaults to 30 seconds, pass
0to disable timeout. -
#timeout=(timeout : Int32 | Nil)
Maximum time in milliseconds, defaults to 30 seconds, pass
0to disable timeout.
Constructor Detail
def self.new(state : Playwright::ElementHandle::WaitForSelectorOptions::State | Nil = nil, timeout : Int32 | Nil = nil)
#
Instance Method Detail
Defaults to 'visible'. Can be either:
'attached'- wait for element to be present in DOM.'detached'- wait for element to not be present in DOM.'visible'- wait for element to have non-empty bounding box and novisibility:hidden. Note that element without any content or withdisplay:nonehas an empty bounding box and is not considered visible.'hidden'- wait for element to be either detached from DOM, or have an empty bounding box orvisibility:hidden. This is opposite to the'visible'option.
Defaults to 'visible'. Can be either:
'attached'- wait for element to be present in DOM.'detached'- wait for element to not be present in DOM.'visible'- wait for element to have non-empty bounding box and novisibility:hidden. Note that element without any content or withdisplay:nonehas an empty bounding box and is not considered visible.'hidden'- wait for element to be either detached from DOM, or have an empty bounding box orvisibility:hidden. This is opposite to the'visible'option.
def timeout : Int32 | Nil
#
Maximum time in milliseconds, defaults to 30 seconds, pass 0 to disable timeout. The default value can be changed by using the browserContext.setDefaultTimeout(timeout) or page.setDefaultTimeout(timeout) methods.
def timeout=(timeout : Int32 | Nil)
#
Maximum time in milliseconds, defaults to 30 seconds, pass 0 to disable timeout. The default value can be changed by using the browserContext.setDefaultTimeout(timeout) or page.setDefaultTimeout(timeout) methods.