Search in sources :

Example 1 with StartsActivity

use of io.appium.java_client.android.StartsActivity in project java-client by appium.

the class AndroidTest method setUp.

@Before
public void setUp() {
    startsActivity = new StartsActivity() {

        @Override
        public Response execute(String driverCommand, Map<String, ?> parameters) {
            return driver.execute(driverCommand, parameters);
        }

        @Override
        public Response execute(String driverCommand) {
            return driver.execute(driverCommand);
        }
    };
    Activity activity = new Activity("io.appium.android.apis", ".ApiDemos");
    startsActivity.startActivity(activity);
}
Also used : Response(org.openqa.selenium.remote.Response) Activity(io.appium.java_client.android.Activity) StartsActivity(io.appium.java_client.android.StartsActivity) StartsActivity(io.appium.java_client.android.StartsActivity) Before(org.junit.Before)

Aggregations

Activity (io.appium.java_client.android.Activity)1 StartsActivity (io.appium.java_client.android.StartsActivity)1 Before (org.junit.Before)1 Response (org.openqa.selenium.remote.Response)1