Class LoginOverlayElement

  • All Implemented Interfaces:
    com.vaadin.testbench.commands.CanCompareScreenshots, com.vaadin.testbench.HasCallFunction, com.vaadin.testbench.HasDriver, com.vaadin.testbench.HasElementQuery, com.vaadin.testbench.HasPropertySettersGetters, com.vaadin.testbench.HasSearchContext, com.vaadin.testbench.HasTestBenchCommandExecutor, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsElement

    public class LoginOverlayElement
    extends com.vaadin.testbench.TestBenchElement
    TestBench element for the <vaadin-login-overlay> element
    • Constructor Detail

      • LoginOverlayElement

        public LoginOverlayElement()
    • Method Detail

      • getLoginOverlayWrapper

        public com.vaadin.testbench.TestBenchElement getLoginOverlayWrapper()
        Returns the container of the branding and form area
      • getLoginForm

        public LoginFormElement getLoginForm()
        Returns the login form, the actual container of native html form
      • isOpened

        public boolean isOpened()
      • getForgotPasswordButton

        public ButtonElement getForgotPasswordButton()
      • getErrorComponent

        public com.vaadin.testbench.TestBenchElement getErrorComponent()
      • submit

        public void submit()
        Specified by:
        submit in interface org.openqa.selenium.WebElement
        Overrides:
        submit in class com.vaadin.testbench.TestBenchElement
      • forgotPassword

        public void forgotPassword()
      • getTitle

        public String getTitle()
        Returns the title displayed in the login overlay element
      • getDescription

        public String getDescription()
        Returns the description displayed in the login element
      • hasTitleComponent

        public boolean hasTitleComponent()
        Checks if anything was set into the title slot
      • getTitleComponent

        public com.vaadin.testbench.TestBenchElement getTitleComponent()
        Returns the title component which is set into the title slot of the login element. If was not set returns null
      • getFormTitle

        public String getFormTitle()
      • getErrorMessageTitle

        public String getErrorMessageTitle()
      • getErrorMessage

        public String getErrorMessage()
      • getAdditionalInformation

        public String getAdditionalInformation()
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface org.openqa.selenium.WebElement
        Overrides:
        isEnabled in class com.vaadin.testbench.TestBenchElement