public class SmartAppDriver extends Object
| Constructor and Description |
|---|
SmartAppDriver(String appName,
ApplicationType appType,
PlatformType testPlatformType) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeApp()
Closes all the windows associated with this app and the app itself.
|
void |
closeCurrentWindow()
Closes current window, if it is a last window then close the app.
|
AppConfig |
getAppConfig() |
int |
getAppId() |
String |
getAppName() |
ApplicationType |
getAppType() |
String |
getOSName() |
ScrollElementToViewportHandler |
getScrollElementToViewportHandler() |
org.sikuli.script.Screen |
getSikuliScreen() |
PlatformType |
getTestPlatformType() |
org.openqa.selenium.WebDriver |
getWebDriver() |
boolean |
isOpened() |
org.openqa.selenium.WebDriver |
openAppIfNotOpened() |
void |
openDefaultURL() |
void |
openURL(String url) |
void |
refresh()
Refreshes the web browser.
|
void |
setFocus()
This method is used to bring the window to front to perform the operation.
|
void |
setScrollElementToViewportHandler(ScrollElementToViewportHandler handler) |
void |
waitForMilliSeconds(long milliSeconds) |
void |
waitForSeconds(int seconds) |
public SmartAppDriver(String appName, ApplicationType appType, PlatformType testPlatformType)
public void setScrollElementToViewportHandler(ScrollElementToViewportHandler handler)
public ScrollElementToViewportHandler getScrollElementToViewportHandler()
public org.openqa.selenium.WebDriver openAppIfNotOpened()
public void closeCurrentWindow()
public void closeApp()
public int getAppId()
public String getAppName()
public ApplicationType getAppType()
public PlatformType getTestPlatformType()
public org.openqa.selenium.WebDriver getWebDriver()
public AppConfig getAppConfig()
public boolean isOpened()
public String getOSName()
public org.sikuli.script.Screen getSikuliScreen()
public void openURL(String url)
public void openDefaultURL()
public void waitForMilliSeconds(long milliSeconds)
public void waitForSeconds(int seconds)
public void refresh()
public void setFocus()
Copyright © 2021. All rights reserved.