Sha256: ea20cf55e1eae128a67be335c546afd79ae6c084fa921a3b70a2a72525eb1038
Contents?: true
Size: 756 Bytes
Versions: 124
Compression:
Stored size: 756 Bytes
Contents
package sh.calaba.instrumentationbackend.actions.button; import android.widget.Button; import sh.calaba.instrumentationbackend.InstrumentationBackend; import sh.calaba.instrumentationbackend.Result; import sh.calaba.instrumentationbackend.actions.Action; public class PressButtonText implements Action { @Override public Result execute(String... args) { InstrumentationBackend.solo.searchButton(args[0]); for (Button b : InstrumentationBackend.solo.getCurrentButtons()) System.out.println("Button text: " + b.getText()); InstrumentationBackend.solo.clickOnButton(args[0]); return Result.successResult(); } @Override public String key() { return "press_button_with_text"; } }
Version data entries
124 entries across 124 versions & 2 rubygems