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 DashboardLocatorReturns a locator forDashboardcomponents.default <Y> GridProLocator<Y> findGridPro(Class<Y> yType) Returns a locator forGridProcomponents.default ChartLocatorReturns a locator seeded with the givenChartinstance.default DashboardLocatorReturns a locator seeded with the givenDashboardinstance.default <Y> GridProLocator<Y> Returns a locator seeded with the givenGridProinstance.
-
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
-
findDashboard
Returns a locator forDashboardcomponents.- Returns:
- a new
DashboardLocator
-
use
Returns a locator seeded with the givenDashboardinstance. Additional filter steps compose on top of the identity predicate; usefindDashboard()when you want a query without an initial constraint.- Parameters:
component- the component to seed the locator with; must not benull- Returns:
- a new
DashboardLocatorpre-bound tocomponent
-
findGridPro
Returns a locator forGridProcomponents.- Type Parameters:
Y- type parameter forwarded to the locator- Parameters:
yType-Classwitness forY- Returns:
- a new
GridProLocator
-
use
Returns a locator seeded with the givenGridProinstance. Additional filter steps compose on top of the identity predicate; usefindGridPro(java.lang.Class)when you want a query without an initial constraint.- Type Parameters:
Y- type parameter carried bycomponent- Parameters:
component- the component to seed the locator with; must not benull- Returns:
- a new
GridProLocatorpre-bound tocomponent
-