Sha256: 5adaa14dce0684ea34cde451b3cbee97df5ece1c127233c0d4537c7152ee1257
Contents?: true
Size: 655 Bytes
Versions: 17
Compression:
Stored size: 655 Bytes
Contents
package com.amplify.honeydew_server.actions; import com.amplify.honeydew_server.*; import com.android.uiautomator.core.*; import java.util.Map; public class IsButtonPresent extends Action { public IsButtonPresent(UiDevice uiDevice) { super(uiDevice); } @Override public Result execute(Map<String, Object> arguments) throws UiObjectNotFoundException { String text = (String) arguments.get("text"); UiObject textView = new UiObject(new UiSelector().className(android.widget.Button.class.getName()).textContains(text)); return isUiObjectAvailable(textView, arguments) ? Result.OK : Result.FAILURE; } }
Version data entries
17 entries across 17 versions & 1 rubygems