pub struct Desktop {}Expand description
Entry point for UI automation: enumerate windows and launch applications.
Implementations§
Trait Implementations§
Source§impl Desktop for Desktop
Available on non-Windows only.
impl Desktop for Desktop
Available on non-Windows only.
type Elem = UIElement
type Browser = NoBrowser
Source§fn browser(&self) -> &NoBrowser
fn browser(&self) -> &NoBrowser
CDP browser handle. Used by the workflow engine for browser automation.
Source§fn application_windows(&self) -> Result<Vec<UIElement>, AutomataError>
fn application_windows(&self) -> Result<Vec<UIElement>, AutomataError>
All top-level application windows currently visible.
Source§fn open_application(&self, _exe: &str) -> Result<u32, AutomataError>
fn open_application(&self, _exe: &str) -> Result<u32, AutomataError>
Launch an executable by name or full path. Returns the process ID.
Source§fn foreground_window(&self) -> Option<UIElement>
fn foreground_window(&self) -> Option<UIElement>
The element that currently has keyboard focus (topmost modal if a dialog
is present). Returns
None if the foreground window is unknown.Source§fn foreground_hwnd(&self) -> Option<u64>
fn foreground_hwnd(&self) -> Option<u64>
Raw HWND as
u64 for process-ownership checks without a full element
query. Returns None on non-Windows or when nothing is focused.Source§fn tooltip_windows(&self) -> Vec<Self::Elem>
fn tooltip_windows(&self) -> Vec<Self::Elem>
All currently visible tooltip windows on the desktop.
Returns an empty vec on non-Windows or if none are present.
Auto Trait Implementations§
impl Freeze for Desktop
impl RefUnwindSafe for Desktop
impl Send for Desktop
impl Sync for Desktop
impl Unpin for Desktop
impl UnsafeUnpin for Desktop
impl UnwindSafe for Desktop
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