diff --git a/docs/api.md b/docs/api.md index d8b0dff16d..6292c46f51 100644 --- a/docs/api.md +++ b/docs/api.md @@ -976,7 +976,7 @@ const divsCounts = await page.$$eval('div', (divs, min) => divs.length >= min, 1 Adds a script which would be evaluated in one of the following scenarios: - Whenever the page is navigated. -- Whenever the child frame is attached or navigated. In this case, the scritp is evaluated in the context of the newly attached frame. +- Whenever the child frame is attached or navigated. In this case, the script is evaluated in the context of the newly attached frame. The script is evaluated after the document was created but before any of its scripts were run. This is useful to amend the JavaScript environment, e.g. to seed `Math.random`.