public class PasswordFieldElement
extends com.vaadin.testbench.TestBenchElement
implements com.vaadin.testbench.HasStringValueProperty, com.vaadin.testbench.HasLabel, com.vaadin.testbench.HasPlaceholder, com.vaadin.testbench.HasHelper
<vaadin-password-field>
element.| Constructor and Description |
|---|
PasswordFieldElement() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPasswordVisible()
Checks whether the password is shown in clear text or is hidden from
view.
|
void |
sendKeys(CharSequence... keysToSend) |
void |
setPasswordVisible(boolean passwordVisible)
Sets whether the password should be shown in clear text or be hidden from
view.
|
void |
setValue(String string) |
callFunction, clear, click, click, compareScreen, compareScreen, compareScreen, contextClick, dispatchEvent, 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, isEnabled, isFirefox, isIE, isSelected, scroll, scrollIntoView, scrollLeft, setProperty, setProperty, setProperty, setProperty, submit, waitForVaadin, waitUntil, waitUntil, wrap, wrapElement, wrapElementsclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetProperty, getPropertyBoolean, getPropertyDouble, getPropertyElement, getPropertyElements, getPropertyInteger, getPropertyString, setProperty, setProperty, setProperty, setPropertypublic boolean isPasswordVisible()
true if the password is shown in clear text,
false if it is hidden from viewpublic void setPasswordVisible(boolean passwordVisible)
passwordVisible - true to show the password in clear text,
false to hide the password from viewpublic void setValue(String string)
setValue in interface com.vaadin.testbench.HasStringValuePropertypublic void sendKeys(CharSequence... keysToSend)
sendKeys in interface org.openqa.selenium.WebElementsendKeys in class com.vaadin.testbench.TestBenchElementCopyright © 2026. All rights reserved.