Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/webapi/executeScript.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Example with jQuery DatePicker:
// change date of jQuery DatePicker
I.executeScript(function() {
// now we are inside browser context
$('date')).datetimepicker('setDate', new Date());
$('date').datetimepicker('setDate', new Date());
});
```
Can return values. Don't forget to use `yield` to get them.
Expand All @@ -22,4 +22,4 @@ let date = yield I.executeScript(function(el) {
```

@param fn function to be executed in browser context
@param ...args args to be passed to function
@param ...args args to be passed to function