lib/WebDriverExpectedCondition.php
public static function presenceOfAllElementsLocatedBy(WebDriverBy $by)
    {
        return new static(
            function (WebDriver $driver) use ($by) {
                $elements = $driver->findElements($by);

                return count($elements) > 0 ? $elements : null;
            }
        );
    }
public static function presenceOfAllElementsLocatedBy(WebDriverBy $by)
    {
        return new static(
            function (WebDriver $driver) use ($by) {
                $elements = $driver->findElements($by);

                return count($elements) > 0 ? $elements : null;
            }
        );
    }
public static function presenceOfAllElementsLocatedBy ( WebDriverBy $ by ) { return new static ( function ( WebDriver $ driver ) use ( $ by ) { $ elements = $ driver -> findElements ( $ by ) ; return count ( $ elements ) > 0 ? $ elements : null ; } ) ; }
An expectation for checking that there is at least one element present on a web page.

@param WebDriverBy $by The locator used to find the element.
@return static Condition return an array of WebDriverElement once they are located.
An expectation for checking that there is at least one element present on a web page .