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

io.magentys.cinnamon.webdriver.App Maven / Gradle / Ivy

There is a newer version: 0.2.0
Show newest version
package io.magentys.cinnamon.webdriver;

import io.appium.java_client.AppiumDriver;

public final class App {

    /**
     * Appium function - will close the running app
     */
    public static void close() {
        getAppiumDriver().closeApp();
    }

    /**
     * Appium function - will start the app provided in the webdriver conf
     */
    public static void start() {
        getAppiumDriver().launchApp();
    }

    /**
     * Appium function - will rest and restart the running app
     */
    public static void reset() {
        getAppiumDriver().resetApp();
    }

    static AppiumDriver getAppiumDriver() {
        return (AppiumDriver) Browser.getWebDriver();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy