메소드 |
설명 |
|
__call ( string $name, array $args ) : mixed |
Enables setAttribute and getAttribute methods be invoked through method missing. |
|
__construct ( WebDriver $driver, $elementId ) |
|
|
addClass ( string $class ) |
|
|
clear ( ) |
Clear current element's text |
|
click ( ) |
Click on element |
|
compareToOther ( WebElement $webElementCompare ) : boolean |
Test if two element refer to the same DOM element. |
|
describe ( ) : Array |
Gets element's description |
|
findElement ( By $locator, boolean $polling = false ) : Nearsoft\SeleniumClient\WebElement |
Find element within current element |
|
findElements ( By $locator, boolean $polling = false ) : Nearsoft\SeleniumClient\WebElement[] |
Find elements within current element |
|
getAttribute ( String $attributeName ) : String |
Gets element's specified attribute's value |
|
getCSSProperty ( string $propertyName ) : String |
Gets element's property CSS |
|
getCoordinates ( ) : Array |
Get element's coordinates |
|
getElementId ( ) : integer |
Gets element's id |
|
getElementSize ( ) : array |
Gets an element's size in pixels |
|
getLocationOnScreenOnceScrolledIntoView ( ) : Array |
Get element's coordinates after scrolling |
|
getTagName ( ) : String |
Gets element's tag name |
|
getText ( ) : String |
Gets element's visible text |
|
hasClass ( string $class ) |
|
|
isDisplayed ( ) : boolean |
Gets whether element is displayed |
|
isEnabled ( ) : boolean |
Gets whether element is enabled |
|
isSelected ( ) : boolean |
Gets whether element is selected |
|
removeClass ( string $class ) |
|
|
sendKeys ( String $text ) |
Send text to element |
|
setAttribute ( string $attributeName, string $value ) |
Sets element's specified attribute's value |
|
submit ( ) |
Submit form from element |
|
waitForElementUntilIsDisplayed ( integer $timeOutSeconds = 5 ) : Nearsoft\SeleniumClient\WebElement |
Wait for current element to be displayed |
|
waitForElementUntilIsEnabled ( integer $timeOutSeconds = 5 ) : Nearsoft\SeleniumClient\WebElement |
Wait for current element to be enabled |
|
waitForElementUntilIsPresent ( By $locator, integer $timeOutSeconds = 5 ) : mixed |
Wait for expected element to be present within current element |
|
waitForElementUntilIsPresentWithSpecificText ( By $locator, String $targetText, integer $timeOutSeconds = 5 ) : Nearsoft\SeleniumClient\WebElement |
Wait until current element's text equals specified |
|
waitForElementUntilTextIsChanged ( String $targetText, integer $timeOutSeconds = 5 ) : Nearsoft\SeleniumClient\WebElement |
Wait until current element's text has changed |
|