Sha256: 2753046c37401792bd97e0c4c42638b43bfb816ab3da3aa0aae7668ec97a085e
Contents?: true
Size: 784 Bytes
Versions: 17
Compression:
Stored size: 784 Bytes
Contents
package com.amplify.honeydew_server.actions; import com.amplify.honeydew_server.*; import com.android.uiautomator.core.*; import java.util.Map; public class SetTextByLabel extends Action { public SetTextByLabel(UiDevice uiDevice) { super(uiDevice); } @Override public Result execute(Map<String, Object> arguments) throws UiObjectNotFoundException { String label = (String) arguments.get("label"); String inputText = (String) arguments.get("text"); UiObject textField = new UiObject(new UiSelector().text(label)); if (isUiObjectAvailable(textField, arguments)) { textField.setText(inputText); uiDevice.pressDPadDown(); return Result.OK; } return Result.FAILURE; } }
Version data entries
17 entries across 17 versions & 1 rubygems