<titledata-rh="true">ExecutionContext class | Puppeteer</title><metadata-rh="true"name="twitter:card"content="summary_large_image"><metadata-rh="true"property="og:url"content="https://pptr.dev/api/puppeteer.executioncontext"><metadata-rh="true"name="docusaurus_locale"content="en"><metadata-rh="true"name="docsearch:language"content="en"><metadata-rh="true"name="docusaurus_version"content="16.0.0"><metadata-rh="true"name="docusaurus_tag"content="docs-default-16.0.0"><metadata-rh="true"name="docsearch:version"content="16.0.0"><metadata-rh="true"name="docsearch:docusaurus_tag"content="docs-default-16.0.0"><metadata-rh="true"property="og:title"content="ExecutionContext class | Puppeteer"><metadata-rh="true"name="description"content="This class represents a context for JavaScript execution. A \Page\] might have many execution contexts: - each [frame has "default" execution context that is always created after frame is attached to DOM. This context is returned by the Frame.executionContext() method. - Extension's content scripts create additional execution contexts."><metadata-rh="true"property="og:description"content="This class represents a context for JavaScript execution. A \Page\] might have many execution contexts: - each [frame has "default" execution context that is always created after frame is attached to DOM. This context is returned by the Frame.executionContext() method. - Extension's content scripts create additional execution contexts."><linkdata-rh="true"rel="icon"href="/img/favicon.ico"><linkdata-rh="true"rel="canonical"href="https://pptr.dev/api/puppeteer.executioncontext"><linkdata-rh="true"rel="alternate"href="https://pptr.dev/api/puppeteer.executioncontext"hreflang="en"><linkdata-rh="true"rel="alternate"href="https://pptr.dev/api/puppeteer.executioncontext"hreflang="x-default"><linkrel="stylesheet"href="/assets/css/styles.39576fb3.css">