Skip to content

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

docs(evaluate): clarify semantics of expression string (#17472)

Yury Semikhatskye62e84015c3d
diff --git a/docs/src/api/params.md b/docs/src/api/params.md
index 4dc1969c56..1f884261ea 100644
--- a/docs/src/api/params.md
+++ b/docs/src/api/params.md
@@ -408,9 +408,8 @@ Defaults to `20`. Pass `0` to not follow redirects.
## evaluate-expression
- `expression` <[string]>
-JavaScript expression to be evaluated in the browser context. If it looks like
-a function declaration, it is interpreted as a function. Otherwise, evaluated
-as an expression.
+JavaScript expression to be evaluated in the browser context. If the expresion evaluates
+to a function, the function is automatically invoked.
## js-evaluate-pagefunction
* langs: js