Sha256: 230aa4890e2c4454edeaae82ffdf8e2693f6d9e78c4e11b783d4a3f28a22d248

Contents?: true

Size: 696 Bytes

Versions: 38

Compression:

Stored size: 696 Bytes

Contents

package sh.calaba.instrumentationbackend.actions.wait;


import sh.calaba.instrumentationbackend.InstrumentationBackend;
import sh.calaba.instrumentationbackend.Result;
import sh.calaba.instrumentationbackend.actions.Action;


public class WaitForText implements Action {

    @Override
    public Result execute(String... args) {
        boolean timedOut = !InstrumentationBackend.solo.waitForText(args[0], 1, 90000);
        if(timedOut) {
            return new Result(false, "Time out while waiting for text:" + args[0]);
        } else {
            return Result.successResult();
        }
            
    }

    @Override
    public String key() {
        return "wait_for_text";
    }
}

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
calabash-android-0.0.19 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForText.java
calabash-android-0.0.18 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForText.java
calabash-android-0.0.17 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForText.java
calabash-android-0.0.16 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForText.java
calabash-android-0.0.15 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForText.java
calabash-android-0.0.14 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForText.java
calabash-android-0.0.13 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForText.java
calabash-android-0.0.12 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForText.java
calabash-android-0.0.11 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForText.java
calabash-android-0.0.10 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForText.java
calabash-android-0.0.8 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForText.java
calabash-android-0.0.7 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForText.java
calabash-android-0.0.6 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForText.java
calabash-android-0.0.5 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForText.java
calabash-android-0.0.4 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForText.java
calabash-android-0.0.3 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForText.java
calabash-android-0.0.2 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForText.java
calabash-android-0.0.1 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForText.java