public class UIComponent extends UIFinder
Modifier and Type | Field and Description |
---|---|
TestBenchElement |
element
The underlying Selenium Web element - the root element of this component.
|
Constructor and Description |
---|
UIComponent(TestBenchElement element) |
Modifier and Type | Method and Description |
---|---|
UICast |
as()
Use to cast this component to a more specific component.
|
protected List<WebElement> |
findAll(String id)
Finds all components matching given ID
|
String |
getErrorMessage()
Returns the error message associated with this component (if any).
|
String |
getHint()
Returns the hint message associated with this component (if any).
|
String |
getId()
Returns the PDS component ID, e.g.
|
String |
getModelingId()
Returns the full modelingID, e.g.
|
boolean |
isValid()
Checks if there are no validation errors attached to this component.
|
boolean |
isVisible()
Deprecated.
do not rely on visibility of UI components in your tests. Do not call this method, it always returns true.
|
String |
toHTML()
Returns this component as a HTML.
|
String |
toInnerHTML() |
String |
toString() |
$, clickButton, contains, find, getDriver, waitForVaadin
public final TestBenchElement element
protected List<WebElement> findAll(String id)
UIFinder
public String getModelingId()
getId()
, followed by two underscores '_'.public String getId()
public UICast as()
public String getErrorMessage()
public String getHint()
public boolean isValid()
getErrorMessage()
is null.public String toHTML()
public String toInnerHTML()
@Deprecated public boolean isVisible()
UIFinder.find(String)
method, which only works when the component
is actually visible and present in the DOM tree.Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.