Skip to main content

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 ();