AndroidDriver class in Appium

AndroidDriver class provides below methods in Appium.

  1. swipe – swipes the app from point A to point B
  2. findElementsByAndroidUIAutomator
  3. context – used to switch contexts
  4. currentActivity – gets the current activity of app
  5. pressKeyCode – used to press the Key code
  6. longPressKeyCode – used to long press key code
  7. closeApp – closes down the app
  8. launchApp – launches app
  9. isLocked – checks if device is locked
  10. lockDevice – locks the device
  11. zoom – zooms the particular point on the screen
  12. tap – taps on specific element or location on screen
  13. openNotifications – opens notification screen
  14. startActivity – starts the activity in app
  15. rotate – roatates the screen orientation – landscape or protrait
  16. resetApp – resets the App
  17. pinch – pinches the screen location
  18. installApp – installs the app on device

 

You may also like...