pub struct TapOptions {
pub force: Option<bool>,
pub modifiers: Option<Vec<KeyboardModifier>>,
pub position: Option<Position>,
pub timeout: Option<f64>,
pub trial: Option<bool>,
}Expand description
Tap options
Configuration options for tap actions (touch-screen taps).
Use the builder pattern to construct options:
§Example
ⓘ
use playwright_rs::TapOptions;
// Tap with force (bypass actionability checks)
let options = TapOptions::builder()
.force(true)
.build();
// Trial run (actionability checks only, don't actually tap)
let options = TapOptions::builder()
.trial(true)
.build();See: https://playwright.dev/docs/api/class-locator#locator-tap
Fields§
§force: Option<bool>Whether to bypass actionability checks
modifiers: Option<Vec<KeyboardModifier>>Modifier keys to press during tap
position: Option<Position>Position to tap relative to element top-left corner
timeout: Option<f64>Maximum time in milliseconds
trial: Option<bool>Perform actionability checks without tapping
Implementations§
Source§impl TapOptions
impl TapOptions
Sourcepub fn builder() -> TapOptionsBuilder
pub fn builder() -> TapOptionsBuilder
Create a new builder for TapOptions
Trait Implementations§
Source§impl Clone for TapOptions
impl Clone for TapOptions
Source§fn clone(&self) -> TapOptions
fn clone(&self) -> TapOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TapOptions
impl Debug for TapOptions
Source§impl Default for TapOptions
impl Default for TapOptions
Source§fn default() -> TapOptions
fn default() -> TapOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TapOptions
impl RefUnwindSafe for TapOptions
impl Send for TapOptions
impl Sync for TapOptions
impl Unpin for TapOptions
impl UnsafeUnpin for TapOptions
impl UnwindSafe for TapOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more