04f05e42c2fd6deb140b517fc58da53d9eb2ec98
[yaffs-website] / vendor / jcalderonzumba / gastonjs / docs / api / commands / mouse / click_coordinates.md
1
2
3 click_coordinates
4 ========
5 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).
6
7 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.**
8
9 ##Command Request
10 ```json
11 {
12     "name": "click_coordinates",
13     "args": [165, 95]
14 }
15 ```
16 A successful click_coordinates command has the following response:
17 ##Command Response
18 ```json
19 {
20     "response": {
21         "click": {
22             "x": 165,
23             "y": 59
24         }
25     }
26 }
27 ```
28 Where **x** and **y** are the coordinates where the click_coordinates was done.