pub struct ClickBuilder { /* private fields */ }Implementations§
Source§impl ClickBuilder
impl ClickBuilder
pub async fn click(self) -> Result<(), Arc<Error>>
Defaults to left.
Sourcepub fn delay(self, x: f64) -> Self
pub fn delay(self, x: f64) -> Self
Time to wait between mousedown and mouseup in milliseconds. Defaults to 0.
Sourcepub fn force(self, x: bool) -> Self
pub fn force(self, x: bool) -> Self
Whether to bypass the actionability checks. Defaults to false.
Sourcepub fn modifiers(self, x: Vec<KeyboardModifier>) -> Self
pub fn modifiers(self, x: Vec<KeyboardModifier>) -> Self
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.
Sourcepub fn no_wait_after(self, x: bool) -> Self
pub fn no_wait_after(self, x: bool) -> Self
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.
Sourcepub fn position(self, x: Position) -> Self
pub fn position(self, x: Position) -> Self
A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the element.
pub fn timeout(self, x: f64) -> Self
Sourcepub fn trial(self, x: bool) -> Self
pub fn trial(self, x: bool) -> Self
When set, this method only performs the actionability checks and skips the action. Defaults to
false. Useful to wait until the element is ready for the action without performing it.