Skip to main content

MacApp

Type Alias MacApp 

Source
pub type MacApp = DesktopApp;

Aliased Type§

pub struct MacApp { /* private fields */ }

Methods from Deref<Target = NativeApp>§

Source

pub fn session_id(&self) -> &str

Source

pub async fn register_hook<T: AndroidHookType>( &self, _hook_type: T, ) -> Result<AndroidHook<T>>

Source

pub fn locator(&self, selector: impl Into<String>) -> NativeLocator

Source

pub fn get_by_role(&self, role: impl Into<String>) -> NativeLocator

Source

pub fn get_by_role_with_options( &self, role: impl Into<String>, options: RoleOptions, ) -> NativeLocator

Source

pub fn get_by_text(&self, text: impl Into<TextMatcher>) -> NativeLocator

Source

pub fn get_by_text_with_options( &self, text: impl Into<TextMatcher>, options: TextOptions, ) -> NativeLocator

Source

pub fn get_by_label(&self, text: impl Into<TextMatcher>) -> NativeLocator

Source

pub fn get_by_label_with_options( &self, text: impl Into<TextMatcher>, options: TextOptions, ) -> NativeLocator

Source

pub fn get_by_test_id(&self, text: impl Into<TextMatcher>) -> NativeLocator

Source

pub async fn goto(&self, url: &str, options: CommandOptions) -> Result<()>

Source

pub async fn navigate(&self, url: &str, options: CommandOptions) -> Result<()>

Source

pub async fn click(&self, selector: &str, options: CommandOptions) -> Result<()>

Source

pub async fn fill( &self, selector: &str, value: &str, options: CommandOptions, ) -> Result<()>

Source

pub async fn count( &self, selector: &str, options: CommandOptions, ) -> Result<u32>

Source

pub async fn focus(&self, selector: &str, options: CommandOptions) -> Result<()>

Source

pub async fn press( &self, selector: &str, key: &str, options: PressOptions, ) -> Result<()>

Source

pub async fn text_content( &self, selector: &str, options: CommandOptions, ) -> Result<Option<String>>

Source

pub async fn inner_text( &self, selector: &str, options: CommandOptions, ) -> Result<String>

Source

pub async fn input_value( &self, selector: &str, options: CommandOptions, ) -> Result<String>

Source

pub async fn is_checked( &self, selector: &str, options: CommandOptions, ) -> Result<bool>

Source

pub async fn get_attribute( &self, selector: &str, name: &str, options: CommandOptions, ) -> Result<Option<String>>

Source

pub async fn bounding_box( &self, selector: &str, options: CommandOptions, ) -> Result<Option<BoundingBox>>

Source

pub async fn wait_for_selector( &self, selector: &str, options: WaitForSelectorOptions, ) -> Result<()>

Source

pub async fn screenshot(&self) -> Result<Vec<u8>>

Source

pub async fn screenshot_with_options( &self, options: ScreenshotOptions, ) -> Result<Vec<u8>>

Source

pub async fn accessibility_snapshot(&self) -> Result<String>

Source

pub async fn accessibility_snapshot_with_options( &self, options: AccessibilitySnapshotOptions, ) -> Result<String>