package org.getopentest.appium;

import java.time.Duration;
import org.getopentest.appium.core.AppiumTestAction;

public class RunAppInBackground extends AppiumTestAction {

    @Override
    public void run() {
        super.run();

        Integer seconds = this.readIntArgument("seconds");

        driver.runAppInBackground(Duration.ofSeconds(seconds));
    }
}
