\WebDriverSearchContext

The interface for WebDriver and WebDriverElement which is able to search for WebDriverElement inside.

Summary

Methods
Constants
findElement()
findElements()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

findElement()

findElement(\WebDriverBy  $locator) : \WebDriverElement

Find the first WebDriverElement within this element using the given mechanism.

Parameters

\WebDriverBy $locator

Returns

\WebDriverElement —

NoSuchElementException is thrown in HttpCommandExecutor if no element is found.

findElements()

findElements(\WebDriverBy  $locator) : array

Find all WebDriverElements within this element using the given mechanism.

Parameters

\WebDriverBy $locator

Returns

array —

A list of all WebDriverElements, or an empty array if nothing matches