pub struct ClickOptions {
pub button: Option<MouseButton>,
pub click_count: Option<u32>,
pub delay: Option<u64>,
pub force: Option<bool>,
pub modifiers: Vec<Modifier>,
pub no_wait_after: Option<bool>,
pub position: Option<Point>,
pub steps: Option<u32>,
pub timeout: Option<u64>,
pub trial: Option<bool>,
}Expand description
Full click option bag shared by Page/Locator/Frame click methods. All three expose the same 10-field surface.
Every option is Option<T>: callers omit fields and the backend
applies the documented defaults (button: Left, click_count: 1,
delay: 0, steps: 1, etc.).
Fields§
Mouse button. Default: MouseButton::Left.
click_count: Option<u32>Number of consecutive clicks (UIEvent.detail). Default: 1.
delay: Option<u64>Wait in ms between mousedown and mouseup. Default: 0.
force: Option<bool>Bypass actionability (visibility/attached/enabled/stable) checks.
Default: false.
modifiers: Vec<Modifier>Modifier keys held during the click. Pressed before the mouse
events and released after, regardless of trial.
no_wait_after: Option<bool>Deprecated — accepted for signature parity; no effect in ferridriver (we don’t implicitly wait for navigation after click).
position: Option<Point>Click position relative to the element’s padding-box top-left.
None → element’s visible center.
steps: Option<u32>Interpolated mousemove events between the current cursor and
the click point. Default: 1 (single move at dest).
timeout: Option<u64>Maximum time in ms for the operation (actionability + click).
0 means “no timeout”. None means “use page/context default”.
trial: Option<bool>Run actionability checks only; skip the mouse events. Modifiers are still pressed/released around the no-op.
Implementations§
Source§impl ClickOptions
impl ClickOptions
Self::button with the Left default applied.
Sourcepub fn resolved_click_count(&self) -> u32
pub fn resolved_click_count(&self) -> u32
Self::click_count with the 1 default applied.
Sourcepub fn resolved_delay_ms(&self) -> u64
pub fn resolved_delay_ms(&self) -> u64
Self::delay with the 0ms default applied.
Sourcepub fn resolved_steps(&self) -> u32
pub fn resolved_steps(&self) -> u32
Self::steps with the 1 default applied.
Trait Implementations§
Source§impl Clone for ClickOptions
impl Clone for ClickOptions
Source§fn clone(&self) -> ClickOptions
fn clone(&self) -> ClickOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more