public abstract class AbstractHasTestBenchCommandExecutor extends Object implements HasTestBenchCommandExecutor
TestBenchElement and TestBenchTestCase. These classes have
their own search contexts to manage scoping element searches where needed.| Constructor and Description |
|---|
AbstractHasTestBenchCommandExecutor() |
| Modifier and Type | Method and Description |
|---|---|
<T extends AbstractElement> |
$(Class<T> clazz)
Prepare a
ElementQuery instance to use for locating components on
the client. |
<T extends AbstractElement> |
$$(Class<T> clazz)
Prepare a
ElementQuery instance to use for locating components on
the client. |
boolean |
isElementPresent(org.openqa.selenium.By by)
Returns true if a component can be found with given By selector.
|
boolean |
isElementPresent(Class<? extends AbstractElement> clazz)
Returns true if a component can be found.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCommandExecutorgetContextpublic <T extends AbstractElement> ElementQuery<T> $(Class<T> clazz)
ElementQuery instance to use for locating components on
the client. The returned object can be manipulated to uniquely identify
the sought-after object. If this function gets called through an element,
it uses the element as its search context. Otherwise the search context
is the driver.T - the type of the classclazz - AbstractElement subclass representing a Vaadin componentElementQuery instancepublic <T extends AbstractElement> ElementQuery<T> $$(Class<T> clazz)
ElementQuery instance to use for locating components on
the client. The returned object can be manipulated to uniquely identify
the sought-after object. If this function gets called through an element,
it uses the element as its search context. Otherwise the search context
is the driver.
This search is not recursive and can find the given hierarchy only if it
can be found as direct children of given context. The same can be done
with $(Foo.class).recursive(false) T - the type of the classclazz - AbstractElement subclass representing a Vaadin componentElementQuery instancepublic boolean isElementPresent(Class<? extends AbstractElement> clazz)
clazz - AbstractElement subclass representing a Vaadin componentpublic boolean isElementPresent(org.openqa.selenium.By by)
by - the selector used to find elementCopyright © 2012-2025 Vaadin Ltd. All Rights Reserved.