All Downloads are FREE. Search and download functionalities are using the official Maven repository.

android.AndroidTestCase Maven / Gradle / Ivy

The newest version!
package android;

import io.appium.java_client.MobileElement;

/**
 * Created by Ismail on 12/28/2017.
 * This class for Android Actions Section and to call actions from AndroidActions
 */
public class AndroidTestCase extends TestNGMethods {

    /*************** Class Methods Section ***************/

    /***************** Action Methods Section *****************/
    // This method to apply Pull to refresh screen
    protected void pullToRefresh() {
        AndroidActions.pullToRefresh();
    }

    // This method to apply tab action to AndroidElement
    protected void tap(MobileElement mobileElement) {
        AndroidActions.tap(mobileElement);
    }

    // This method send text to element
    protected void fillField(MobileElement mobileElement, String value) {
        AndroidActions.fillField(mobileElement, value);
    }

    // This method swipe the screen
    protected void swipeLeft() {
        AndroidActions.swipeLeft();
    }

    // This method swipe the screen
    protected void swipeRight() {
        AndroidActions.swipeRight();
    }

    // This method apply long press
    protected void longPress(MobileElement mobileElement) {
        AndroidActions.longPress(mobileElement);
    }

    // This method apply long press with duration
    protected void longPress(MobileElement mobileElement, int durationInSeconds) {
        AndroidActions.longPress(mobileElement, durationInSeconds);
    }

    /***************** Assertion Methods Section *****************/
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy