Sha256: 77631d9ff77e3e0399c955194b2d41afcec24f96a9d2b74d9aa7ee3222501dee
Contents?: true
Size: 889 Bytes
Versions: 17
Compression:
Stored size: 889 Bytes
Contents
package com.amplify.honeydew_server.actions; import com.amplify.honeydew_server.*; import com.android.uiautomator.core.*; import java.util.Map; public class Unlock extends Action { public Unlock(UiDevice uiDevice) { super(uiDevice); } @Override public Result execute(Map<String, Object> arguments) throws UiObjectNotFoundException { UiObject uiObject = new UiObject(new UiSelector().description("Slide area.")); uiObject = isUiObjectAvailable(uiObject, arguments) ? uiObject : new UiObject(new UiSelector().className("android.view.View")); try { if (isUiObjectAvailable(uiObject, arguments)) { uiObject.swipeRight(100); } } catch (UiObjectNotFoundException e) { // The device is unlocked already?" } getUiDevice().pressHome(); return Result.OK; } }
Version data entries
17 entries across 17 versions & 1 rubygems