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

com.github.arachnidium.model.mobile.ios.IOSApp Maven / Gradle / Ivy

package com.github.arachnidium.model.mobile.ios;

import io.appium.java_client.ios.IOSDeviceActionShortcuts;
import io.appium.java_client.ios.IOSDriver;

import com.github.arachnidium.core.MobileScreen;
import com.github.arachnidium.model.mobile.MobileApplication;

/**
* It is the same as {@link MobileApplication} with some capabilities of
* iOS. It works only with {@link IOSDriver}
*/
public abstract class IOSApp extends MobileApplication implements IOSDeviceActionShortcuts{

	protected IOSApp(MobileScreen context) {
		super(context);
	}

	@Override
	public void hideKeyboard(String keyName) {
		((IOSDriver) getWrappedDriver()).hideKeyboard(keyName);		
	}

	@Override
	public void hideKeyboard(String strategy, String keyName) {
		((IOSDriver) getWrappedDriver()).hideKeyboard(strategy, keyName);		
	}

	@Override
	public void shake() {
		((IOSDriver) getWrappedDriver()).shake();		
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy