IEDriver Class
Web driver for Internet Explorer
Inheritance Hierarchy
SystemObject
  SeleniumSearchContext
    SeleniumWebDriver
      SeleniumIEDriver

Namespace: Selenium
Assembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
Syntax
VB Usage
Dim instance As IEDriver

The IEDriver type exposes the following members.

Constructors
  NameDescription
Public methodIEDriver
Initializes a new instance of the IEDriver class
Top
Methods
  NameDescription
Public methodActiveElement
Returns the element with focus, or BODY if nothing has focus.
(Inherited from WebDriver.)
Public methodAddArgument
Add an argument to be appended to the command line to launch the browser.
(Inherited from WebDriver.)
Public methodAddExtension
Add an extension to the browser (For Firefox and Chrome only)
(Inherited from WebDriver.)
Public methodCacheStatus
Get the status of the html5 application cache.
(Inherited from WebDriver.)
Public methodClose
Closes the current window.
(Inherited from WebDriver.)
Public methodDispose
Release the resources.
(Inherited from WebDriver.)
Public methodCode exampleExecuteAsyncScript
Execute an asynchronous piece of JavaScript in the context of the current frame or window.
(Inherited from WebDriver.)
Public methodCode exampleExecuteScript
Execute a piece of JavaScript in the context of the currently selected frame or window
(Inherited from WebDriver.)
Public methodCode exampleFindElement
Find the first WebElement using the given method.
(Inherited from SearchContext.)
Public methodFindElementBy
Finds the first child element matching the given mechanism and value.
(Inherited from SearchContext.)
Public methodFindElementByClass
Finds the first element matching the specified CSS class.
(Inherited from SearchContext.)
Public methodFindElementByCss
Finds the first element matching the specified CSS selector.
(Inherited from SearchContext.)
Public methodFindElementById
Finds the first element matching the specified id.
(Inherited from SearchContext.)
Public methodFindElementByLinkText
Finds the first element matching the specified link text.
(Inherited from SearchContext.)
Public methodFindElementByName
Finds the first element matching the specified name.
(Inherited from SearchContext.)
Public methodFindElementByPartialLinkText
Finds the first of elements that match the part of the link text supplied
(Inherited from SearchContext.)
Public methodFindElementByTag
Finds the first element matching the specified tag name.
(Inherited from SearchContext.)
Public methodFindElementByXPath
Finds the first element matching the specified XPath query.
(Inherited from SearchContext.)
Public methodCode exampleFindElements
Find all elements within the current context using the given mechanism.
(Inherited from SearchContext.)
Public methodFindElementsBy
Finds all child elements matching the given mechanism and value.
(Inherited from SearchContext.)
Public methodFindElementsByClass
Finds elements matching the specified CSS class.
(Inherited from SearchContext.)
Public methodFindElementsByCss
Finds elements matching the specified CSS selector.
(Inherited from SearchContext.)
Public methodFindElementsById
Finds elements matching the specified id.
(Inherited from SearchContext.)
Public methodFindElementsByLinkText
Finds elements matching the specified link text.
(Inherited from SearchContext.)
Public methodFindElementsByName
Finds elements matching the specified name.
(Inherited from SearchContext.)
Public methodFindElementsByPartialLinkText
Finds the first of elements that match the part of the link text supplied
(Inherited from SearchContext.)
Public methodFindElementsByTag
Finds elements matching the specified tag name.
(Inherited from SearchContext.)
Public methodFindElementsByXPath
Finds elements matching the specified XPath query.
(Inherited from SearchContext.)
Public methodGet
Loads a web page in the current browser session. Same as Open method.
(Inherited from WebDriver.)
Public methodGetClipBoard
Returns the text from the Clipboard
(Inherited from WebDriver.)
Public methodGoBack
Goes one step backward in the browser history.
(Inherited from WebDriver.)
Public methodGoForward
Goes one step forward in the browser history.
(Inherited from WebDriver.)
Public methodIsElementPresent
"Verifies that the specified element is somewhere on the page."
(Inherited from SearchContext.)
Public methodPageSource
Gets the source of the page last loaded by the browser.
(Inherited from WebDriver.)
Public methodPageSourceMatch
Returns the first occurence matching the regular expression.
(Inherited from WebDriver.)
Public methodPageSourceMatches
Returns all the occurences matching the regular expression.
(Inherited from WebDriver.)
Public methodQuit
Close the Browser and Dispose of WebDriver
(Inherited from WebDriver.)
Public methodRefresh
Refreshes the current page.
(Inherited from WebDriver.)
Public methodCode exampleSend
Sends a customized command
(Inherited from WebDriver.)
Public methodCode exampleSendKeys
Sends a sequence of keystrokes to the browser.
(Inherited from WebDriver.)
Public methodSetBinary
Set the path to the browser executable to use
(Inherited from WebDriver.)
Public methodSetCapability
Set a specific capability for the webdriver
(Inherited from WebDriver.)
Public methodSetClipBoard
Sets the text in the Clipboard
(Inherited from WebDriver.)
Public methodSetPreference
Set a specific preference for the firefox webdriver
(Inherited from WebDriver.)
Public methodCode exampleSetProfile
Set a specific profile for the firefox webdriver
(Inherited from WebDriver.)
Public methodCode exampleStart
Starts a new Selenium testing session
(Inherited from WebDriver.)
Public methodCode exampleStartRemotely
Starts remotely a new Selenium testing session
(Inherited from WebDriver.)
Public methodSwitchToAlert
Switch focus to an alert on the page.
(Inherited from WebDriver.)
Public methodSwitchToDefaultContent
Select either the first frame on the page or the main document when a page contains iFrames.
(Inherited from WebDriver.)
Public methodSwitchToFrame
Switch focus to the specified frame, by index(zero based), name or WebElement.
(Inherited from WebDriver.)
Public methodSwitchToNextWindow
Switch the focus to the next window.
(Inherited from WebDriver.)
Public methodSwitchToParentFrame
Select the parent frame of the currently selected frame.
(Inherited from WebDriver.)
Public methodSwitchToPreviousWindow
Switch the focus to the previous window
(Inherited from WebDriver.)
Public methodSwitchToWindowByName
Switch focus to the specified window by name.
(Inherited from WebDriver.)
Public methodSwitchToWindowByTitle
Switch focus to the specified window by title.
(Inherited from WebDriver.)
Public methodTakeScreenshot
Takes the screenshot of the current window
(Inherited from WebDriver.)
Public methodUntilT
Waits for the delegate function to return not null or true
(Inherited from WebDriver.)
Public methodWait
Wait the specified time in millisecond before executing the next command
(Inherited from WebDriver.)
Public methodWaitForScript
Waits for a piece of JavaScript to return true or not null.
(Inherited from WebDriver.)
Public methodWaitNotElement
Waits for an element to be missing.
(Inherited from SearchContext.)
Top
Properties
  NameDescription
