Skip to content

Commit

Permalink
fix(typings): seeTitleEquals, forceClick, executeScript, methods for …
Browse files Browse the repository at this point in the history
…Playwright and link
  • Loading branch information
elaichenkov committed Jan 6, 2021
1 parent 995ffb8 commit 8cc772b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/helpers/Playwright.md
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ If a function returns a Promise it will wait for its resolution.
#### Parameters

- `fn` **([string][7] | [function][9])** function to be executed in browser context.
- `arg` **...any** to be passed to function.
- `arg` **...any?** to be passed to function.

Returns **[Promise][10]<any>**

Expand Down
5 changes: 4 additions & 1 deletion lib/helper/Playwright.js
Original file line number Diff line number Diff line change
Expand Up @@ -1472,10 +1472,13 @@ class Playwright extends Helper {

/**
* Executes a script on the page:
*
* ```js
* I.executeScript(() => window.alert('Hello world'));
* ```
*
* Additional parameters of the function can be passed as an object argument:
*
* ```js
* I.executeScript(({x, y}) => x + y, {x, y});
* ```
Expand All @@ -1488,7 +1491,7 @@ class Playwright extends Helper {
* If a function returns a Promise it will wait for its resolution.
*
* @param {string|function} fn function to be executed in browser context.
* @param {...any} arg to be passed to function.
* @param {...any} [arg] to be passed to function.
* @return {Promise<any>}
*/
async executeScript(fn, arg) {
Expand Down

0 comments on commit 8cc772b

Please sign in to comment.