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

Class LoginOverlayElement

java.lang.Object
com.vaadin.testbench.TestBenchElement
com.vaadin.flow.component.login.testbench.LoginOverlayElement

All Implemented Interfaces:

CanCompareScreenshots, HasCallFunction, HasDriver, HasElementQuery, HasPropertySettersGetters, HasSearchContext, HasTestBenchCommandExecutor, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsElement

public class LoginOverlayElement extends TestBenchElement

TestBench element for the <vaadin-login-overlay> element

  • Constructor Details

    • LoginOverlayElement

      public LoginOverlayElement()
  • Method Details

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

      public PasswordFieldElement getPasswordField()
    • getSubmitButton

      public ButtonElement getSubmitButton()
    • getForgotPasswordButton

      public ButtonElement getForgotPasswordButton()
    • getErrorComponent

      public TestBenchElement getErrorComponent()
    • submit

      public void submit()

      Specified by:

      submit in interface org.openqa.selenium.WebElement

      Overrides:

      submit in class 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 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()

      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.