class EventFiringWebElement implements WebDriverElement, WebDriverLocatable (View source)

Properties

protected WebDriverElement $element
protected WebDriverDispatcher $dispatcher

Methods

__construct(WebDriverElement $element, WebDriverDispatcher $dispatcher)

No description

dispatch(mixed $method)

No description

getElement()

No description

sendKeys(mixed $value)

No description

click()

No description

findElements(WebDriverBy $by)

No description

clear()

No description

string
getAttribute(string $attribute_name)

No description

string
getCSSValue(string $css_property_name)

No description

getLocation()

No description

getSize()

No description

string
getTagName()

No description

string
getText()

No description

bool
isDisplayed()

No description

bool
isEnabled()

No description

bool
isSelected()

No description

submit()

No description

string
getID()

No description

bool
equals(WebDriverElement $other)

Test if two element IDs refer to the same DOM element.

Details

__construct(WebDriverElement $element, WebDriverDispatcher $dispatcher)

No description

Parameters

WebDriverElement $element
WebDriverDispatcher $dispatcher

WebDriverDispatcher getDispatcher()

No description

Return Value

WebDriverDispatcher

protected dispatch(mixed $method)

No description

Parameters

mixed $method

WebDriverElement getElement()

No description

Return Value

WebDriverElement

protected EventFiringWebElement newElement(WebDriverElement $element)

No description

Parameters

WebDriverElement $element

Return Value

EventFiringWebElement

WebDriverElement sendKeys(mixed $value)

No description

Parameters

mixed $value

The data to be typed.

Return Value

WebDriverElement

The current instance.

Exceptions

WebDriverException

WebDriverElement click()

No description

Return Value

WebDriverElement

The current instance.

Exceptions

WebDriverException

WebDriverElement findElement(WebDriverBy $by)

No description

Parameters

WebDriverBy $by

Return Value

WebDriverElement

NoSuchElementException is thrown in HttpCommandExecutor if no element is found.

Exceptions

WebDriverException

WebDriverElement[] findElements(WebDriverBy $by)

No description

Parameters

WebDriverBy $by

Return Value

WebDriverElement[]

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

Exceptions

WebDriverException

WebDriverElement clear()

No description

Return Value

WebDriverElement

The current instance.

Exceptions

WebDriverException

string getAttribute(string $attribute_name)

No description

Parameters

string $attribute_name

The name of the attribute.

Return Value

string

The value of the attribute.

Exceptions

WebDriverException

string getCSSValue(string $css_property_name)

No description

Parameters

string $css_property_name

The name of the CSS property.

Return Value

string

The value of the CSS property.

Exceptions

WebDriverException

WebDriverPoint getLocation()

No description

Return Value

WebDriverPoint

The location of the element.

Exceptions

WebDriverException

WebDriverPoint getLocationOnScreenOnceScrolledIntoView()

No description

Return Value

WebDriverPoint

The location of the element.

Exceptions

WebDriverException

WebDriverCoordinates getCoordinates()

No description

Return Value

WebDriverCoordinates

WebDriverDimension getSize()

No description

Return Value

WebDriverDimension

The dimension of the element.

Exceptions

WebDriverException

string getTagName()

No description

Return Value

string

The tag name.

Exceptions

WebDriverException

string getText()

No description

Return Value

string

The visible innerText of this element.

Exceptions

WebDriverException

bool isDisplayed()

No description

Return Value

bool

Exceptions

WebDriverException

bool isEnabled()

No description

Return Value

bool

Exceptions

WebDriverException

bool isSelected()

No description

Return Value

bool

Exceptions

WebDriverException

WebDriverElement submit()

No description

Return Value

WebDriverElement

The current instance.

Exceptions

WebDriverException

string getID()

No description

Return Value

string

The opaque ID.

Exceptions

WebDriverException

bool equals(WebDriverElement $other)

Test if two element IDs refer to the same DOM element.

Parameters

WebDriverElement $other

Return Value

bool