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.
    default ChartLocator
    use(Chart component)
    Returns a locator seeded with the given Chart 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(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