Method |
Description |
|
__call ( string $name, array $args ) : mixed |
Enables Navigation's methods be invoked as navigationNameMethod
Example: navigationRefresh, navigationBack. |
|
__construct ( DesiredCapabilities $desiredCapabilities = null, String $host = "http://localhost", integer $port = 4444 ) |
|
|
addCookie ( $name, $value, null $path = null, null $domain = null, null $secure = null, null $expiry = null ) |
Delegated addCookies to Class Options |
|
close ( ) |
Closes current window |
|
deleteAllCookies ( ) |
Delegated method deleteAllCookies to Class Options |
|
deleteCookieNamed ( $cookieName ) |
Delegated method deleteCookieName to Class Options |
|
executeAsyncScript ( String $script, Array $args = null ) : String |
Execute async javascript on page |
|
executeScript ( String $script, Array $args = null ) : String |
Executes javascript on page |
|
findElement ( By $locator, boolean $polling = false, integer $elementId ) : Nearsoft\SeleniumClient\WebElement |
Gets an element within current page |
|
findElements ( By $locator, boolean $polling = false, integer $elementId ) : Nearsoft\SeleniumClient\WebElement[] |
Gets elements within current page |
|
get ( String $url ) |
Navigates to specified url |
|
getCapabilities ( ) : Array |
Gets actual capabilities |
|
getCookieNamed ( $cookieName ) |
Delegated method getCookieNamed to Class Options |
|
getCookies ( ) : Array |
Delegated getCookies to Class Options |
|
getCurrentSessions ( ) : Array |
Gets information on current selenium sessions |
|
getCurrentUrl ( ) : String |
Gets current url |
|
getEnvironment ( ) : String |
Get current Selenium environment |
|
getHttpClient ( ) : String |
Get HttpClient Object |
|
getHubUrl ( ) : String |
Get current Selenium Hub url |
|
getPageSource ( ) : String |
Gets current page source |
|
getScreenShotsDirectory ( ) : String |
Get default screenshots directory |
|
getSessionId ( ) : integer |
Get assigned session id |
|
getTitle ( ) : String |
Gets current page title |
|
getWindowHandle ( ) : String |
Gets current window's identifier |
|
getWindowHandles ( ) : Array |
Gets a list of available windows in current session |
|
manage ( ) : Nearsoft\SeleniumClient\Options |
Gets Options object |
|
navigate ( ) : Nearsoft\Selenium\Navigation |
Get Navigation object |
|
quit ( ) |
Removes current session |
|
screenshot ( String $overrideScreenshotsDirectory = null ) : string |
Takes screenshot of current screen, saves it in specified default directory or as specified in parameter |
|
setEnvironment ( String $value ) |
Set whether production or testing mode for library |
|
setNavigate ( $navigate ) |
Set Navigation |
|
setScreenShotsDirectory ( String $value ) |
Sets default screenshots directory for files to be stored in |
|
setSwitchTo ( $targetLocator ) |
Set Target Locator |
|
status ( ) : Array |
Get current server's status |
|
switchTo ( ) : Nearsoft\SeleniumClient\TargetLocator |
Creates new target locator to be handled |
|
waitForElementUntilIsNotPresent ( By $locator, integer $timeOutSeconds = 5 ) : boolean |
Stops the process until an element is not found |
|
waitForElementUntilIsPresent ( By $locator, integer $timeOutSeconds = 5 ) : Nearsoft\SeleniumClient\WebElement |
Stops the process until an element is found |
|