PhantomJSDriver Class |
Namespace: Selenium
Dim instance As PhantomJSDriver
The PhantomJSDriver type exposes the following members.
Name | Description | |
---|---|---|
PhantomJSDriver | Initializes a new instance of the PhantomJSDriver class |
Name | Description | |
---|---|---|
ActiveElement |
Returns the element with focus, or BODY if nothing has focus.
(Inherited from WebDriver.) | |
AddArgument |
Add an argument to be appended to the command line to launch the browser.
(Inherited from WebDriver.) | |
AddExtension |
Add an extension to the browser (For Firefox and Chrome only)
(Inherited from WebDriver.) | |
CacheStatus |
Get the status of the html5 application cache.
(Inherited from WebDriver.) | |
Close |
Closes the current window.
(Inherited from WebDriver.) | |
Dispose |
Release the resources.
(Inherited from WebDriver.) | |
ExecuteAsyncScript |
Execute an asynchronous piece of JavaScript in the context of the current frame or window.
(Inherited from WebDriver.) | |
ExecuteScript |
Execute a piece of JavaScript in the context of the currently selected frame or window
(Inherited from WebDriver.) | |
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.
(Inherited from WebDriver.) | |
GetClipBoard |
Returns the text from the Clipboard
(Inherited from WebDriver.) | |
GoBack |
Goes one step backward in the browser history.
(Inherited from WebDriver.) | |
GoForward |
Goes one step forward in the browser history.
(Inherited from WebDriver.) | |
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.
(Inherited from WebDriver.) | |
PageSourceMatch |
Returns the first occurence matching the regular expression.
(Inherited from WebDriver.) | |
PageSourceMatches |
Returns all the occurences matching the regular expression.
(Inherited from WebDriver.) | |
Quit |
Close the Browser and Dispose of WebDriver
(Inherited from WebDriver.) | |
Refresh |
Refreshes the current page.
(Inherited from WebDriver.) | |
Send |
Sends a customized command
(Inherited from WebDriver.) | |
SendKeys |
Sends a sequence of keystrokes to the browser.
(Inherited from WebDriver.) | |
SetBinary |
Set the path to the browser executable to use
(Inherited from WebDriver.) | |
SetCapability |
Set a specific capability for the webdriver
(Inherited from WebDriver.) | |
SetClipBoard |
Sets the text in the Clipboard
(Inherited from WebDriver.) | |
SetPreference |
Set a specific preference for the firefox webdriver
(Inherited from WebDriver.) | |
SetProfile |
Set a specific profile for the firefox webdriver
(Inherited from WebDriver.) | |
Start |
Starts a new Selenium testing session
(Inherited from WebDriver.) | |
StartRemotely |
Starts remotely a new Selenium testing session
(Inherited from WebDriver.) | |
SwitchToAlert |
Switch focus to an alert on the page.
(Inherited from WebDriver.) | |
SwitchToDefaultContent |
Select either the first frame on the page or the main document when a page contains iFrames.
(Inherited from WebDriver.) | |
SwitchToFrame |
Switch focus to the specified frame, by index(zero based), name or WebElement.
(Inherited from WebDriver.) | |
SwitchToNextWindow |
Switch the focus to the next window.
(Inherited from WebDriver.) | |
SwitchToParentFrame |
Select the parent frame of the currently selected frame.
(Inherited from WebDriver.) | |
SwitchToPreviousWindow |
Switch the focus to the previous window
(Inherited from WebDriver.) | |
SwitchToWindowByName |
Switch focus to the specified window by name.
(Inherited from WebDriver.) | |
SwitchToWindowByTitle |
Switch focus to the specified window by title.
(Inherited from WebDriver.) | |
TakeScreenshot |
Takes the screenshot of the current window
(Inherited from WebDriver.) | |
UntilT |
Waits for the delegate function to return not null or true
(Inherited from WebDriver.) | |
Wait |
Wait the specified time in millisecond before executing the next command
(Inherited from WebDriver.) | |
WaitForScript |
Waits for a piece of JavaScript to return true or not null.
(Inherited from WebDriver.) | |
WaitNotElement |
Waits for an element to be missing.
(Inherited from SearchContext.) |
Name | Description | |
---|---|---|
Actions |
Get the actions class
(Inherited from WebDriver.) | |
BaseUrl |
Base URL to use a relative URL with Get
(Inherited from WebDriver.) | |
Keyboard |
Keyboard
(Inherited from WebDriver.) | |
Keys |
Keys
(Inherited from WebDriver.) | |
Manage |
Instructs the driver to change its settings.
(Inherited from WebDriver.) | |
Mouse |
Mouse
(Inherited from WebDriver.) | |
Proxy | (Inherited from WebDriver.) | |
Timeouts |
Manage the browser settings. Need to be defined before the browser is launched
(Inherited from WebDriver.) | |
Title |
Gets the title of the current browser window.
(Inherited from WebDriver.) | |
TouchActions |
TouchActions
(Inherited from WebDriver.) | |
TouchScreen |
TouchScreen
(Inherited from WebDriver.) | |
Url |
Get the URL the browser is currently displaying.
(Inherited from WebDriver.) | |
Window |
Gets an object allowing the user to manipulate the currently-focused browser window.
(Inherited from WebDriver.) | |
Windows |
Gets the window handles of open browser windows.
(Inherited from WebDriver.) |
Class Script Dim driver Sub Class_Initialize Set driver = CreateObject("Selenium.PhantomJSDriver") driver.Get "http://www.google.com" End Sub Sub Class_Terminate driver.Quit End Sub End Class Set s = New Script
Public Sub Script() Dim driver As New PhantomJSDriver driver.Get "http://www.google.com" ... driver.Quit End Sub