Interface SearchContextTestEnricher


public interface SearchContextTestEnricher
The test enricher taking account there is SearchContext linked to the enriched object. Usually the SearchContext is given by WebDriver or WebElement instance.
Author:
Juraj Huska, Jan Papousek, Matous Jobanek
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    enrich(org.openqa.selenium.SearchContext searchContext, Object target)
    Performs enrichment on the given object with the given SearchContext.
    int
    Returns the enricher precedence.
    resolve(org.openqa.selenium.SearchContext searchContext, Method method, Object[] resolvedParams)
    Performs resolve for the given method with the given SearchContext.
  • Method Details

    • enrich

      void enrich(org.openqa.selenium.SearchContext searchContext, Object target)
      Performs enrichment on the given object with the given SearchContext.
      Parameters:
      searchContext - the context which should be used for enrichment
      target - instance to be enriched
    • resolve

      Object[] resolve(org.openqa.selenium.SearchContext searchContext, Method method, Object[] resolvedParams)
      Performs resolve for the given method with the given SearchContext.
      Parameters:
      searchContext - the context which should be used for resolve
      method - method to be resolved
      resolvedParams - parameters that has (not) been resolved so far
    • getPrecedence

      int getPrecedence()
      Returns the enricher precedence. Zero precedence is is the lowest one.