public interface TestBenchElementCommands
| Modifier and Type | Method and Description |
|---|---|
void |
click(int x,
int y,
org.openqa.selenium.Keys... modifiers)
Clicks at the specified coordinates on an element while pressing possible
modifier keys.
|
void |
focus()
Set focus to this element.
|
void |
scroll(int scrollTop)
Scrolls the element down to the specified top value.
|
void |
scrollLeft(int scrollLeft)
Scrolls the element left to the specified left value.
|
void |
showTooltip()
Shows the tool tip of the specified element.
|
<T extends AbstractElement> |
wrap(Class<T> elementType)
Decorates the element with the specified Element type, making it possible
to use Vaadin component-specific API on elements found using standard
selenium API.
|
void focus()
void showTooltip()
void scroll(int scrollTop)
scrollTop - the new value for scrollTop.void scrollLeft(int scrollLeft)
scrollLeft - the new value for scrollLeft.void click(int x,
int y,
org.openqa.selenium.Keys... modifiers)
x - the offset from the left position of the elementy - the offset from the top position of the elementmodifiers - any modifier keys to press while clicking the element
(optional).<T extends AbstractElement> T wrap(Class<T> elementType)
Example:
WebElement e = driver.findElement(By.id("my-table"));
TableElement table = testBenchElement(e).wrap(TableElement.class);
assertEquals("Foo", table.getHeaderCell(1).getText());
T - The wrapper element type.elementType - The type (class) containing the API to decorate with. Must
extend
AbstractElement.Copyright © 2012-2025 Vaadin Ltd. All Rights Reserved.