interface IElementLocator (View source)

Classes, that can search elements on a page must implement this interface.

Methods

getSearchContext()

Returns search context in use.

NodeElement|null
find()

Find the element.

NodeElement[]
findAll()

Find the element list.

string
__toString()

Returns string representation of a locator.

Expectation
shouldReceive(string $name)

No description

Details

ISearchContext getSearchContext()

Returns search context in use.

Return Value

ISearchContext

NodeElement|null find()

Find the element.

Return Value

NodeElement|null

NodeElement[] findAll()

Find the element list.

Return Value

NodeElement[]

string __toString()

Returns string representation of a locator.

Return Value

string

Expectation shouldReceive(string $name)

Parameters

string $name

Return Value

Expectation