pub enum Commands {
Show 49 variants
InstallChromium {
update: bool,
},
Profiles {
action: Option<ProfileCommand>,
},
DeleteProfile {
name: String,
},
Navigate {
url: String,
timeout_ms: u64,
},
Click {
target: String,
},
Preflight {
target: String,
action: PreflightAction,
},
ClickAt {
x: f64,
y: f64,
},
ClickExpectPopup {
target: String,
},
DoubleClick {
target: String,
},
Hover {
target: String,
},
Drag {
source: String,
destination: String,
},
Type {
text: String,
target: Option<String>,
},
Key {
key: String,
},
KeyDown {
key: String,
},
KeyUp {
key: String,
},
Shortcut {
shortcut: String,
},
Clear {
target: String,
},
Check {
target: String,
},
Uncheck {
target: String,
},
Select {
target: String,
value: String,
},
Upload {
target: String,
files: Vec<PathBuf>,
},
Screenshot {
output: String,
format: VisualFormat,
quality: Option<u8>,
scale: f64,
full_page: bool,
clip: Option<VisualClip>,
target: Option<String>,
},
Text,
Dom,
Observe {
deep_dom: bool,
screenshot: bool,
form_values: bool,
},
Scroll {
dx: f64,
dy: f64,
},
Wait {
condition: String,
timeout_ms: u64,
},
Diagnostics {
duration_ms: u64,
},
AcceptDialog,
DismissDialog,
DismissConsent,
Download {
destination: PathBuf,
timeout_ms: u64,
},
Targets,
NewTarget {
url: String,
},
SelectTarget {
id: String,
},
CloseTarget {
id: String,
},
Frames,
SelectFrame {
id: String,
},
Evaluate {
expression: String,
},
Cookies,
Pdf {
output: String,
background: bool,
},
FillForm {
fields: String,
},
Batch {
input: Option<PathBuf>,
atomic: bool,
},
ReconcileRefs {
from_revision: u64,
hints: Vec<String>,
scope: Option<String>,
refs: Vec<String>,
},
ObserveDelta,
Checkpoint {
action: CheckpointCommand,
},
ClipboardRead,
ClipboardWrite {
text: String,
},
Tui,
}Variants§
InstallChromium
Download and install a managed Chrome for Testing build.
Profiles
List or manage saved profiles.
Fields
action: Option<ProfileCommand>DeleteProfile
Delete a saved profile.
Navigate to a URL.
Click
Click an element by an explicit ref/name/role/text/CSS/ordinal locator.
Preflight
Resolve a target and report clickability without performing an action.
ClickAt
Click exact viewport coordinates for canvas/map surfaces.
ClickExpectPopup
Click an element expected to open exactly one causally verified popup.
DoubleClick
Double-click an element by an explicit ref/name/role/text/CSS/ordinal locator.
Hover
Move the pointer over an element without clicking.
Drag
Drag one element to another uniquely resolved element.
Type
Type text into the focused element, optionally clicking a target first.
Key
Dispatch one complete key press.
KeyDown
Dispatch only a key-down event.
KeyUp
Dispatch only a key-up event.
Shortcut
Dispatch a modifier shortcut such as Control+A.
Clear
Clear an editable element.
Check
Ensure a checkbox or radio is checked.
Uncheck
Ensure a checkbox is unchecked.
Select
Select one exact option value.
Upload
Set a bounded list of regular files on one file input.
Screenshot
Capture a PNG screenshot.
Text
Print the visible page text.
Dom
Print the full DOM tree. This is an explicit deep-inspection request.
Observe
Print compact accessibility and text context.
Fields
Scroll
Scroll the page by CSS pixels.
Wait
Wait for one explicit browser condition until a bounded deadline.
Diagnostics
Collect bounded, redacted console and network evidence.
AcceptDialog
Accept the currently open JavaScript dialog.
DismissDialog
Dismiss the currently open JavaScript dialog.
DismissConsent
Dismiss a recognized OneTrust/Cookiebot consent wall.
Download
Wait for one download into an authorized existing directory.
Targets
List discoverable page targets without changing the active target.
NewTarget
Create a page target without selecting it.
SelectTarget
Explicitly select the page target used by subsequent commands.
CloseTarget
Close one page target.
Frames
List frames in the active page target.
SelectFrame
Explicitly select the frame used by subsequent commands.
Evaluate
Evaluate JavaScript in the current page.
Cookies
List all browser cookies for the current page.
Save the current page as a PDF.
FillForm
Fill multiple form fields from a JSON value.
Batch
Execute a bounded typed batch from a JSON array or stdin.
Fields
ReconcileRefs
Reconcile revisioned references against the current observation.
Fields
ObserveDelta
Report a bounded delta from the last compact observation.
Checkpoint
Export or import a bounded workflow checkpoint.
Fields
action: CheckpointCommandClipboardRead
Read text from the system clipboard.
ClipboardWrite
Write text to the system clipboard.
Tui
Launch the interactive TUI.
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnsafeUnpin for Commands
impl UnwindSafe for Commands
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more