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