Interface FluentPageControl

All Superinterfaces:
AlertControl, AwaitControl, CapabilitiesControl, ChromiumControl, ComponentInstantiator, Configuration, ConfigurationMutator, ConfigurationProperties, CssControl, EventsControl, FluentControl, FluentInjectControl, InputControl, JavascriptControl, NavigationControl, PerformanceTimingControl, SearchControl<FluentWebElement>, SeleniumDriverControl, SnapshotControl
All Known Implementing Classes:
FluentPage

public interface FluentPageControl extends FluentControl
Provides controls for a Page Object.
See Also:
  • Method Details

    • getUrl

      String getUrl()
      Gets the URL of the page. It can contain mandatory parameters {param} and optional parameters {?param1}.
      Returns:
      page URL
    • getUrl

      String getUrl (Object... parameters)
      URL of the page, after replacing parameters with given values.
      Parameters:
      parameters - parameter values
      Returns:
      Effective url generated for given parameter values
      Throws:
      IllegalArgumentException - if some required parameters are missing
    • isAt

      void isAt()
      Check if the browser is on this page.
    • isAt

      void isAt (Object... parameters)
      Check if the browser is on this page, after replacing parameters with given values.
      Parameters:
      parameters - list of parameters
    • go

      <P extends FluentPage> P go()
      Go to the url defined in the page
      Type Parameters:
      P - the fluent page
      Returns:

      FluentPage object

    • go

      <P extends FluentPage> P go (Object... params)
      Got to the url defined in the page, using given parameters.
      Type Parameters:
      P - the fluent page
      Parameters:
      params - page url parameter values
      Returns:

      FluentPage object

      Throws:
      IllegalArgumentException - if some required parameters are missing
    • parseUrl

      ParsedUrlTemplate parseUrl()
      Get the parameter values of page URL extracted from current URL.
      Returns:
      parameter values
    • parseUrl

      ParsedUrlTemplate parseUrl (String url)
      Get the parameter values of page URL extracted from given URL.
      Parameters:
      url - url to parse
      Returns:
      parameter values