Class RenderPageLoaded

  • All Implemented Interfaces:
    Renderer

    public class RenderPageLoaded
    extends RenderElement
    Render one element using selenium's expectedCondition. Just annotate your PageObject with {code}
    Author:
    Paul.Brodner
    • Constructor Detail

      • RenderPageLoaded

        public RenderPageLoaded()
    • Method Detail

      • doWork

        protected void doWork​(org.openqa.selenium.By locator,
                              WebBrowser browser,
                              long timeOutInSeconds)
        Description copied from class: RenderElement
        This will perform the actual action of rendering the element
        Specified by:
        doWork in class RenderElement
      • domEventCompleted

        public java.lang.String domEventCompleted​(WebBrowser browser)
        Checks if page event action completed. For further information see: {@link http://w3c.github.io/navigation-timing/}
        Returns:
        String time took to complete event
      • waitForPageLoad

        public void waitForPageLoad​(WebBrowser browser,
                                    long timeOutInSeconds)
        Wait document.readyState to return completed.
        Parameters:
        timeOutInSeconds - time duration