puppeteer/new-docs/puppeteer.protocol.runtime.compilescriptrequest.md

22 lines
1.2 KiB
Markdown
Raw Normal View History

<!-- 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; [Runtime](./puppeteer.protocol.runtime.md) &gt; [CompileScriptRequest](./puppeteer.protocol.runtime.compilescriptrequest.md)
## Protocol.Runtime.CompileScriptRequest interface
<b>Signature:</b>
```typescript
export interface CompileScriptRequest
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [executionContextId](./puppeteer.protocol.runtime.compilescriptrequest.executioncontextid.md) | [ExecutionContextId](./puppeteer.protocol.runtime.executioncontextid.md) | Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page. |
| [expression](./puppeteer.protocol.runtime.compilescriptrequest.expression.md) | string | Expression to compile. |
| [persistScript](./puppeteer.protocol.runtime.compilescriptrequest.persistscript.md) | boolean | Specifies whether the compiled script should be persisted. |
| [sourceURL](./puppeteer.protocol.runtime.compilescriptrequest.sourceurl.md) | string | Source url to be set for the script. |