Interface PageLoader


  • public interface PageLoader
    Page Loader.
    Since:
    5.12
    • Method Detail

      • acceptProtocol

        boolean acceptProtocol​(java.lang.String protocol)
        Does this pageLoader accept the URL.
        Parameters:
        protocol - protocol such as http, https
        Returns:
        true if accepted, false otherwise
      • init

        void init​(PageResource pageResource)
        Initialize. PageLoader must be initialized before any method is called.
        Parameters:
        pageResource - the associated pageResource
      • getPage

        ContainerBean getPage​(ContainerBean.DataAccessUnit dataAccessUnit,
                              java.lang.String url,
                              java.util.Locale locale,
                              ResourceBundleLoader resourceBundleLoader)
        Get the page with the URL, which creates a root window.
        Parameters:
        dataAccessUnit - dataAccessUnit
        url - page URL that contains locale paraemters
        locale - the locale in which the page is rendered. If null, default to TestConfig.getLocale()
        resourceBundleLoader - resource bundle loader
        Returns:
        the root ContainerBean instance of root window.
      • close

        void close()
        Close this PageLoader and its associated resources.
      • getDriver

        java.lang.Object getDriver()
        Get platform-dependent driver. e.g. WebDriver for web.
        Returns:
        platform-dependent driver
        Since:
        5.13
      • getUserRegisterUtil

        UserRegisterUtil getUserRegisterUtil​(InstanceTypeTest instanceTypeTest)
        Get util for user registration.
        Returns:
        UserRegisterUtil object
        Since:
        5.14
      • getTextToSpeech

        TextToSpeech getTextToSpeech()
        Get the TextToSpeech object for text to voice.
        Returns:
        TextToSpeech object
        Since:
        5.21