pub struct ActionBuilder { /* private fields */ }Expand description
Fluent builder for a sequence of BrowserActions, run with
BrowserAgent::execute_many.
Implementations§
Source§impl ActionBuilder
impl ActionBuilder
Append BrowserAction::Navigate.
Sourcepub fn wait(self, ms: u64) -> Self
pub fn wait(self, ms: u64) -> Self
Append BrowserAction::Wait.
Sourcepub fn click(self, selector: &str) -> Self
pub fn click(self, selector: &str) -> Self
Append BrowserAction::Click targeting a CSS selector.
Sourcepub fn fill(self, selector: &str, value: &str) -> Self
pub fn fill(self, selector: &str, value: &str) -> Self
Append BrowserAction::Fill.
Sourcepub fn press_key(self, key: &str) -> Self
pub fn press_key(self, key: &str) -> Self
Append BrowserAction::PressKey.
Sourcepub fn screenshot(self, path: Option<&str>) -> Self
pub fn screenshot(self, path: Option<&str>) -> Self
Append BrowserAction::Screenshot.
Sourcepub fn evaluate(self, expr: &str) -> Self
pub fn evaluate(self, expr: &str) -> Self
Append BrowserAction::Evaluate.
Sourcepub fn scroll(self, x: f64, y: f64) -> Self
pub fn scroll(self, x: f64, y: f64) -> Self
Append BrowserAction::Scroll.
Sourcepub fn get_title(self) -> Self
pub fn get_title(self) -> Self
Append BrowserAction::GetTitle.
Sourcepub fn build(self) -> Vec<BrowserAction>
pub fn build(self) -> Vec<BrowserAction>
Finish building and return the action sequence.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ActionBuilder
impl Freeze for ActionBuilder
impl RefUnwindSafe for ActionBuilder
impl Send for ActionBuilder
impl Sync for ActionBuilder
impl Unpin for ActionBuilder
impl UnsafeUnpin for ActionBuilder
impl UnwindSafe for ActionBuilder
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