Sha256: 2bf8c6af365415d838c2edcf83c6778538640a01518c1a5b3691ce3f559d1314
Contents?: true
Size: 836 Bytes
Versions: 17
Compression:
Stored size: 836 Bytes
Contents
package com.amplify.honeydew_server.actions; import com.amplify.honeydew_server.*; import com.android.uiautomator.core.*; import java.util.Map; public class IsElementWithNestedTextPresent extends Action { public IsElementWithNestedTextPresent(UiDevice uiDevice) { super(uiDevice); } @Override public Result execute(Map<String, Object> arguments) throws UiObjectNotFoundException { String parentDescription = (String) arguments.get("parent_description"); String childText = (String) arguments.get("child_text"); UiCollection parentElement = new UiCollection(new UiSelector().description(parentDescription)); UiObject child = parentElement.getChild(new UiSelector().text(childText)); return isUiObjectAvailable(child, arguments) ? Result.OK : Result.FAILURE; } }
Version data entries
17 entries across 17 versions & 1 rubygems