get method

[This documentation is preliminary and is subject to change.]

Navigates to a URL.


{
  "name": "get",
  "parameters": {
    "url": "[URL]"
  },
  "sessionId": "[sessionId]"
}

Syntax

Parameters

name

This is the command you're passing in. In this case, get.

parameters

This is a wrapper object in which you'll embed other objects to be passed to WebDriver as parameters for the command.

url

The URL the active window should navigate to.

sessionId

The sessionId value of the session you are targeting.

Return value

A JSON response object containing:

  • sessionId
  • status
  • value

Remarks

Caution  Most conforming URLs will return a success message, even if there's nothing at them, there's no such domain, or a 404 has been returned.

For users of Internet Explorer Developer Channel

The first release of Internet Explorer Developer Channel contained an early preview of our WebDriver functionality. For that release only, all commands had to be wrapped in a command object. In the example below the command object wrapper is in bold:

{

  "command": {

    "name": "[command]",

    "parameters": {},

    "sessionId": "[sessionId]"

  }

}

The command object wrapper is not used in general release versions of Internet Explorer, only the first release of Internet Explorer Developer Channel.

See also

WebDriver in Internet Explorer Developer Channel
WebDriver in IE11
IInternetExplorerManager2
IIEWebDriverManager

 

 

Show:
© 2014 Microsoft