class Playwright::Frame::HoverOptions
- Playwright::Frame::HoverOptions
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
playwright/frame.crConstructors
- .new(pull : JSON::PullParser)
- .new(position : Nil | Playwright::Position = nil, modifiers : Set(Playwright::Keyboard::Modifier) | Nil = nil, force : Bool | Nil = nil, timeout : Int32 | Nil = nil)
Instance Method Summary
-
#force : Bool | Nil
Whether to bypass the actionability checks.
-
#force=(force : Bool | Nil)
Whether to bypass the actionability checks.
-
#modifiers : Set(Keyboard::Modifier) | Nil
Modifier keys to press.
-
#modifiers=(modifiers : Set(Keyboard::Modifier) | Nil)
Modifier keys to press.
-
#position : Position | Nil
A point to use relative to the top-left corner of element padding box.
-
#position=(position : Position | Nil)
A point to use relative to the top-left corner of element padding box.
-
#timeout : Int32 | Nil
Maximum time in milliseconds, defaults to 30 seconds, pass
0
to disable timeout. -
#timeout=(timeout : Int32 | Nil)
Maximum time in milliseconds, defaults to 30 seconds, pass
0
to disable timeout. - #with_position(x : Int32, y : Int32) : HoverOptions
- #with_position(position : Position) : HoverOptions
Constructor Detail
Instance Method Detail
Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current modifiers back. If not specified, currently pressed modifiers are used.
Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current modifiers back. If not specified, currently pressed modifiers are used.
A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the element.
A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the element.
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.
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.