|
Methods defined here:
- InputKeyEvent(self, key)
- Send a single key input to the device.
Args:
key: A key code number or name that will be sent to the device
- InputPress(self)
- Perform a press input.
- InputRoll(self, dx, dy)
- Perform a roll input. This sends a simple zero-pressure move event.
Args:
dx: Change in the x coordinate due to move.
dy: Change in the y coordinate due to move.
- InputSwipe(self, left_start_coord, top_start_coord, left_end_coord, top_end_coord, duration)
- Perform a swipe input.
Args:
left_start_coord: The horizontal starting coordinate of the gesture
top_start_coord: The vertical starting coordinate of the gesture
left_end_coord: The horizontal ending coordinate of the gesture
top_end_coord: The vertical ending coordinate of the gesture
duration: The length of time of the swipe in milliseconds
- InputTap(self, x_coord, y_coord)
- Perform a tap input at the given coordinates.
Args:
x_coord: The x coordinate of the tap event.
y_coord: The y coordinate of the tap event.
- InputText(self, string)
- Convert the characters of the string into key events and send to device.
Args:
string: The string to send to the device.
- SmoothScrollBy(self, left_start_coord, top_start_coord, direction, scroll_distance)
- Perfrom gesture to scroll down on the android device.
- TurnScreenOff(self)
- If device screen is on, turn screen off.
If the screen is already off, log a warning and return immediately.
Raises:
Timeout: If the screen is on and device fails to turn screen off.
- TurnScreenOn(self)
- If device screen is off, turn screen on.
If the screen is already on, log a warning and return immediately.
Raises:
Timeout: If the screen is off and device fails to turn screen on.
- UnlockScreen(self)
- If device screen is locked, unlocks it.
If the device is not locked, log a warning and return immediately.
Raises:
Timeout: If device fails to unlock screen.
- Wait(self, seconds)
- Wait for the number of seconds specified.
Args:
seconds: The number of seconds to wait.
- __init__(self, platform_backend)
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|