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
CloseApp
Capture
ClickElement
CountElements
FocusElement
FillElement
PressKey
ScrollElement
PointerInput
KeyboardInput
GetText
GetInnerText
WaitForSelector
Screenshot
AccessibilitySnapshot
InspectorSnapshot
Trait Implementations§
Source§impl Clone for DesktopCommand
impl Clone for DesktopCommand
Source§impl Debug for DesktopCommand
impl Debug for DesktopCommand
Source§impl<'de> Deserialize<'de> for DesktopCommand
impl<'de> Deserialize<'de> for DesktopCommand
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
Source§impl PartialEq for DesktopCommand
impl PartialEq for DesktopCommand
Source§impl Serialize for DesktopCommand
impl Serialize for DesktopCommand
impl StructuralPartialEq for DesktopCommand
Auto Trait Implementations§
impl Freeze for DesktopCommand
impl RefUnwindSafe for DesktopCommand
impl Send for DesktopCommand
impl Sync for DesktopCommand
impl Unpin for DesktopCommand
impl UnsafeUnpin for DesktopCommand
impl UnwindSafe for DesktopCommand
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