Input Commands

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

HTTP RequestCommands
/session/{sessionId}/element/{id}/clearClear
/session/{sessionId}/element/{id}/clickClick
/session/{sessionId}/element/{id}/valueSend Keys

Clear

NameClear
DescriptionClears a TEXTAREA or text INPUT element value.
SpecW3C WebDriver, JSON Wire Protocol
HTTP RequestPOST /session/{sessionId}/element/{elementId}/clear

JSON Parameters
None.

JSON Response Value

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

Click

NameClick
DescriptionFires a mouse click on the specified element.
SpecW3C WebDriver, JSON Wire Protocol
HTTP RequestPOST /session/{sessionId}/element/{elementId}/click

JSON Parameters
None.

JSON Response Value

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

Send Keys

NameClick
DescriptionSends a sequence of key strokes to the specified element.
SpecW3C WebDriver, JSON Wire Protocol
HTTP RequestPOST /session/{sessionId}/element/{elementId}/value

JSON Parameters

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

JSON Response Value

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