pub enum BrowserCommand {
RunScript {
id: String,
code: String,
capture_console: bool,
},
Screenshot {
id: String,
selector: Option<String>,
quality: f32,
hooks: Vec<ScreenshotHook>,
},
Click {
id: String,
selector: String,
},
Navigate {
id: String,
url: String,
},
DiscoverSelectors {
id: String,
},
}Expand description
Commands that can be sent to a browser session.
Variants§
RunScript
Execute JavaScript in the page context.
Screenshot
Take a screenshot of the page or a specific element.
Click
Click an element by CSS selector.
Navigate to a URL.
DiscoverSelectors
Discover interactive selectors on the page.
Implementations§
Trait Implementations§
Source§impl Clone for BrowserCommand
impl Clone for BrowserCommand
Source§fn clone(&self) -> BrowserCommand
fn clone(&self) -> BrowserCommand
Returns a duplicate 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 BrowserCommand
impl Debug for BrowserCommand
Source§impl<'de> Deserialize<'de> for BrowserCommand
impl<'de> Deserialize<'de> for BrowserCommand
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 BrowserCommand
impl RefUnwindSafe for BrowserCommand
impl Send for BrowserCommand
impl Sync for BrowserCommand
impl Unpin for BrowserCommand
impl UnsafeUnpin for BrowserCommand
impl UnwindSafe for BrowserCommand
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