2022-07-05 13:41:43 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Frame.executionContext
|
|
|
|
---
|
|
|
|
|
|
|
|
# Frame.executionContext() method
|
|
|
|
|
2022-08-16 06:22:45 +00:00
|
|
|
> Warning: This API is now obsolete.
|
|
|
|
>
|
|
|
|
> Do not use the execution context directly.
|
|
|
|
|
2022-07-05 13:41:43 +00:00
|
|
|
**Signature:**
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Frame {
|
|
|
|
executionContext(): Promise<ExecutionContext>;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<[ExecutionContext](./puppeteer.executioncontext.md)>
|
|
|
|
|
|
|
|
a promise that resolves to the frame's default execution context.
|