class Playwright::Page::ClickOptions
- Playwright::Page::ClickOptions
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
playwright/page.crConstructors
- .new(pull : JSON::PullParser)
- .new(button : Playwright::Mouse::Button | Nil = nil, click_count : Int32 | Nil = nil, delay : Int32 | Nil = nil, position : Nil | Playwright::Position = nil, modifiers : Set(Playwright::Keyboard::Modifier) | Nil = nil, force : Bool | Nil = nil, no_wait_after : Bool | Nil = nil, timeout : Int32 | Nil = nil)
Instance Method Summary
-
#button : Mouse::Button | Nil
Defaults to
left
. -
#button=(button : Mouse::Button | Nil)
Defaults to
left
. -
#click_count : Int32 | Nil
defaults to 1.
-
#click_count=(click_count : Int32 | Nil)
defaults to 1.
-
#delay : Int32 | Nil
Time to wait between
mousedown
andmouseup
in milliseconds. -
#delay=(delay : Int32 | Nil)
Time to wait between
mousedown
andmouseup
in milliseconds. -
#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.
-
#no_wait_after : Bool | Nil
Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading.
-
#no_wait_after=(no_wait_after : Bool | Nil)
Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading.
-
#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) : ClickOptions
- #with_position(position : Position) : ClickOptions
Constructor Detail
Instance Method Detail
Time to wait between mousedown
and mouseup
in milliseconds. Defaults to 0.
Time to wait between mousedown
and mouseup
in milliseconds. Defaults to 0.
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.
Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to inaccessible pages. Defaults to false
.
Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to inaccessible pages. Defaults to false
.
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.