Sha256: d8358b9fb78dfd872153422fd2e2a1d10494878c9c6eb821f4da102cd869bed8
Contents?: true
Size: 737 Bytes
Versions: 91
Compression:
Stored size: 737 Bytes
Contents
package sh.calaba.instrumentationbackend.actions.gestures; import sh.calaba.instrumentationbackend.InstrumentationBackend; import sh.calaba.instrumentationbackend.Result; import sh.calaba.instrumentationbackend.actions.Action; import com.jayway.android.robotium.solo.Solo; public class Swipe implements Action { @Override public Result execute(String... args) { String direction = args[0]; if(direction.equalsIgnoreCase("left")) { InstrumentationBackend.solo.scrollToSide(Solo.LEFT); } else { InstrumentationBackend.solo.scrollToSide(Solo.RIGHT); } return Result.successResult(); } @Override public String key() { return "swipe"; } }
Version data entries
91 entries across 91 versions & 2 rubygems