Package com.vaadin.browserless.locator
Interface GeneratedCommercialLocators
- All Known Subinterfaces:
CommercialLocators
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public interface GeneratedCommercialLocators
Generated mixin: per registered
ComponentTester it exposes a typed
find<Component>() entry that opens a fresh query, and a companion
use(<Component> component) entry that seeds a locator with a direct
reference to an already-resolved component. Both return the same
*Locator type, so chaining further filter steps and action methods
works identically.
Not consumed directly — extend it from your locator context mixin
(the one that implements activateLocatorContext()).
-
Method Summary
Modifier and TypeMethodDescriptionvoidHook for context-bound implementations to install Vaadin thread-locals before a locator is built.default ChartLocatorReturns a locator forChartcomponents.default ChartLocatorReturns a locator seeded with the givenChartinstance.
-
Method Details
-
activateLocatorContext
void activateLocatorContext()Hook for context-bound implementations to install Vaadin thread-locals before a locator is built. -
findChart
Returns a locator forChartcomponents.- Returns:
- a new
ChartLocator
-
use
Returns a locator seeded with the givenChartinstance. Additional filter steps compose on top of the identity predicate; usefindChart()when you want a query without an initial constraint.- Parameters:
component- the component to seed the locator with; must not benull- Returns:
- a new
ChartLocatorpre-bound tocomponent
-