Version 1
[yaffs-website] / vendor / jcalderonzumba / gastonjs / docs / api / commands / mouse / double_click.md
diff --git a/vendor/jcalderonzumba/gastonjs/docs/api/commands/mouse/double_click.md b/vendor/jcalderonzumba/gastonjs/docs/api/commands/mouse/double_click.md
new file mode 100644 (file)
index 0000000..378c70e
--- /dev/null
@@ -0,0 +1,30 @@
+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](http://www.w3.org/TR/DOM-Level-2-Events/events.html).
+
+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
+```json
+{
+    "name": "double_click",
+    "args": [1, 0]
+}
+```
+A successful double_click command has the following response:
+##Command Response
+```json
+{
+    "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](http://phantomjs.org/api/webpage/method/send-event.html).