SeleniumClient\WebDriver
Synopsis
class WebDriver
{
- // members
- private $_hubUrl;
- private $_sessionId;
- private $_screenshotsDirectory;
- private $_environment;
- private $_capabilities;
- // methods
- public void __construct()
- public void setEnvironment()
- public String getEnvironment()
- public String getHubUrl()
- public Integer getSessionId()
- public String getScreenShotsDirectory()
- public void setScreenShotsDirectory()
- public TargetLocator switchTo()
- private void startSession()
- private Array setCapabilities()
- public Array getCurrentSessions()
- public Array getCapabilities()
- public void quit()
- public void get()
- public String getCurrentPageUrl()
- public void setImplicitWait()
- public Array status()
- public void forward()
- public void back()
- public void refresh()
- public String pageSource()
- public String title()
- public string screenshot()
- public WebElement findElement()
- public Array findElements()
- public WebElement getActiveElement()
- public WebElement waitForElementUntilIsPresent()
- public boolean waitForElementUntilIsNotPresent()
- public void webElementSendKeys()
- private array getCharArray()
- public String webElementGetText()
- public String webElementGetTagName()
- public String webElementGetAttribute()
- public boolean webElementIsSelected()
- public boolean webElementIsDisplayed()
- public boolean webElementIsEnabled()
- public void webElementClear()
- public void webElementClick()
- public void webElementSubmit()
- public Array webElementDescribe()
- public WebElement webElementFindElement()
- public WebElement webElementFindElements()
- public Array webElementGetCoordinates()
- public Array webElementGetLocationOnScreenOnceScrolledIntoView()
- public void setAsyncScriptTimeout()
- private String executeScriptInternal()
- public String executeScript()
- public String executeAsyncScript()
- public void getFrame()
- public void getWindow()
- public void closeCurrentWindow()
- public String getCurrentWindowHandle()
- public Array getCurrentWindowHandles()
- public void setCurrentWindowSize()
- public void setWindowSize()
- public Array getCurrentWindowSize()
- public Array getWindowSize()
- public void setCurrentWindowPosition()
- public void setWindowPosition()
- public Array getCurrentWindowPosition()
- public Array getWindowPosition()
- public void setCookie()
- public Array getCurrentCookies()
- public void clearCookie()
- public void clearCurrentCookies()
- public void dismissAlert()
- public void acceptAlert()
- public String getAlertText()
- public void setAlertValue()
Members
private
- $_capabilities
- $_environment
- $_hubUrl
- $_screenshotsDirectory
- $_sessionId
Methods
private
- executeScriptInternal() — Executes javascript on page
- getCharArray() — Returns array of chars from String
- setCapabilities()
- startSession() — Starts new Selenium session
public
- __construct()
- acceptAlert() — Sends true to current alert
- back() — Navigate back in history
- clearCookie() — Remove cookies
- clearCurrentCookies() — Removes all current cookies
- closeCurrentWindow() — Closes current window
- dismissAlert() — Sends false to current alert
- executeAsyncScript() — Execute async javascript on page
- executeScript() — Executes javascript on page
- findElement() — Gets an element within current page
- findElements() — Gets elements within current page
- forward() — Navigate forward in history
- get() — Navigates to specified url
- getActiveElement() — Gets element that is currenly focused
- getAlertText() — Gets current alert's text
- getCapabilities() — Gets actual capabilities
- getCurrentCookies() — Gets current cookies
- getCurrentPageUrl() — Gets current url
- getCurrentSessions() — Gets information on current selenium sessions
- getCurrentWindowHandle() — Gets current window's identifier
- getCurrentWindowHandles() — Gets a list of available windows in current session
- getCurrentWindowPosition() — Gets current window's position
- getCurrentWindowSize() — Gets current window's size
- getEnvironment() — Get current Selenium environment
- getFrame() — Focus on specified frame
- getHubUrl() — Get current Selenium Hub url
- getScreenShotsDirectory() — Get default screenshots directory
- getSessionId() — Get assigned session id
- getWindow() — Changes focus to specified window
- getWindowPosition() — Gets specified window's position
- getWindowSize() — Gets specified window's size
- pageSource() — Gets current page source
- quit() — Removes current session
- refresh() — Refreshes current page
- screenshot() — Takes screenshot of current screen, saves it in specified default directory or as specified in parameter
- setAlertValue() — Sends text to alert input
- setAsyncScriptTimeout() — Set's Async Script timeout
- setCookie() — Sets cookie
- setCurrentWindowPosition() — Sets current window's position
- setCurrentWindowSize() — Sets current window size
- setEnvironment() — Set whether production or testing mode for library
- setImplicitWait() — Sets default time for selenium to wait for an element to be present
- setScreenShotsDirectory() — Sets default screenshots directory for files to be stored in
- setWindowPosition() — Sets specified window's position
- setWindowSize() — Sets specified window's size
- status() — Get current server's status
- switchTo() — Creates new target locator to be handled
- title() — Gets current page title
- waitForElementUntilIsNotPresent() — Stops the process until an element is not found
- waitForElementUntilIsPresent() — Stops the process until an element is found
- webElementClear() — Clear element's value
- webElementClick() — Clicks on an element
- webElementDescribe() — Gets element's description
- webElementFindElement() — Find an element within another element
- webElementFindElements() — Find elements within another element
- webElementGetAttribute() — Gets element's specified attribute
- webElementGetCoordinates() — Gets element's coordinates
- webElementGetLocationOnScreenOnceScrolledIntoView() — Gets element's coordinates after scrolling
- webElementGetTagName() — Gets element's tag name
- webElementGetText() — Gets element's visible text
- webElementIsDisplayed() — Gets whether an element is currently displayed
- webElementIsEnabled() — Gets whether an element is currently enabled
- webElementIsSelected() — Gets whether an element is selected
- webElementSendKeys() — Send text to element
- webElementSubmit() — Execute form submit from element