double_click

Sends a double_click event to the browser, this event is sent as if it comes as part of the user interaction, meaning is not a synthetic DOM event.

In order to send a click you have to send the page and the element id where you want to click.

TODO: add link to find command documentation

Command Request

{
    "name": "double_click",
    "args": [1, 0]
}

A successful double_click command has the following response:

Command Response

{
    "response": {
        "position": {
            "x": 165,
            "y": 59
        }
    }
}

Where x and y are the coordinates where the double_click was done.

You need coordinates to click because that is how PhantomJS works, for more info check PhantomJS native events.