Uses of Class
com.vaadin.testbench.unit.ComponentQuery
Packages that use ComponentQuery
-
Uses of ComponentQuery in com.vaadin.testbench.unit
Methods in com.vaadin.testbench.unit that return ComponentQueryModifier and TypeMethodDescription<T extends Component>
ComponentQuery<T>Gets a query object for finding a component inside the UI<T extends Component>
ComponentQuery<T>Gets a query object for finding a component nested inside the given component.<T extends Component>
ComponentQuery<T>Gets a query object for finding a component inside the current view<R extends Component>
ComponentQuery<R>Gets aComponentQuery
to search for component of the given type nested inside the wrapped component.Sets the context to search inside.<E extends Component>
ComponentQuery<E>Gets a newComponentQuery
to search for given component type on the context of the matching component at given index for current query.<E extends Component>
ComponentQuery<E>ComponentQuery.thenOnFirst
(Class<E> componentType) Gets a newComponentQuery
to search for given component type on the context of first matching component for current query.ComponentQuery.withAttribute
(String attribute) Requires the search to find components with the given attribute set, independently of its value.ComponentQuery.withAttribute
(String attribute, String value) Requires the search to find components having the given attribute with exactly the expected value.ComponentQuery.withCaption
(String caption) Requires the component to have a caption equal to the given text Concept of caption vary based on the component type.ComponentQuery.withCaptionContaining
(String text) Requires the component to have a caption containing the given text Concept of caption vary based on the component type.ComponentQuery.withClassName
(String... className) Requires the components to have all the given CSS class namesComponentQuery.withCondition
(Predicate<T> condition) Requires the components to satisfy the given condition.Requires the component to have the given idComponentQuery.withMaxResults
(int max) Requires the search to find at most the given number of componentsComponentQuery.withMinResults
(int min) Requires the search to find at least the given number of componentsComponentQuery.withoutAttribute
(String attribute) Requires the search to find components without the given attribute.ComponentQuery.withoutAttribute
(String attribute, String value) Requires the search to find components having the given attribute value different from the provided one, or to not have the attribute at all.ComponentQuery.withoutClassName
(String... className) Requires the components to have none of the given CSS class namesComponentQuery.withoutTheme
(String theme) Add theme that should not be available on the target component.<V> ComponentQuery<T>
ComponentQuery.withPropertyValue
(Function<T, V> getter, V expectedValue) Requires the given property to have expected value.ComponentQuery.withResultsSize
(int count) Requires the search to find exactly the given number of componentsComponentQuery.withResultsSize
(int min, int max) Requires the search to find a number of components within given rangeRequires the text content of the component to be equal to the given textComponentQuery.withTextContaining
(String text) Requires the text content of the component to contain the given textAdd theme that should be set on the target component.<V> ComponentQuery<T>
ComponentQuery.withValue
(V expectedValue) Requires the component to be an implementation ofHasValue
interface and to have exactly the given value.Method parameters in com.vaadin.testbench.unit with type arguments of type ComponentQueryModifier and TypeMethodDescriptionComponentTester.findAllByQuery
(Class<R> componentType, Consumer<ComponentQuery<R>> queryBuilder) Searches for nested components of the given type that matches the conditions set on the component query.ComponentTester.findByQuery
(Class<R> componentType, Consumer<ComponentQuery<R>> queryBuilder) Searches for a nested component of the given type that matches the conditions set on the component query.