public class SelendroidDriver.RemoteAdbConnection extends Object implements AdbConnection
| Constructor and Description |
|---|
SelendroidDriver.RemoteAdbConnection(org.openqa.selenium.remote.ExecuteMethod executeMethod) |
| Modifier and Type | Method and Description |
|---|---|
String |
executeShellCommand(String command)
Sends the @command to the emulator.
|
void |
sendKeyEvent(int keyCode)
Sends key events to the Android device/emulator.
|
void |
sendText(String text)
Sends text to the Android device/emulator.
|
void |
tap(int x,
int y)
Sends key event tap to the Android device/emulator.
|
public SelendroidDriver.RemoteAdbConnection(org.openqa.selenium.remote.ExecuteMethod executeMethod)
public void tap(int x,
int y)
AdbConnectionadb shell input tap (x) (y) on the command line.tap in interface AdbConnectionx - X coordinate to tap on.y - Y coordinate to tap on.public void sendText(String text)
AdbConnectionadb shell input text (TEXT) on the command line.sendText in interface AdbConnectiontext - to send to the device/emulatorpublic void sendKeyEvent(int keyCode)
AdbConnectionadb shell input keyevent (KEYCODE) on the command line.sendKeyEvent in interface AdbConnectionkeyCode - to send to device/emulator.public String executeShellCommand(String command)
AdbConnectionexecuteShellCommand in interface AdbConnectioncommand - The command to execute on the device under test.Copyright © 2015. All rights reserved.