X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fjcalderonzumba%2Fgastonjs%2Fdocs%2Fapi%2Fcommands%2Fmouse%2Fclick_coordinates.md;fp=vendor%2Fjcalderonzumba%2Fgastonjs%2Fdocs%2Fapi%2Fcommands%2Fmouse%2Fclick_coordinates.md;h=04f05e42c2fd6deb140b517fc58da53d9eb2ec98;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/vendor/jcalderonzumba/gastonjs/docs/api/commands/mouse/click_coordinates.md b/vendor/jcalderonzumba/gastonjs/docs/api/commands/mouse/click_coordinates.md new file mode 100644 index 000000000..04f05e42c --- /dev/null +++ b/vendor/jcalderonzumba/gastonjs/docs/api/commands/mouse/click_coordinates.md @@ -0,0 +1,28 @@ + + +click_coordinates +======== +Sends a click_coordinates 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](http://www.w3.org/TR/DOM-Level-2-Events/events.html). + +This is a low level command as you have to now beforehand the **X,Y** coordinates of the element you want to click. **Use it with caution.** + +##Command Request +```json +{ + "name": "click_coordinates", + "args": [165, 95] +} +``` +A successful click_coordinates command has the following response: +##Command Response +```json +{ + "response": { + "click": { + "x": 165, + "y": 59 + } + } +} +``` +Where **x** and **y** are the coordinates where the click_coordinates was done.