pub enum BrowserAction {
Show 23 variants
Navigate {
url: String,
},
GoBack,
GoForward,
Reload,
Click {
selector: Option<String>,
x: Option<f64>,
y: Option<f64>,
},
Type {
text: String,
selector: Option<String>,
},
Fill {
selector: String,
value: String,
},
Submit {
selector: Option<String>,
},
PressKey {
key: String,
},
GetTitle,
GetUrl,
GetText,
GetContent {
selector: Option<String>,
},
GetLinks,
GetAttributes {
selector: String,
},
Exists {
selector: String,
},
Screenshot {
path: Option<String>,
},
Evaluate {
expression: String,
},
Wait {
ms: u64,
},
WaitForSelector {
selector: String,
timeout_ms: u64,
},
Scroll {
x: f64,
y: f64,
},
SetViewport {
width: i32,
height: i32,
mobile: bool,
},
GetMetrics,
}Variants§
GoBack
GoForward
Reload
Click
Type
Fill
Submit
PressKey
GetTitle
GetUrl
GetText
GetContent
GetLinks
GetAttributes
Exists
Screenshot
Evaluate
Wait
WaitForSelector
Scroll
SetViewport
GetMetrics
Trait Implementations§
Source§impl Clone for BrowserAction
impl Clone for BrowserAction
Source§fn clone(&self) -> BrowserAction
fn clone(&self) -> BrowserAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BrowserAction
impl Debug for BrowserAction
Source§impl<'de> Deserialize<'de> for BrowserAction
impl<'de> Deserialize<'de> for BrowserAction
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BrowserAction
impl RefUnwindSafe for BrowserAction
impl Send for BrowserAction
impl Sync for BrowserAction
impl Unpin for BrowserAction
impl UnsafeUnpin for BrowserAction
impl UnwindSafe for BrowserAction
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