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.internal.WrapsElement, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement
public class LoginOverlayElement extends TestBenchElement
TestBench element for the
<vaadin-login-overlay>
element
-
-
Constructor Summary
Constructors Constructor and Description LoginOverlayElement()
-
Method Summary
All Methods Modifier and Type Method and Description void
forgotPassword()
Provide a shortcut for clicking the forgot password button
String
getAdditionalInformation()
Return the additional information placed in a footer of the login element
String
getDescription()
Returns the description displayed in the login element
TestBenchElement
getErrorComponent()
Return the error component
String
getErrorMessage()
Return the error message text.
String
getErrorMessageTitle()
Return the error message title.
ButtonElement
getForgotPasswordButton()
Return the forgot password button
String
getFormTitle()
Return the form title of the login element
LoginFormElement
getLoginForm()
Returns the login form, the actual container of native html form
TestBenchElement
getLoginOverlayWrapper()
Returns the container of the branding and form area
PasswordFieldElement
getPasswordField()
Return the password field
ButtonElement
getSubmitButton()
Return the log in button
String
getTitle()
Returns the title displayed in the login overlay element
TestBenchElement
getTitleComponent()
Returns the title component which is set into the title slot of the login element.
TextFieldElement
getUsernameField()
Return the username field
boolean
hasTitleComponent()
Checks if anything was set into the title slot
boolean
isEnabled()
Returns whether the Vaadin component, that this element represents, is enabled or not.
boolean
isOpened()
void
submit()
Provide a shortcut for clicking the submit button
-
Methods inherited from class com.vaadin.testbench.TestBenchElement
callFunction, clear, click, click, compareScreen, compareScreen, compareScreen, contextClick, dispatchEvent, doubleClick, equals, executeScript, findElement, findElements, focus, getAttribute, getCapabilities, getClassNames, getCommandExecutor, getContext, getCssValue, getDriver, getLocation, getProperty, getPropertyBoolean, getPropertyDouble, getPropertyElement, getPropertyElements, getPropertyInteger, getPropertyString, getRect, getScreenshotAs, getSize, getTagName, getText, getWrappedElement, hasAttribute, hasClassName, hashCode, init, init, isChrome, isDisplayed, isFirefox, isIE, isSelected, scroll, scrollIntoView, scrollLeft, sendKeys, setProperty, setProperty, setProperty, setProperty, waitForVaadin, waitUntil, waitUntil, wrap, wrapElement, wrapElements
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.testbench.HasElementQuery
$, $
-
-
-
-
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
-
getPasswordField
public PasswordFieldElement getPasswordField()
Return the password 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 interfaceorg.openqa.selenium.WebElement
Overrides:
submit
in classTestBenchElement
-
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 interfaceorg.openqa.selenium.WebElement
Overrides:
isEnabled
in classTestBenchElement
Returns:
true if the component is enabled.
-
-