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

Class LoginFormElement

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

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 LoginFormElement extends TestBenchElement

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

  • Constructor Details

    • LoginFormElement

      public LoginFormElement()
  • Method Details

    • getUsernameField

      public TextFieldElement getUsernameField()
    • getPasswordField

      public PasswordFieldElement getPasswordField()
    • getSubmitButton

      public ButtonElement getSubmitButton()
    • getForgotPasswordButton

      public ButtonElement getForgotPasswordButton()
    • submit

      public void submit()

      Specified by:

      submit in interface org.openqa.selenium.WebElement

      Overrides:

      submit in class TestBenchElement

    • forgotPassword

      public void forgotPassword()
    • getFormTitle

      public String getFormTitle()
    • getErrorComponent

      public TestBenchElement getErrorComponent()
    • 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.