Class RedirectPage

    • Constructor Detail

      • RedirectPage

        public RedirectPage​(CharSequence url)
        Constructor. The page will immediately redirect to the given url.
        Parameters:
        url - The url to redirect to
      • RedirectPage

        public RedirectPage​(CharSequence url,
                            int waitBeforeRedirectInSeconds)
        Constructor. The page will redirect to the given url after waiting for the given number of seconds.
        Parameters:
        url - The url to redirect to
        waitBeforeRedirectInSeconds - The number of seconds the browser should wait before redirecting
      • RedirectPage

        public RedirectPage​(Page page)
        Construct. The page will redirect to the given Page.
        Parameters:
        page - The page to redirect to.
      • RedirectPage

        public RedirectPage​(Page page,
                            int waitBeforeRedirectInSeconds)
        Construct. The page will redirect to the given Page after waiting for the given number of seconds.
        Parameters:
        page - The page to redirect to.
        waitBeforeRedirectInSeconds - The number of seconds the browser should wait before redirecting