$executor
$executor : \RemoteExecuteMethod
Represents an HTML element.
$executor : \RemoteExecuteMethod
$fileDetector : \UselessFileDetector
__construct(\RemoteExecuteMethod $executor, string $id)
| \RemoteExecuteMethod | $executor | |
| string | $id |
clear() : \RemoteWebElement
If this element is a TEXTAREA or text INPUT element, this will clear the value.
The current instance.
click() : \RemoteWebElement
Click this element.
The current instance.
findElement(\WebDriverBy $by) : \RemoteWebElement
Find the first WebDriverElement within this element using the given mechanism.
| \WebDriverBy | $by |
NoSuchElementException is thrown in HttpCommandExecutor if no element is found.
findElements(\WebDriverBy $by) : array<mixed,\RemoteWebElement>
Find all WebDriverElements within this element using the given mechanism.
| \WebDriverBy | $by |
A list of all WebDriverElements, or an empty array if nothing matches
getLocation() : \WebDriverPoint
Get the location of element relative to the top-left corner of the page.
The location of the element.
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.
The location of the element.
getCoordinates() : \WebDriverCoordinates
getSize() : \WebDriverDimension
Get the size of element.
The dimension of the element.
sendKeys(mixed $value) : \RemoteWebElement
Simulate typing into an element, which may set its value.
| mixed | $value | The data to be typed. |
The current instance.
setFileDetector(\FileDetector $detector) : \RemoteWebElement
Set the fileDetector in order to let the RemoteWebElement to know that you are going to upload a file.
Bascially, if you want WebDriver trying to send a file, set the fileDector to be LocalFileDetector. Otherwise, keep it UselessFileDetector.
eg. $element->setFileDetector(new LocalFileDetector);
| \FileDetector | $detector |
submit() : \RemoteWebElement
If this current element is a form, or an element within a form, then this will be submitted to the remote server.
The current instance.
equals(\WebDriverElement $other) : boolean
Test if two element IDs refer to the same DOM element.
| \WebDriverElement | $other |
newElement(string $id) : \RemoteWebElement
Return the WebDriverElement with $id
| string | $id |