Navigation Commands

Microsoft Edge supports the following WebDriver commands for navigation:

HTTP Request Commands
/session/{sessionId}/back Back
/session/{sessionId}/forward Forward
/session/{sessionId}/refresh Refresh
/session/{sessionId}/title Get Title
/session/{sessionId}/url Get, Get Current URL

Back

Name Back
Description Navigates backwards in the browser history, if possible.
Spec W3C WebDriver, JSON Wire Protocol
HTTP Request POST /session/{sessionId}/back

JSON Parameters None.

JSON Response Value

{
    "sessionId": "{sessionId}",
    "status": 0,
    "value": null
}

Forward

Name Forward
Description Navigates forward in the browser history, if possible.
Spec W3C WebDriver, JSON Wire Protocol
HTTP Request POST /session/{sessionId}/forward

JSON Parameters None.

JSON Response Value

{
    "sessionId": "{sessionId}",
    "status": 0,
    "value": null
}

Refresh

Name Refresh
Description Reloads the current page.
Spec W3C WebDriver, JSON Wire Protocol
HTTP Request POST /session/{sessionId}/refresh

JSON Parameters None.

JSON Response Value

{
    "sessionId": "{sessionId}",
    "status": 0,
    "value": null
}

Get Title

Name Get Title
Description Gets the current page title.
Spec W3C WebDriver, JSON Wire Protocol
HTTP Request GET /session/{sessionId}/title

JSON Parameters None.

JSON Response Value

{
    "sessionId": "{sessionId}",
    "status": 0,
    "value": "{title}"
}

Get

Name Get
Description Navigates to the specified URL.
Spec W3C WebDriver, JSON Wire Protocol
HTTP Request POST /session/{sessionId}/url

JSON Parameters

{
    "url": "https://www.bing.com/"

}

JSON Response Value

{
    "sessionId": "{sessionId}",
    "status": 0,
    "value": null
}

Get Current URL

Name Get Current URL
Description Retrieves the URL of the current page.
Spec W3C WebDriver, JSON Wire Protocol
HTTP Request GET /session/{sessionId}/url

JSON Parameters None.

JSON Response Value

{
    "sessionId": "{sessionId}",
    "status": 0,
    "value": "{url}"
}