Uses of Class
com.vaadin.testbench.ElementQuery
-
Uses of ElementQuery in com.vaadin.testbench
Methods in com.vaadin.testbench that return ElementQueryModifier and TypeMethodDescriptiondefault <T extends TestBenchElement>
ElementQuery<T>Prepare a
ElementQuery
instance to use for locating components on the client.default ElementQuery<TestBenchElement>
Prepare a
ElementQuery
instance to use for locating components on the client.Deprecated.
ElementQuery.attributeContains
(String name, String word) Deprecated.
ElementQuery.context
(org.openqa.selenium.SearchContext searchContext) Sets the context to search inside.
ElementQuery.hasAttribute
(String name) Deprecated.
ElementQuery.onPage()
Defines that the query should start the search from the root of the page, in practice from the
<body>
tag.ElementQuery.withAttribute
(String attribute) Selects on elements having the given attribute.
ElementQuery.withAttribute
(String attribute, String value) Selects on elements with the given attribute having the given value.
ElementQuery.withAttribute
(String attribute, String value, ElementQuery.AttributeMatch.Comparison comparison) Selects on elements with the given attribute using the given comparison and value.
ElementQuery.withAttributeContaining
(String attribute, String text) Selects on elements with the given attribute containing the given text.
ElementQuery.withAttributeContainingWord
(String attribute, String word) Selects on elements with the given attribute containing the given word.
ElementQuery.withCaption
(String caption) Requires the element's caption (i.e., label, placeholder, or text label) to exactly match the given caption value.
ElementQuery.withCaption
(String text, BiPredicate<String, String> comparison) Requires the element's caption (i.e., label, placeholder, or text label) to satisfy the given comparison with the supplied text.
ElementQuery.withCaptionContaining
(String text) Requires the element's caption (i.e., label, placeholder, or text label) to partially match the given text value.
ElementQuery.withClassName
(String... classNames) Selects on elements having the given class names.
ElementQuery.withCondition
(Predicate<T> condition) Requires the element to satisfy the given condition.
Selects on elements having the given id.
Requires the element's label to exactly match the given label value.
ElementQuery.withLabel
(String text, BiPredicate<String, String> comparison) Requires the element's label to satisfy the given comparison with the supplied text.
ElementQuery.withLabelContaining
(String text) Requires the element's label to partially match the given text value.
ElementQuery.withoutAttribute
(String attribute) Selects on elements not having the given attribute.
ElementQuery.withoutAttribute
(String attribute, String value) Selects on elements not having the given attribute with the given value.
ElementQuery.withoutAttributeContaining
(String attribute, String text) Selects on elements not having the given attribute containing the given text.
ElementQuery.withoutAttributeContainingWord
(String attribute, String word) Selects on elements not having the given attribute containing the given word.
ElementQuery.withoutClassName
(String... classNames) Selects on elements not having the given class names.
ElementQuery.withoutTheme
(String theme) Selects on elements not having the given theme.
ElementQuery.withPlaceholder
(String placeholder) Requires the element's placeholder to exactly match the given placeholder value.
ElementQuery.withPlaceholder
(String text, BiPredicate<String, String> comparison) Requires the element's placeholder to satisfy the given comparison with the supplied text.
ElementQuery.withPlaceholderContaining
(String text) Requires the element's placeholder to partially match the given text value.
<V> ElementQuery<T>
ElementQuery.withPropertyValue
(Function<T, V> getter, V propertyValue) Requires the element's given property getter return value to equal the supplied value.
<V> ElementQuery<T>
ElementQuery.withPropertyValue
(Function<T, V> getter, V propertyValue, BiPredicate<V, V> comparison) Requires the element's given property getter return value to satisfy the given comparison with the supplied value.
Requires the element's text to exactly match the given text value.
ElementQuery.withText
(String text, BiPredicate<String, String> comparison) Requires the element's text to satisfy the given comparison with the supplied text.
ElementQuery.withTextContaining
(String text) Requires the element's text to partially match the given text value.
Selects on elements having the given theme.
withAttribute(String, String)