HumHub Documentation (unofficial)

EventFiringWebElement
in package
implements WebDriverElement, WebDriverLocatable

Table of Contents

Interfaces

WebDriverElement
Interface for an HTML element in the WebDriver framework.
WebDriverLocatable
Interface representing basic mouse operations.

Properties

$dispatcher  : WebDriverDispatcher
$element  : WebDriverElement

Methods

__construct()  : mixed
clear()  : $this
If this element is a TEXTAREA or text INPUT element, this will clear the value.
click()  : $this
Click this element.
equals()  : bool
Test if two element IDs refer to the same DOM element.
findElement()  : EventFiringWebElement
Find the first WebDriverElement within this element using the given mechanism.
findElements()  : array<string|int, mixed>
Find all WebDriverElements within this element using the given mechanism.
getAttribute()  : string
Get the value of the given attribute of the element.
getCoordinates()  : WebDriverCoordinates
getCSSValue()  : string
Get the value of a given CSS property.
getDispatcher()  : WebDriverDispatcher
getElement()  : WebDriverElement
getID()  : string
Get the opaque ID of the element.
getLocation()  : WebDriverPoint
Get the location of element relative to the top-left corner of the page.
getLocationOnScreenOnceScrolledIntoView()  : WebDriverPoint
Try scrolling the element into the view port and return the location of element relative to the top-left corner of the page afterwards.
getShadowRoot()  : mixed
getSize()  : WebDriverDimension
Get the size of element.
getTagName()  : string
Get the tag name of this element.
getText()  : string
Get the visible (i.e. not hidden by CSS) innerText of this element, including sub-elements, without any leading or trailing whitespace.
isDisplayed()  : bool
Is this element displayed or not? This method avoids the problem of having to parse an element's "style" attribute.
isEnabled()  : bool
Is the element currently enabled or not? This will generally return true for everything but disabled input elements.
isSelected()  : bool
Determine whether or not this element is selected or not.
sendKeys()  : $this
Simulate typing into an element, which may set its value.
submit()  : $this
If this current element is a form, or an element within a form, then this will be submitted to the remote server.
takeElementScreenshot()  : mixed
dispatch()  : mixed
dispatchOnException()  : mixed
newElement()  : static

Properties

Methods

getAttribute()

Get the value of the given attribute of the element.

public getAttribute(string $attribute_name) : string
Parameters
$attribute_name : string
Tags
throws
WebDriverException
Return values
string

getCSSValue()

Get the value of a given CSS property.

public getCSSValue(string $css_property_name) : string
Parameters
$css_property_name : string
Tags
throws
WebDriverException
Return values
string

getText()

Get the visible (i.e. not hidden by CSS) innerText of this element, including sub-elements, without any leading or trailing whitespace.

public getText() : string
Tags
throws
WebDriverException
Return values
string

isDisplayed()

Is this element displayed or not? This method avoids the problem of having to parse an element's "style" attribute.

public isDisplayed() : bool
Tags
throws
WebDriverException
Return values
bool

isEnabled()

Is the element currently enabled or not? This will generally return true for everything but disabled input elements.

public isEnabled() : bool
Tags
throws
WebDriverException
Return values
bool

sendKeys()

Simulate typing into an element, which may set its value.

public sendKeys(mixed $value) : $this
Parameters
$value : mixed
Tags
throws
WebDriverException
Return values
$this

submit()

If this current element is a form, or an element within a form, then this will be submitted to the remote server.

public submit() : $this
Tags
throws
WebDriverException
Return values
$this

takeElementScreenshot()

public takeElementScreenshot([mixed $save_as = null ]) : mixed
Parameters
$save_as : mixed = null

dispatch()

protected dispatch(mixed $method, mixed ...$arguments) : mixed
Parameters
$method : mixed
$arguments : mixed

        
On this page

Search results