pub enum BrowserCommand {
Show 37 variants
Health,
Start(StartRequest),
Stop,
Snapshot,
Goto(NavigationRequest),
Back,
Reload,
Wait(WaitRequest),
Click(SelectorRequest),
Hover(SelectorRequest),
Focus(SelectorRequest),
Blur(SelectorRequest),
Scroll(ScrollRequest),
Upload(UploadRequest),
Fill(FillRequest),
Type(TypeRequest),
Press(KeyPressRequest),
Text(ScopeRequest),
Html(ScopeRequest),
Eval(EvalRequest),
ClickText(ClickTextRequest),
FillNative(FillRequest),
Toggle(ToggleRequest),
Screenshot(ScreenshotRequest),
MouseClick(PointerClick),
KeyboardType(KeyboardTypeRequest),
KeyboardPress(KeyboardPressRequest),
Tabs,
TabsSelect(TabSelectRequest),
TabsNew(NewTabRequest),
TabsClose(CloseTabRequest),
NetworkLog(NetworkLogRequest),
Fetch(FetchRequest),
Axios(AxiosRequest),
Xhr(XhrRequest),
Replay(ReplayRequest),
Diagnose(DiagnoseRequest),
}Expand description
Operation that can be executed against a browser session.
Variants carry the request payload needed by the native TetherScript backend and by callers that route browserctl actions through the shared browser service.
Variants§
Health
Report session health.
Start(StartRequest)
Start a browser session.
Stop
Stop the active browser session.
Snapshot
Return a structured page snapshot.
Goto(NavigationRequest)
Navigate the current tab.
Back
Move back in the current tab history.
Reload
Reload the current tab.
Wait(WaitRequest)
Wait for a selector or timeout.
Click(SelectorRequest)
Click an element by selector.
Hover(SelectorRequest)
Move the pointer over an element by selector.
Focus(SelectorRequest)
Focus an element by selector.
Blur(SelectorRequest)
Blur an element by selector.
Scroll(ScrollRequest)
Scroll the current page or selected element.
Upload(UploadRequest)
Upload files through an input element.
Fill(FillRequest)
Fill an input-like element.
Type(TypeRequest)
Type text into the active page.
Press(KeyPressRequest)
Press a keyboard key.
Text(ScopeRequest)
Read text content.
Html(ScopeRequest)
Read HTML content.
Eval(EvalRequest)
Evaluate JavaScript in the current page.
ClickText(ClickTextRequest)
Click by visible text.
FillNative(FillRequest)
Fill an input through the native path.
Toggle(ToggleRequest)
Toggle a checkbox-like control.
Screenshot(ScreenshotRequest)
Capture a screenshot.
MouseClick(PointerClick)
Click at page coordinates.
KeyboardType(KeyboardTypeRequest)
Type raw keyboard text.
KeyboardPress(KeyboardPressRequest)
Press a named keyboard key.
Tabs
List open tabs.
TabsSelect(TabSelectRequest)
Select a tab by index.
TabsNew(NewTabRequest)
Open a new tab.
TabsClose(CloseTabRequest)
Close a tab.
NetworkLog(NetworkLogRequest)
Return recorded network events.
Fetch(FetchRequest)
Issue a fetch-style HTTP request.
Axios(AxiosRequest)
Issue an axios-style HTTP request.
Xhr(XhrRequest)
Issue an XHR-style HTTP request.
Replay(ReplayRequest)
Replay a captured HTTP request.
Diagnose(DiagnoseRequest)
Return backend diagnostics.
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
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request