Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(coverage): anonymous scripts have an empty url (#43060)

soreavis15e926bd8f85
diff --git a/docs/src/api/class-coverage.md b/docs/src/api/class-coverage.md
index 8a5fb7af68..fbdec75a06 100644
--- a/docs/src/api/class-coverage.md
+++ b/docs/src/api/class-coverage.md
@@ -49,7 +49,7 @@ Returns coverage is started
:::note
Anonymous scripts are ones that don't have an associated url. These are scripts that are dynamically created
on the page using `eval` or `new Function`. If [`option: reportAnonymousScripts`] is set to `true`, anonymous scripts
-will have `__playwright_evaluation_script__` as their URL.
+will have an empty string as their URL.
:::
### option: Coverage.startJSCoverage.resetOnNavigation
diff --git a/packages/playwright-client/types/types.d.ts b/packages/playwright-client/types/types.d.ts
index 1724559292..110d4ed5af 100644
--- a/packages/playwright-client/types/types.d.ts
+++ b/packages/playwright-client/types/types.d.ts
@@ -21047,7 +21047,7 @@ export interface Coverage {
* **NOTE** Anonymous scripts are ones that don't have an associated url. These are scripts that are dynamically
* created on the page using `eval` or `new Function`. If
* [`reportAnonymousScripts`](https://playwright.dev/docs/api/class-coverage#coverage-start-js-coverage-option-report-anonymous-scripts)
- * is set to `true`, anonymous scripts will have `__playwright_evaluation_script__` as their URL.
+ * is set to `true`, anonymous scripts will have an empty string as their URL.
*
* @param options
*/
diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts
index 1724559292..110d4ed5af 100644
--- a/packages/playwright-core/types/types.d.ts
+++ b/packages/playwright-core/types/types.d.ts
@@ -21047,7 +21047,7 @@ export interface Coverage {
* **NOTE** Anonymous scripts are ones that don't have an associated url. These are scripts that are dynamically
* created on the page using `eval` or `new Function`. If
* [`reportAnonymousScripts`](https://playwright.dev/docs/api/class-coverage#coverage-start-js-coverage-option-report-anonymous-scripts)
- * is set to `true`, anonymous scripts will have `__playwright_evaluation_script__` as their URL.
+ * is set to `true`, anonymous scripts will have an empty string as their URL.
*
* @param options
*/