Class SmartAppDriver
java.lang.Object
org.uitnet.testing.smartfwk.ui.core.appdriver.SmartAppDriver
public class SmartAppDriver extends Object
- Author:
- Madhav Krishna
-
Constructor Summary
Constructors Constructor Description SmartAppDriver(String appName, ApplicationType appType, PlatformType testPlatformType) -
Method Summary
Modifier and Type Method Description voidcloseApp()Closes all the windows associated with this app and the app itself.voidcloseChildWindows()voidcloseCurrentWindow()Closes current window, if it is a last window then close the app.AppConfiggetAppConfig()intgetAppId()StringgetAppName()ApplicationTypegetAppType()StringgetOriginalWindowHandle()StringgetOSName()ScrollElementToViewportHandlergetScrollElementToViewportHandler()org.sikuli.script.ScreengetSikuliScreen()PlatformTypegetTestPlatformType()org.openqa.selenium.WebDrivergetWebDriver()booleanisOpened()org.openqa.selenium.WebDriveropenAppIfNotOpened(String userProfileName)voidopenDefaultURL()voidopenURL(String url)voidrefresh()Refreshes the web browser.voidsetFocus()This method is used to bring the window to front to perform the operation.voidsetScrollElementToViewportHandler(ScrollElementToViewportHandler handler)voidwaitForMilliSeconds(long milliSeconds)voidwaitForSeconds(int seconds)
-
Constructor Details
-
SmartAppDriver
-
-
Method Details
-
setScrollElementToViewportHandler
-
getScrollElementToViewportHandler
-
openAppIfNotOpened
-
closeCurrentWindow
public void closeCurrentWindow()Closes current window, if it is a last window then close the app. -
closeApp
public void closeApp()Closes all the windows associated with this app and the app itself. -
closeChildWindows
public void closeChildWindows() -
getAppId
public int getAppId() -
getAppName
-
getAppType
-
getTestPlatformType
-
getWebDriver
public org.openqa.selenium.WebDriver getWebDriver() -
getAppConfig
-
isOpened
public boolean isOpened() -
getOSName
-
getSikuliScreen
public org.sikuli.script.Screen getSikuliScreen() -
getOriginalWindowHandle
-
openURL
-
openDefaultURL
public void openDefaultURL() -
waitForMilliSeconds
public void waitForMilliSeconds(long milliSeconds) -
waitForSeconds
public void waitForSeconds(int seconds) -
refresh
public void refresh()Refreshes the web browser. -
setFocus
public void setFocus()This method is used to bring the window to front to perform the operation.
-