mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
docs: fix string eval snippet
Signed-off-by: Pavel Feldman <pavel.feldman@gmail.com>
This commit is contained in:
parent
f045e13e00
commit
e065a927bb
@ -95,8 +95,8 @@ Using dynamic imports inside a function passed to various `evaluate()` methods i
|
||||
To work around this issue, use a string template instead of a function:
|
||||
|
||||
```js
|
||||
await page.evaluate(`async () => {
|
||||
await page.evaluate(`(async () => {
|
||||
const { value } = await import('some-module');
|
||||
console.log(value);
|
||||
}`);
|
||||
})()`);
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user