DeviceActions
Static methodsâ
onDevice
â
This will return IDeviceActions
which will expose different methods to handle different device specific actions.
IDeviceActions deviceActions = DeviceActions.onDevice ();
Instance methodsâ
isKeyboardVisible
â
This method is used to determine if the Mobile keyboard is visible.
import static io.github.boykaframework.actions.device.DeviceActions.onDevice;
. . .
var isKeyboardDisplayed = onDevice ().isKeyboardVisible ();
hideKeyboard
â
This method is used to hide the keyboard on the mobile.
import static io.github.boykaframework.actions.device.DeviceActions.onDevice;
. . .
onDevice ().hideKeyboard ();
startRecording
â
This method is used to start video recording for Mobile tests.
import static io.github.boykaframework.actions.device.DeviceActions.onDevice;
. . .
onDevice ().startRecording ();
stopRecording
â
This method is used to stop video recording for Mobile tests.
import static io.github.boykaframework.actions.device.DeviceActions.onDevice;
. . .
onDevice ().stopRecording ();