Version 1
[yaffs-website] / vendor / jcalderonzumba / gastonjs / docs / api / commands / mouse / click_coordinates.md
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 (file)
index 0000000..04f05e4
--- /dev/null
@@ -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.