Skip to main content

DesktopCommand

Enum DesktopCommand 

Source
pub enum DesktopCommand {
Show 19 variants Connect(ConnectOptions), LaunchApp { desktop_session: DesktopSessionHandle, options: LaunchOptions, }, CloseApp { desktop_session: DesktopSessionHandle, app_session: DesktopAppSessionHandle, }, NavigateApp { desktop_session: DesktopSessionHandle, app_session: DesktopAppSessionHandle, url: String, timeout_ms: Option<u32>, }, Capture { desktop_session: DesktopSessionHandle, app_session: DesktopAppSessionHandle, kind: String, selector: String, attribute_name: String, timeout_ms: Option<u32>, }, ClickElement { desktop_session: DesktopSessionHandle, app_session: DesktopAppSessionHandle, selector: String, timeout_ms: Option<u32>, }, CountElements { desktop_session: DesktopSessionHandle, app_session: DesktopAppSessionHandle, selector: String, timeout_ms: Option<u32>, }, FocusElement { desktop_session: DesktopSessionHandle, app_session: DesktopAppSessionHandle, selector: String, timeout_ms: Option<u32>, }, FillElement { desktop_session: DesktopSessionHandle, app_session: DesktopAppSessionHandle, selector: String, value: String, timeout_ms: Option<u32>, }, PressKey { desktop_session: DesktopSessionHandle, app_session: DesktopAppSessionHandle, selector: String, key: String, text: Option<String>, timeout_ms: Option<u32>, }, ScrollElement { desktop_session: DesktopSessionHandle, app_session: DesktopAppSessionHandle, selector: String, direction: String, timeout_ms: Option<u32>, }, PointerInput { desktop_session: DesktopSessionHandle, app_session: DesktopAppSessionHandle, action: String, x: f64, y: f64, to_x: Option<f64>, to_y: Option<f64>, delta_x: Option<f64>, delta_y: Option<f64>, duration_ms: Option<u32>, }, KeyboardInput { desktop_session: DesktopSessionHandle, app_session: DesktopAppSessionHandle, key: Option<String>, text: Option<String>, }, GetText { desktop_session: DesktopSessionHandle, app_session: DesktopAppSessionHandle, selector: String, timeout_ms: Option<u32>, }, GetInnerText { desktop_session: DesktopSessionHandle, app_session: DesktopAppSessionHandle, selector: String, timeout_ms: Option<u32>, }, WaitForSelector { desktop_session: DesktopSessionHandle, app_session: DesktopAppSessionHandle, selector: String, visible: bool, timeout_ms: Option<u32>, }, Screenshot { desktop_session: DesktopSessionHandle, app_session: DesktopAppSessionHandle, timeout_ms: Option<u32>, full_page: bool, }, AccessibilitySnapshot { desktop_session: DesktopSessionHandle, app_session: DesktopAppSessionHandle, format: String, mode: String, }, InspectorSnapshot { desktop_session: DesktopSessionHandle, app_session: DesktopAppSessionHandle, },
}

Variants§

§

Connect(ConnectOptions)

§

LaunchApp

Fields

§desktop_session: DesktopSessionHandle
§

CloseApp

Fields

§desktop_session: DesktopSessionHandle
§

NavigateApp

Fields

§desktop_session: DesktopSessionHandle
§timeout_ms: Option<u32>
§

Capture

Fields

§desktop_session: DesktopSessionHandle
§kind: String
§selector: String
§attribute_name: String
§timeout_ms: Option<u32>
§

ClickElement

Fields

§desktop_session: DesktopSessionHandle
§selector: String
§timeout_ms: Option<u32>
§

CountElements

Fields

§desktop_session: DesktopSessionHandle
§selector: String
§timeout_ms: Option<u32>
§

FocusElement

Fields

§desktop_session: DesktopSessionHandle
§selector: String
§timeout_ms: Option<u32>
§

FillElement

Fields

§desktop_session: DesktopSessionHandle
§selector: String
§value: String
§timeout_ms: Option<u32>
§

PressKey

Fields

§desktop_session: DesktopSessionHandle
§selector: String
§timeout_ms: Option<u32>
§

ScrollElement

Fields

§desktop_session: DesktopSessionHandle
§selector: String
§direction: String
§timeout_ms: Option<u32>
§

PointerInput

Fields

§desktop_session: DesktopSessionHandle
§action: String
§to_x: Option<f64>
§to_y: Option<f64>
§delta_x: Option<f64>
§delta_y: Option<f64>
§duration_ms: Option<u32>
§

KeyboardInput

Fields

§desktop_session: DesktopSessionHandle
§

GetText

Fields

§desktop_session: DesktopSessionHandle
§selector: String
§timeout_ms: Option<u32>
§

GetInnerText

Fields

§desktop_session: DesktopSessionHandle
§selector: String
§timeout_ms: Option<u32>
§

WaitForSelector

Fields

§desktop_session: DesktopSessionHandle
§selector: String
§visible: bool
§timeout_ms: Option<u32>
§

Screenshot

Fields

§desktop_session: DesktopSessionHandle
§timeout_ms: Option<u32>
§full_page: bool
§

AccessibilitySnapshot

Fields

§desktop_session: DesktopSessionHandle
§format: String
§mode: String
§

InspectorSnapshot

Fields

§desktop_session: DesktopSessionHandle

Trait Implementations§

Source§

impl Clone for DesktopCommand

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DesktopCommand

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for DesktopCommand

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for DesktopCommand

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for DesktopCommand

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for DesktopCommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.