diff --git a/docs/webapi/executeScript.mustache b/docs/webapi/executeScript.mustache index ffdb114d9..585aeb6cd 100644 --- a/docs/webapi/executeScript.mustache +++ b/docs/webapi/executeScript.mustache @@ -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. @@ -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 \ No newline at end of file +@param ...args args to be passed to function