public abstract class UiDriver extends Object
| Constructor and Description |
|---|
UiDriver() |
| Modifier and Type | Method and Description |
|---|---|
static ChromeDriver |
getChromeDriver(String url) |
static ChromeDriver |
getChromeDriver(String url,
String remoteSeleniumURL) |
static UiDriver |
getCustomDriver(String driverClassName,
Class<?>[] parameterTypes,
Object[] constructorArguments)
This method allows you to load your own driver implementation which you can use as any other UI Engine driver
|
static EdgeDriver |
getEdgeDriver(String url) |
static EdgeDriver |
getEdgeDriver(String url,
String remoteSeleniumURL) |
static FirefoxDriver |
getFirefoxDriver(String url) |
static FirefoxDriver |
getFirefoxDriver(String url,
String browserPath) |
static FirefoxDriver |
getFirefoxDriver(String url,
String browserPath,
String remoteSeleniumURL) |
static HiddenBrowserDriver |
getHiddenBrowserDriver(String url) |
static HiddenBrowserDriver |
getHiddenBrowserDriver(String url,
com.gargoylesoftware.htmlunit.BrowserVersion browserVersion) |
static InternetExplorerDriver |
getInternetExplorerDriver(String url) |
static InternetExplorerDriver |
getInternetExplorerDriver(String url,
String remoteSeleniumURL) |
static MobileDriver |
getMobileDriver(String deviceName,
String platformVersion,
String udid,
String host)
Driver for working with mobile applications
|
static MobileDriver |
getMobileDriver(String deviceName,
String platformVersion,
String udid,
String host,
int port)
Driver for working with mobile applications
|
static PhantomJsDriver |
getPhantomJSDriver(String url,
String browserPath) |
static RobotDriver |
getRobotDriver() |
static SafariDriver |
getSafariDriver(String url) |
static SafariDriver |
getSafariDriver(String url,
String remoteSeleniumURL) |
static SwingDriver |
getSwingDriver(Class<?> mainClassOfTestedApplication) |
static SwingDriver |
getSwingDriver(Class<?> mainClassOfTestedApplication,
String windowTitle) |
static SwingDriver |
getSwingDriver(String windowTitle) |
static SwingDriver |
getSwingDriver(String jnlpLocation,
boolean cacheEnabled)
Driver for working with JNLP applications
|
abstract void |
start()
start the driver
|
abstract void |
stop()
stop the driver
|
public abstract void start()
public abstract void stop()
public static FirefoxDriver getFirefoxDriver(String url)
url - the URL to openpublic static FirefoxDriver getFirefoxDriver(String url, String browserPath)
url - the URL to openbrowserPath - the path to the browser starting file or
the remote selenium hub URL (eg. http://10.11.12.13:4444/wd/hub/)public static FirefoxDriver getFirefoxDriver(String url, String browserPath, String remoteSeleniumURL)
url - the target application URLbrowserPath - the browser start pathremoteSeleniumURL - the remote selenium hub URL (eg. http://10.11.12.13:4444/wd/hub/)public static InternetExplorerDriver getInternetExplorerDriver(String url)
url - the URL to openpublic static EdgeDriver getEdgeDriver(String url, String remoteSeleniumURL)
url - the URL to openremoteSeleniumURL - the remote selenium hub URL (eg. http://10.11.12.13:4444/wd/hub/)public static EdgeDriver getEdgeDriver(String url)
url - the URL to openpublic static InternetExplorerDriver getInternetExplorerDriver(String url, String remoteSeleniumURL)
url - the URL to openremoteSeleniumURL - the remote selenium hub URL (eg. http://10.11.12.13:4444/wd/hub/)public static ChromeDriver getChromeDriver(String url)
url - the URL to openpublic static ChromeDriver getChromeDriver(String url, String remoteSeleniumURL)
url - the URL to openremoteSeleniumURL - the remote selenium hub URL (eg. http://10.11.12.13:4444/wd/hub/)public static SafariDriver getSafariDriver(String url)
url - the URL to openpublic static SafariDriver getSafariDriver(String url, String remoteSeleniumURL)
url - the URL to openremoteSeleniumURL - the remote selenium hub URL (eg. http://10.11.12.13:4444/wd/hub/)public static HiddenBrowserDriver getHiddenBrowserDriver(String url)
url - the URL to openpublic static HiddenBrowserDriver getHiddenBrowserDriver(String url, com.gargoylesoftware.htmlunit.BrowserVersion browserVersion)
url - the URL to openbrowserVersion - a BrowserVersion to emulatepublic static PhantomJsDriver getPhantomJSDriver(String url, String browserPath)
url - the URL to openbrowserPath - the browser absolute pathpublic static RobotDriver getRobotDriver()
public static SwingDriver getSwingDriver(Class<?> mainClassOfTestedApplication)
mainClassOfTestedApplication - the class containing the "main" methodpublic static SwingDriver getSwingDriver(Class<?> mainClassOfTestedApplication, String windowTitle)
mainClassOfTestedApplication - the class containing the "main" methodwindowTitle - the window titlepublic static SwingDriver getSwingDriver(String windowTitle)
windowTitle - the window titlepublic static SwingDriver getSwingDriver(String jnlpLocation, boolean cacheEnabled)
jnlpLocation - JNLP location. It can be local JNLP file path or a remote urlcacheEnabled - whether the JNLP is cached or notpublic static MobileDriver getMobileDriver(String deviceName, String platformVersion, String udid, String host)
deviceName - the kind of mobile device or emulator to use. You can use one of MobileDriver driver type constants.platformVersion - mobile OS version. For example: 8.1, 4.4 ... For Android it could be skipped (null)udid - unique device identifier of the connected physical device or null for emulator/simulator usagehost - the host address of the Appium server. null may be passed if you want to work with localhost emulatorpublic static MobileDriver getMobileDriver(String deviceName, String platformVersion, String udid, String host, int port)
deviceName - the kind of mobile device or emulator to use. You can use one of MobileDriver driver type constants.platformVersion - mobile OS version. For example: 8.1, 4.4 ... For Android it could be skipped (null)udid - unique device identifier of the connected physical device or null for emulator/simulator usagehost - the host address of the Appium server. null may be passed if you want to work with localhost emulatorport - the port number of the Appium serverpublic static UiDriver getCustomDriver(String driverClassName, Class<?>[] parameterTypes, Object[] constructorArguments) throws Exception
driverClassName - the full class name of the custom driver classparameterTypes - the parameters that the constructor requiresconstructorArguments - the arguments, which will be passed to the constructorExceptionCopyright © 2017 Axway Software. All rights reserved.