Class FluentPage

    • Constructor Detail

      • FluentPage

        public FluentPage()
        Creates a new fluent page.
      • FluentPage

        public FluentPage​(FluentControl control)
        Creates a new fluent page, using given fluent control.
        Parameters:
        control - fluent control
    • Method Detail

      • getUrl

        public java.lang.String getUrl()
        Description copied from interface: FluentPageControl
        URL of the page It can contains mandatory parameters {param} and optional parameters {param1}
        Specified by:
        getUrl in interface FluentPageControl
        Returns:
        page URL
      • getUrl

        public java.lang.String getUrl​(java.lang.Object... parameters)
        Description copied from interface: FluentPageControl
        URL of the page, after replacing parameters with given values.
        Specified by:
        getUrl in interface FluentPageControl
        Parameters:
        parameters - parameter values
        Returns:
        Effective url generated for given parameter values
      • isAt

        public void isAt​(java.lang.Object... parameters)
        Description copied from interface: FluentPageControl
        Check if the browser is on this page, after replacing parameters with given values.
        Specified by:
        isAt in interface FluentPageControl
        Parameters:
        parameters - list of parameters
      • isAtUsingUrl

        protected void isAtUsingUrl​(java.lang.String urlTemplate)
        URL matching implementation for isAt().
        Parameters:
        urlTemplate - URL Template
      • isAtUsingSelector

        protected void isAtUsingSelector​(org.openqa.selenium.By by)
        Selector matching implementation for isAt().
        Parameters:
        by - by selector
      • go

        public <P extends FluentPage> P go​(java.lang.Object... params)
        Description copied from interface: FluentPageControl
        Got to the url defined in the page, using given parameters.
        Specified by:
        go in interface FluentPageControl
        Parameters:
        params - page url parameter values
        Returns:

        FluentPage object

      • parseUrl

        public ParsedUrlTemplate parseUrl​(java.lang.String url)
        Description copied from interface: FluentPageControl
        Get the parameter values of page URL extracted from given URL.
        Specified by:
        parseUrl in interface FluentPageControl
        Parameters:
        url - url to parse
        Returns:
        parameter values