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 Type
    Method
    Description
    void
    Hook for context-bound implementations to install Vaadin thread-locals before a locator is built.
    default ChartLocator
    Returns a locator for Chart components.
    Returns a locator for Dashboard components.
    default <Y> GridProLocator<Y>
    findGridPro(Class<Y> yType)
    Returns a locator for GridPro components.
    default ChartLocator
    use(com.vaadin.flow.component.charts.Chart component)
    Returns a locator seeded with the given Chart instance.
    use(com.vaadin.flow.component.dashboard.Dashboard component)
    Returns a locator seeded with the given Dashboard instance.
    default <Y> GridProLocator<Y>
    use(com.vaadin.flow.component.gridpro.GridPro<Y> component)
    Returns a locator seeded with the given GridPro instance.
  • Method Details

    • activateLocatorContext

      void activateLocatorContext()
      Hook for context-bound implementations to install Vaadin thread-locals before a locator is built.
    • findChart

      default ChartLocator findChart()
      Returns a locator for Chart components.
      Returns:
      a new ChartLocator
    • use

      default ChartLocator use(com.vaadin.flow.component.charts.Chart component)
      Returns a locator seeded with the given Chart instance. Additional filter steps compose on top of the identity predicate; use findChart() when you want a query without an initial constraint.
      Parameters:
      component - the component to seed the locator with; must not be null
      Returns:
      a new ChartLocator pre-bound to component
    • findDashboard

      default DashboardLocator findDashboard()
      Returns a locator for Dashboard components.
      Returns:
      a new DashboardLocator
    • use

      default DashboardLocator use(com.vaadin.flow.component.dashboard.Dashboard component)
      Returns a locator seeded with the given Dashboard instance. Additional filter steps compose on top of the identity predicate; use findDashboard() when you want a query without an initial constraint.
      Parameters:
      component - the component to seed the locator with; must not be null
      Returns:
      a new DashboardLocator pre-bound to component
    • findGridPro

      default <Y> GridProLocator<Y> findGridPro(Class<Y> yType)
      Returns a locator for GridPro components.
      Type Parameters:
      Y - type parameter forwarded to the locator
      Parameters:
      yType - Class witness for Y
      Returns:
      a new GridProLocator
    • use

      default <Y> GridProLocator<Y> use(com.vaadin.flow.component.gridpro.GridPro<Y> component)
      Returns a locator seeded with the given GridPro instance. Additional filter steps compose on top of the identity predicate; use findGridPro(java.lang.Class) when you want a query without an initial constraint.
      Type Parameters:
      Y - type parameter carried by component
      Parameters:
      component - the component to seed the locator with; must not be null
      Returns:
      a new GridProLocator pre-bound to component