Class AppiumConfiguration
java.lang.Object
net.thucydides.core.webdriver.appium.AppiumConfiguration
public class AppiumConfiguration
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description MobilePlatform
definedContext()
MobilePlatform
definedTargetPlatform()
Return the Appium platform defined in the system properties, or NONE if no platform is defined.static AppiumConfiguration
from(EnvironmentVariables environmentVariables)
org.openqa.selenium.remote.DesiredCapabilities
getCapabilities()
org.openqa.selenium.remote.DesiredCapabilities
getCapabilities(java.lang.String options)
java.util.Properties
getProperties(java.lang.String options)
MobilePlatform
getTargetPlatform()
Return the Appium platform defined in the system properties or the context.MobilePlatform
getTargetPlatform(org.openqa.selenium.WebDriver driver)
Define the platform based on theDesiredCapabilities
of theWebDriver
first.java.net.URL
getUrl()
boolean
isDefined()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
from
-
getTargetPlatform
Define the platform based on theDesiredCapabilities
of theWebDriver
first. If that doesn't work, fall back to the Appium platform defined in the system properties or the context. Must be either ios or android. -
getTargetPlatform
Return the Appium platform defined in the system properties or the context. Must be either ios or android. -
definedTargetPlatform
Return the Appium platform defined in the system properties, or NONE if no platform is defined. -
definedContext
-
getUrl
public java.net.URL getUrl() -
getCapabilities
public org.openqa.selenium.remote.DesiredCapabilities getCapabilities() -
getCapabilities
public org.openqa.selenium.remote.DesiredCapabilities getCapabilities(java.lang.String options) -
getProperties
public java.util.Properties getProperties(java.lang.String options) -
isDefined
public boolean isDefined()
-