Class SmartAppDriver


  • public class SmartAppDriver
    extends Object
    Author:
    Madhav Krishna
    • Method Detail

      • overrideDriverProps

        public void overrideDriverProps​(com.jayway.jsonpath.DocumentContext jsonProps)
        Must be called before calling the set active user profile else these properties will not get overridden.
        Parameters:
        jsonProps -
      • openAppIfNotOpened

        public org.openqa.selenium.WebDriver openAppIfNotOpened​(String userProfileName)
      • 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

        public String getAppName()
      • getTestPlatformType

        public PlatformType getTestPlatformType()
      • getWebDriver

        public org.openqa.selenium.WebDriver getWebDriver()
      • getAppConfig

        public AppConfig getAppConfig()
      • isOpened

        public boolean isOpened()
      • getOSName

        public String getOSName()
      • getSikuliScreen

        public org.sikuli.script.Screen getSikuliScreen()
      • getOriginalWindowHandle

        public String getOriginalWindowHandle()
      • openURL

        public void openURL​(String url)
      • openDefaultURL

        public void openDefaultURL()
      • waitForMilliSeconds

        public void waitForMilliSeconds​(long milliSeconds)
      • waitForSeconds

        public void waitForSeconds​(int seconds)
      • shouldOpenURL

        public boolean shouldOpenURL()
      • 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.