java.lang.Object
org.uitnet.testing.smartfwk.ui.core.config.webbrowser.WebBrowser

public class WebBrowser
extends Object
This is class used to perform operation on the web browser and its web pages.
Author:
Madhav Krishna
  • Constructor Details

  • Method Details

    • getWindowSize

      public Dimension getWindowSize()
    • getAppName

      public String getAppName()
    • getAppConfig

      public AppConfig getAppConfig()
    • getTestConfigManager

      public TestConfigManager getTestConfigManager()
    • getId

      public String getId()
    • getSeleniumWebDriver

      public org.openqa.selenium.WebDriver getSeleniumWebDriver()
    • getWebBrowserType

      public WebBrowserType getWebBrowserType()
    • getSikuliScreen

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

      public void openURL​(String url)
    • openDefaultURL

      public void openDefaultURL()
    • isNewInstance

      public boolean isNewInstance()
      Returns true if this object is created first time else it will return false.
      Returns:
    • setNewInstance

      public void setNewInstance​(boolean newInstance)
      NOTE: This API is used by WebBrowserFactory class. Please avoid to use this api other places. Sets the flag to indicate weather the returning object is a new object or the existing object. Based on that Framework will do the automatic login.
      Parameters:
      newInstance -
    • waitForMilliSeconds

      public void waitForMilliSeconds​(long milliSeconds)
    • waitForSeconds

      public void waitForSeconds​(int seconds)
    • getOSName

      public String getOSName()
      Returns the operating system name.
      Returns:
      the operating system name.
    • getOSShortName

      public String getOSShortName()
      Returns the operating system short name i.e. windows, linux
      Returns:
      the operating system short name.
    • 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.
    • quit

      public void quit()
      Closes web browser window.