com.vaadin.flow.component.login.testbench.

Class LoginOverlayElement

    • Constructor Detail

      • LoginOverlayElement

        public LoginOverlayElement()
    • Method Detail

      • getLoginOverlayWrapper

        public 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()
      • getUsernameField

        public TextFieldElement getUsernameField()

        Return the username field

      • getSubmitButton

        public ButtonElement getSubmitButton()

        Return the log in button

      • getForgotPasswordButton

        public ButtonElement getForgotPasswordButton()

        Return the forgot password button

      • getErrorComponent

        public TestBenchElement getErrorComponent()

        Return the error component

      • submit

        public void submit()

        Provide a shortcut for clicking the submit button

        Specified by:

        submit in interface org.openqa.selenium.WebElement

        Overrides:

        submit in class TestBenchElement

      • forgotPassword

        public void forgotPassword()

        Provide a shortcut for clicking the forgot password button

      • 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 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()

        Return the form title of the login element

      • getErrorMessageTitle

        public String getErrorMessageTitle()

        Return the error message title. Returns empty string if the error message is not displayed

      • getErrorMessage

        public String getErrorMessage()

        Return the error message text. Returns empty string if the error message is not displayed

      • getAdditionalInformation

        public String getAdditionalInformation()

        Return the additional information placed in a footer of the login element

      • isEnabled

        public boolean isEnabled()

        Description copied from class: TestBenchElement

        Returns whether the Vaadin component, that this element represents, is enabled or not.

        Specified by:

        isEnabled in interface org.openqa.selenium.WebElement

        Overrides:

        isEnabled in class TestBenchElement

        Returns:

        true if the component is enabled.