Enum spider::features::chrome_common::WebAutomation
source · pub enum WebAutomation {
Evaluate(String),
Click(String),
Wait(u64),
WaitForNavigation,
WaitFor(String),
WaitForAndClick(String),
ScrollX(i32),
ScrollY(i32),
Fill {
selector: String,
value: String,
},
InfiniteScroll(u32),
Screenshot {
full_page: bool,
omit_background: bool,
output: String,
},
}
Expand description
Represents various web automation actions.
Variants§
Evaluate(String)
Runs custom JavaScript code.
Click(String)
Clicks on an element.
Wait(u64)
Waits for a fixed duration in milliseconds.
Waits for the next navigation event.
WaitFor(String)
Waits for an element to appear.
WaitForAndClick(String)
Waits for an element to appear and then clicks on it.
ScrollX(i32)
Scrolls the screen in the horizontal axis by a specified amount in pixels.
ScrollY(i32)
Scrolls the screen in the vertical axis by a specified amount in pixels.
Fill
Fills an input element with a specified value.
Fields
InfiniteScroll(u32)
Scrolls the page until the end.
Screenshot
Perform a screenshot on the page - fullscreen and omit background for params.
Trait Implementations§
source§impl Clone for WebAutomation
impl Clone for WebAutomation
source§fn clone(&self) -> WebAutomation
fn clone(&self) -> WebAutomation
Returns a copy 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 WebAutomation
impl Debug for WebAutomation
source§impl PartialEq for WebAutomation
impl PartialEq for WebAutomation
impl Eq for WebAutomation
impl StructuralPartialEq for WebAutomation
Auto Trait Implementations§
impl Freeze for WebAutomation
impl RefUnwindSafe for WebAutomation
impl Send for WebAutomation
impl Sync for WebAutomation
impl Unpin for WebAutomation
impl UnwindSafe for WebAutomation
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.