ISearchContext
interface ISearchContext (View source)
All classes, that allow searching elements within them must implement this interface.
Methods
NodeElement|null
find(string $selector, string|array $locator)
Finds first element with specified selector.
NodeElement[]
findAll(string $selector, string|array $locator)
Finds all elements with specified selector.
mixed
waitFor(integer $timeout, callable $callback)
Waits for an element(-s) to appear and returns it.
Expectation
shouldReceive(string $name)
No description
Details
at line 32
NodeElement|null
find(string $selector, string|array $locator)
Finds first element with specified selector.
at line 42
NodeElement[]
findAll(string $selector, string|array $locator)
Finds all elements with specified selector.
at line 54
mixed
waitFor(integer $timeout, callable $callback)
Waits for an element(-s) to appear and returns it.