puppeteer/new-docs/puppeteer.protocol.page.addscripttoevaluateonnewdocumentrequest.worldname.md
2020-07-13 14:01:35 +01:00

14 lines
785 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Protocol](./puppeteer.protocol.md) &gt; [Page](./puppeteer.protocol.page.md) &gt; [AddScriptToEvaluateOnNewDocumentRequest](./puppeteer.protocol.page.addscripttoevaluateonnewdocumentrequest.md) &gt; [worldName](./puppeteer.protocol.page.addscripttoevaluateonnewdocumentrequest.worldname.md)
## Protocol.Page.AddScriptToEvaluateOnNewDocumentRequest.worldName property
If specified, creates an isolated world with the given name and evaluates given script in it. This world name will be used as the ExecutionContextDescription::name when the corresponding event is emitted.
<b>Signature:</b>
```typescript
worldName?: string;
```