class SeleniumSelector implements SelectorInterface (View source)

Class for handling Selenium-style element selectors.

Properties

private CssSelector $_cssSelector Reference to CSS selector.
private Escaper $_xpathEscaper The XPath escaper.

Methods

__construct()

Creates instance of SeleniumSelector class.

string
translateToXPath(mixed $locator)

Translates provided locator into XPath.

Expectation
shouldReceive(string $name)

No description

Details

__construct()

Creates instance of SeleniumSelector class.

string translateToXPath(mixed $locator)

Translates provided locator into XPath.

Parameters

mixed $locator Current selector locator.

Return Value

string

Exceptions

ElementException When used selector is broken or not implemented.

Expectation shouldReceive(string $name)

Parameters

string $name

Return Value

Expectation