pub enum WebAutomation {
Show 16 variants
Evaluate(String),
Click(String),
ClickAll(String),
ClickAllClickable(),
Wait(u64),
WaitForNavigation,
WaitForDom {
selector: Option<String>,
timeout: u32,
},
WaitFor(String),
WaitForWithTimeout {
selector: String,
timeout: u64,
},
WaitForAndClick(String),
ScrollX(i32),
ScrollY(i32),
Fill {
selector: String,
value: String,
},
InfiniteScroll(u32),
Screenshot {
full_page: bool,
omit_background: bool,
output: String,
},
ValidateChain,
}Expand description
Represents various web automation actions.
Variants§
Evaluate(String)
Runs custom JavaScript code.
Click(String)
Clicks on an element.
ClickAll(String)
Clicks on all elements.
ClickAllClickable()
Clicks on all elements.
Wait(u64)
Waits for a fixed duration in milliseconds.
Waits for the next navigation event.
WaitForDom
Wait for dom updates to stop.
Fields
WaitFor(String)
Waits for an element to appear.
WaitForWithTimeout
Waits for an element to appear with a timeout.
Fields
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.
Fields
ValidateChain
Only continue to the next automation if the prior step was valid. Use this intermediate after a step to break out of the chain.
Trait Implementations§
Source§impl Clone for WebAutomation
impl Clone for WebAutomation
Source§fn clone(&self) -> WebAutomation
fn clone(&self) -> WebAutomation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WebAutomation
impl Debug for WebAutomation
Source§impl<'de> Deserialize<'de> for WebAutomation
impl<'de> Deserialize<'de> for WebAutomation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for WebAutomation
impl PartialEq for WebAutomation
Source§impl Serialize for WebAutomation
impl Serialize 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.