Class AbstractPage<SELF>

    • Field Detail

      • pageFactory

        protected static final PageFactory pageFactory
    • Constructor Detail

      • AbstractPage

        public AbstractPage()
    • Method Detail

      • findById

        protected UiElement findById​(java.lang.Object id)
      • findByQa

        protected UiElement findByQa​(java.lang.String qa)
      • find

        protected UiElement find​(org.openqa.selenium.By by)
      • findDeep

        protected UiElement findDeep​(org.openqa.selenium.By by)
      • createEmpty

        protected UiElement createEmpty()
      • checkPage

        @Deprecated
        public final void checkPage()
        Deprecated.
        Don't call this method on your own and use PageFactory.create(Class, WebDriver) or PageAssertions.displayed(boolean) instead
        The call of this method is injected into the constructor of every page class or must be called from every page class constructor!!! If there are several subclasses each calling checkPage, it will be only called from the class of the calling instance.
      • getName

        public abstract java.lang.String getName​(boolean detailed)
        Specified by:
        getName in interface eu.tsystems.mms.tic.testframework.internal.Nameable<SELF>
      • checkPagePreparation

        protected void checkPagePreparation()
        Allows pages to run code before performing checkpage
      • pageLoaded

        protected void pageLoaded()
      • checkPageErrorState

        protected void checkPageErrorState​(java.lang.Throwable throwable)
                                    throws java.lang.Throwable
        Method entered when checkPage runs into an error (catching any throwable). You can throw a new throwable that should be stacked onto the checkpage error (like new RuntimeException("bla", throwable) ).
        Parameters:
        throwable - .
        Throws:
        java.lang.Throwable - .
      • addCustomFieldActions

        protected java.util.Optional<java.util.List<AbstractFieldAction>> addCustomFieldActions​(java.lang.reflect.Field field,
                                                                                                AbstractPage declaringPage)
      • assertPageIsShown

        @Deprecated
        public void assertPageIsShown()
        Deprecated.
        Empty method to be overriden. Can perform some (additional) checks on page objects.
      • assertPageIsNotShown

        @Deprecated
        public void assertPageIsNotShown()
        Deprecated.
      • createComponent

        protected <T extends Component> T createComponent​(java.lang.Class<T> componentClass,
                                                          UiElement rootElement)
      • createPage

        public <T extends Page> T createPage​(java.lang.Class<T> pageClass)
        Specified by:
        createPage in interface PageCreator
      • waitForPage

        public <T extends Page> java.util.Optional<T> waitForPage​(java.lang.Class<T> pageClass,
                                                                  int seconds)
        Specified by:
        waitForPage in interface PageCreator