Skip to content

Commit

Permalink
Include line to specify element for scroll gesture documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
casschin committed Apr 8, 2014
1 parent 17af028 commit a61f3de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/gestures.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ cases.
JavascriptExecutor js = (JavascriptExecutor) driver;
HashMap<String, String> scrollObject = new HashMap<String, String>();
scrollObject.put("direction", "down");
scrollObject.put("element", ((RemoteWebElement) element).getId());
js.executeScript("mobile: scroll", scrollObject);
```

Expand Down

0 comments on commit a61f3de

Please sign in to comment.