Interface WebElementRetainer

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void findWebElement​(java.util.function.Consumer<org.openqa.selenium.WebElement> consumer)
      Supplies the first found filtered WebElement to a consumer.
    • Method Detail

      • findWebElement

        void findWebElement​(java.util.function.Consumer<org.openqa.selenium.WebElement> consumer)
        Supplies the first found filtered WebElement to a consumer. This makes sure that the element is present it it's current scope and not stale
        Throws:
        ElementNotFoundException - If the expected count of elements hasn't been found