pub struct AndroidDevice { /* private fields */ }Expand description
Channel for the AndroidDevice interface (android.yml).
Implementations§
Source§impl AndroidDevice
impl AndroidDevice
Sourcepub async fn wait(
&self,
params: AndroidDeviceWaitParams,
) -> Result<(), ProtocolError>
pub async fn wait( &self, params: AndroidDeviceWaitParams, ) -> Result<(), ProtocolError>
AndroidDevice.wait (“Wait”).
Sourcepub async fn fill(
&self,
params: AndroidDeviceFillParams,
) -> Result<(), ProtocolError>
pub async fn fill( &self, params: AndroidDeviceFillParams, ) -> Result<(), ProtocolError>
AndroidDevice.fill (“Fill “{text}”“).
Sourcepub async fn tap(
&self,
params: AndroidDeviceTapParams,
) -> Result<(), ProtocolError>
pub async fn tap( &self, params: AndroidDeviceTapParams, ) -> Result<(), ProtocolError>
AndroidDevice.tap (“Tap”).
Sourcepub async fn drag(
&self,
params: AndroidDeviceDragParams,
) -> Result<(), ProtocolError>
pub async fn drag( &self, params: AndroidDeviceDragParams, ) -> Result<(), ProtocolError>
AndroidDevice.drag (“Drag”).
Sourcepub async fn fling(
&self,
params: AndroidDeviceFlingParams,
) -> Result<(), ProtocolError>
pub async fn fling( &self, params: AndroidDeviceFlingParams, ) -> Result<(), ProtocolError>
AndroidDevice.fling (“Fling”).
Sourcepub async fn long_tap(
&self,
params: AndroidDeviceLongTapParams,
) -> Result<(), ProtocolError>
pub async fn long_tap( &self, params: AndroidDeviceLongTapParams, ) -> Result<(), ProtocolError>
AndroidDevice.longTap (“Long tap”).
Sourcepub async fn pinch_close(
&self,
params: AndroidDevicePinchCloseParams,
) -> Result<(), ProtocolError>
pub async fn pinch_close( &self, params: AndroidDevicePinchCloseParams, ) -> Result<(), ProtocolError>
AndroidDevice.pinchClose (“Pinch close”).
Sourcepub async fn pinch_open(
&self,
params: AndroidDevicePinchOpenParams,
) -> Result<(), ProtocolError>
pub async fn pinch_open( &self, params: AndroidDevicePinchOpenParams, ) -> Result<(), ProtocolError>
AndroidDevice.pinchOpen (“Pinch open”).
Sourcepub async fn scroll(
&self,
params: AndroidDeviceScrollParams,
) -> Result<(), ProtocolError>
pub async fn scroll( &self, params: AndroidDeviceScrollParams, ) -> Result<(), ProtocolError>
AndroidDevice.scroll (“Scroll”).
Sourcepub async fn swipe(
&self,
params: AndroidDeviceSwipeParams,
) -> Result<(), ProtocolError>
pub async fn swipe( &self, params: AndroidDeviceSwipeParams, ) -> Result<(), ProtocolError>
AndroidDevice.swipe (“Swipe”).
Sourcepub async fn info(
&self,
params: AndroidDeviceInfoParams,
) -> Result<AndroidDeviceInfoResult, ProtocolError>
pub async fn info( &self, params: AndroidDeviceInfoParams, ) -> Result<AndroidDeviceInfoResult, ProtocolError>
AndroidDevice.info (internal).
Sourcepub async fn screenshot(
&self,
) -> Result<AndroidDeviceScreenshotResult, ProtocolError>
pub async fn screenshot( &self, ) -> Result<AndroidDeviceScreenshotResult, ProtocolError>
AndroidDevice.screenshot (“Screenshot”).
Sourcepub async fn input_type(
&self,
params: AndroidDeviceInputTypeParams,
) -> Result<(), ProtocolError>
pub async fn input_type( &self, params: AndroidDeviceInputTypeParams, ) -> Result<(), ProtocolError>
AndroidDevice.inputType (“Type”).
Sourcepub async fn input_press(
&self,
params: AndroidDeviceInputPressParams,
) -> Result<(), ProtocolError>
pub async fn input_press( &self, params: AndroidDeviceInputPressParams, ) -> Result<(), ProtocolError>
AndroidDevice.inputPress (“Press”).
Sourcepub async fn input_tap(
&self,
params: AndroidDeviceInputTapParams,
) -> Result<(), ProtocolError>
pub async fn input_tap( &self, params: AndroidDeviceInputTapParams, ) -> Result<(), ProtocolError>
AndroidDevice.inputTap (“Tap”).
Sourcepub async fn input_swipe(
&self,
params: AndroidDeviceInputSwipeParams,
) -> Result<(), ProtocolError>
pub async fn input_swipe( &self, params: AndroidDeviceInputSwipeParams, ) -> Result<(), ProtocolError>
AndroidDevice.inputSwipe (“Swipe”).
Sourcepub async fn input_drag(
&self,
params: AndroidDeviceInputDragParams,
) -> Result<(), ProtocolError>
pub async fn input_drag( &self, params: AndroidDeviceInputDragParams, ) -> Result<(), ProtocolError>
AndroidDevice.inputDrag (“Drag”).
Sourcepub async fn launch_browser(
&self,
params: AndroidDeviceLaunchBrowserParams,
) -> Result<AndroidDeviceLaunchBrowserResult, ProtocolError>
pub async fn launch_browser( &self, params: AndroidDeviceLaunchBrowserParams, ) -> Result<AndroidDeviceLaunchBrowserResult, ProtocolError>
AndroidDevice.launchBrowser (“Launch browser”).
Sourcepub async fn open(
&self,
params: AndroidDeviceOpenParams,
) -> Result<AndroidDeviceOpenResult, ProtocolError>
pub async fn open( &self, params: AndroidDeviceOpenParams, ) -> Result<AndroidDeviceOpenResult, ProtocolError>
AndroidDevice.open (“Open app”).
Sourcepub async fn shell(
&self,
params: AndroidDeviceShellParams,
) -> Result<AndroidDeviceShellResult, ProtocolError>
pub async fn shell( &self, params: AndroidDeviceShellParams, ) -> Result<AndroidDeviceShellResult, ProtocolError>
AndroidDevice.shell (“Execute shell command”).
Sourcepub async fn install_apk(
&self,
params: AndroidDeviceInstallApkParams,
) -> Result<(), ProtocolError>
pub async fn install_apk( &self, params: AndroidDeviceInstallApkParams, ) -> Result<(), ProtocolError>
AndroidDevice.installApk (“Install apk”).
Sourcepub async fn push(
&self,
params: AndroidDevicePushParams,
) -> Result<(), ProtocolError>
pub async fn push( &self, params: AndroidDevicePushParams, ) -> Result<(), ProtocolError>
AndroidDevice.push (“Push”).
Sourcepub async fn connect_to_web_view(
&self,
params: AndroidDeviceConnectToWebViewParams,
) -> Result<AndroidDeviceConnectToWebViewResult, ProtocolError>
pub async fn connect_to_web_view( &self, params: AndroidDeviceConnectToWebViewParams, ) -> Result<AndroidDeviceConnectToWebViewResult, ProtocolError>
AndroidDevice.connectToWebView (“Connect to Web View”).
Sourcepub async fn close(&self) -> Result<(), ProtocolError>
pub async fn close(&self) -> Result<(), ProtocolError>
AndroidDevice.close (internal).
Trait Implementations§
Source§impl ChannelType for AndroidDevice
impl ChannelType for AndroidDevice
Source§type Initializer = AndroidDeviceInitializer
type Initializer = AndroidDeviceInitializer
__create__.Source§type Event = AndroidDeviceEvent
type Event = AndroidDeviceEvent
Source§fn accepts(interface: &str) -> bool
fn accepts(interface: &str) -> bool
interface can be used as this type (an
ElementHandle is also a JSHandle).Source§fn from_channel(channel: Channel) -> Self
fn from_channel(channel: Channel) -> Self
Source§fn initializer(&self) -> Result<Self::Initializer, ProtocolError>
fn initializer(&self) -> Result<Self::Initializer, ProtocolError>
Source§fn events(&self) -> EventStream<Self::Event>
fn events(&self) -> EventStream<Self::Event>
Source§impl Clone for AndroidDevice
impl Clone for AndroidDevice
Auto Trait Implementations§
impl !RefUnwindSafe for AndroidDevice
impl !UnwindSafe for AndroidDevice
impl Freeze for AndroidDevice
impl Send for AndroidDevice
impl Sync for AndroidDevice
impl Unpin for AndroidDevice
impl UnsafeUnpin for AndroidDevice
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
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 more