Input Commands

Microsoft Edge supports the following WebDriver commands for simulating user input:

HTTP Request Commands
/session/{sessionId}/element/{id}/clear Clear
/session/{sessionId}/element/{id}/click Click
/session/{sessionId}/element/{id}/value Send Keys

Clear

Name Clear
Description Clears a TEXTAREA or text INPUT element value.
Spec W3C WebDriver, JSON Wire Protocol
HTTP Request POST /session/{sessionId}/element/{elementId}/clear

JSON Parameters None.

JSON Response Value

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

Click

Name Click
Description Fires a mouse click on the specified element.
Spec W3C WebDriver, JSON Wire Protocol
HTTP Request POST /session/{sessionId}/element/{elementId}/click

JSON Parameters None.

JSON Response Value

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

Send Keys

Name Click
Description Sends a sequence of key strokes to the specified element.
Spec W3C WebDriver, JSON Wire Protocol
HTTP Request POST /session/{sessionId}/element/{elementId}/value

JSON Parameters

{
    "value": [
        "{text}"
    ]
}

JSON Response Value

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