public class AppiumConfiguration extends Object
Modifier and Type | Method and 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(String options) |
Properties |
getProperties(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 the
DesiredCapabilities of the WebDriver first. |
URL |
getUrl() |
boolean |
isDefined() |
public static AppiumConfiguration from(EnvironmentVariables environmentVariables)
public MobilePlatform getTargetPlatform(org.openqa.selenium.WebDriver driver)
DesiredCapabilities
of the WebDriver
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.public MobilePlatform getTargetPlatform()
public MobilePlatform definedTargetPlatform()
public MobilePlatform definedContext()
public URL getUrl()
public org.openqa.selenium.remote.DesiredCapabilities getCapabilities()
public org.openqa.selenium.remote.DesiredCapabilities getCapabilities(String options)
public Properties getProperties(String options)
public boolean isDefined()
Copyright © 2021. All rights reserved.