From d9727c62dfe53124ce4b0b9901b9280e1364bd97 Mon Sep 17 00:00:00 2001 From: Natan Date: Thu, 13 Aug 2020 14:44:17 -0300 Subject: [PATCH] Typo fix (#3430) --- docs/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`.