Public propertyCode exampleActions
Get the actions class
(Inherited from WebDriver.)
Public propertyBaseUrl
Base URL to use a relative URL with Get
(Inherited from WebDriver.)
Public propertyKeyboard
Keyboard
(Inherited from WebDriver.)
Public propertyKeys
Keys
(Inherited from WebDriver.)
Public propertyManage
Instructs the driver to change its settings.
(Inherited from WebDriver.)
Public propertyMouse
Mouse
(Inherited from WebDriver.)
Public propertyProxy
(Inherited from WebDriver.)
Public propertyTimeouts
Manage the browser settings. Need to be defined before the browser is launched
(Inherited from WebDriver.)
Public propertyTitle
Gets the title of the current browser window.
(Inherited from WebDriver.)
Public propertyTouchActions
TouchActions
(Inherited from WebDriver.)
Public propertyTouchScreen
TouchScreen
(Inherited from WebDriver.)
Public propertyUrl
Get the URL the browser is currently displaying.
(Inherited from WebDriver.)
Public propertyWindow
Gets an object allowing the user to manipulate the currently-focused browser window.
(Inherited from WebDriver.)
Public propertyWindows
Gets the window handles of open browser windows.
(Inherited from WebDriver.)
Top
Examples
VBScript:
Class Script
    Dim driver

    Sub Class_Initialize
        Set driver = CreateObject("Selenium.IEDriver")
        driver.Get "http://www.google.com"
        ...
    End Sub

    Sub Class_Terminate
        driver.Quit
    End Sub
End Class

Set s = New Script
VBA:
Public Sub Script()
  Dim driver As New IEDriver
  driver.Get "http://www.mywebsite.com"
  ...
  driver.Quit
End Sub
See Also