class

Playwright::Frame::HoverOptions

Inherits JSON::Serializable / Reference / Object

Constructors

new(position : Nil | Playwright::Position = nil, modifiers : Set(Playwright::Keyboard::Modifier) | Nil = nil, force : Bool | Nil = nil, timeout : Int32 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

force

Whether to bypass the actionability checks. Defaults to false.

Source
force=(force : Bool | Nil)

Whether to bypass the actionability checks. Defaults to false.

Source
modifiers

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.

Source
modifiers=(modifiers : Set(Keyboard::Modifier) | Nil)

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.

Source
position

A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the element.

Source
position=(position : Position | Nil)

A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the element.

Source
timeout

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.

Source
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.

Source
with_position(x : Int32, y : Int32) : HoverOptions
Source
with_position(position : Position) : HoverOptions
Source