WebDriver Methods |
The WebDriver type exposes the following members.
Name | Description | |
---|---|---|
ActiveElement |
Returns the element with focus, or BODY if nothing has focus.
| |
AddArgument |
Add an argument to be appended to the command line to launch the browser.
| |
AddExtension |
Add an extension to the browser (For Firefox and Chrome only)
| |
CacheStatus |
Get the status of the html5 application cache.
| |
Close |
Closes the current window.
| |
Dispose |
Release the resources.
| |
ExecuteAsyncScript |
Execute an asynchronous piece of JavaScript in the context of the current frame or window.
| |
ExecuteScript |
Execute a piece of JavaScript in the context of the currently selected frame or window
| |
FindElement |
Find the first WebElement using the given method.
(Inherited from SearchContext.) | |
FindElementBy |
Finds the first child element matching the given mechanism and value.
(Inherited from SearchContext.) | |
FindElementByClass |
Finds the first element matching the specified CSS class.
(Inherited from SearchContext.) | |
FindElementByCss |
Finds the first element matching the specified CSS selector.
(Inherited from SearchContext.) | |
FindElementById |
Finds the first element matching the specified id.
(Inherited from SearchContext.) | |
FindElementByLinkText |
Finds the first element matching the specified link text.
(Inherited from SearchContext.) | |
FindElementByName |
Finds the first element matching the specified name.
(Inherited from SearchContext.) | |
FindElementByPartialLinkText |
Finds the first of elements that match the part of the link text supplied
(Inherited from SearchContext.) | |
FindElementByTag |
Finds the first element matching the specified tag name.
(Inherited from SearchContext.) | |
FindElementByXPath |
Finds the first element matching the specified XPath query.
(Inherited from SearchContext.) | |
FindElements |
Find all elements within the current context using the given mechanism.
(Inherited from SearchContext.) | |
FindElementsBy |
Finds all child elements matching the given mechanism and value.
(Inherited from SearchContext.) | |
FindElementsByClass |
Finds elements matching the specified CSS class.
(Inherited from SearchContext.) | |
FindElementsByCss |
Finds elements matching the specified CSS selector.
(Inherited from SearchContext.) | |
FindElementsById |
Finds elements matching the specified id.
(Inherited from SearchContext.) | |
FindElementsByLinkText |
Finds elements matching the specified link text.
(Inherited from SearchContext.) | |
FindElementsByName |
Finds elements matching the specified name.
(Inherited from SearchContext.) | |
FindElementsByPartialLinkText |
Finds the first of elements that match the part of the link text supplied
(Inherited from SearchContext.) | |
FindElementsByTag |
Finds elements matching the specified tag name.
(Inherited from SearchContext.) | |
FindElementsByXPath |
Finds elements matching the specified XPath query.
(Inherited from SearchContext.) | |
Get |
Loads a web page in the current browser session. Same as Open method.
| |
GetClipBoard |
Returns the text from the Clipboard
| |
GoBack |
Goes one step backward in the browser history.
| |
GoForward |
Goes one step forward in the browser history.
| |
IsElementPresent |
"Verifies that the specified element is somewhere on the page."
(Inherited from SearchContext.) | |
PageSource |
Gets the source of the page last loaded by the browser.
| |
PageSourceMatch |
Returns the first occurence matching the regular expression.
| |
PageSourceMatches |
Returns all the occurences matching the regular expression.
| |
Quit |
Close the Browser and Dispose of WebDriver
| |
Refresh |
Refreshes the current page.
| |
Send |
Sends a customized command
| |
SendKeys |
Sends a sequence of keystrokes to the browser.
| |
SetBinary |
Set the path to the browser executable to use
| |
SetCapability |
Set a specific capability for the webdriver
| |
SetClipBoard |
Sets the text in the Clipboard
| |
SetPreference |
Set a specific preference for the firefox webdriver
| |
SetProfile |
Set a specific profile for the firefox webdriver
| |
Start |
Starts a new Selenium testing session
| |
StartRemotely |
Starts remotely a new Selenium testing session
| |
SwitchToAlert |
Switch focus to an alert on the page.
| |
SwitchToDefaultContent |
Select either the first frame on the page or the main document when a page contains iFrames.
| |
SwitchToFrame |
Switch focus to the specified frame, by index(zero based), name or WebElement.
| |
SwitchToNextWindow |
Switch the focus to the next window.
| |
SwitchToParentFrame |
Select the parent frame of the currently selected frame.
| |
SwitchToPreviousWindow |
Switch the focus to the previous window
| |
SwitchToWindowByName |
Switch focus to the specified window by name.
| |
SwitchToWindowByTitle |
Switch focus to the specified window by title.
| |
TakeScreenshot |
Takes the screenshot of the current window
| |
UntilT |
Waits for the delegate function to return not null or true
| |
Wait |
Wait the specified time in millisecond before executing the next command
| |
WaitForScript |
Waits for a piece of JavaScript to return true or not null.
| |
WaitNotElement |
Waits for an element to be missing.
(Inherited from SearchContext.) |