File tree Expand file tree Collapse file tree 2 files changed +0
-37
lines changed
packages/playwright-core/types Expand file tree Collapse file tree 2 files changed +0
-37
lines changed Original file line number Diff line number Diff line change @@ -864,31 +864,6 @@ If [`param: expression`] throws or rejects, this method throws.
864864
865865**Usage**
866866
867- ` ` ` js
868- const tweets = page.locator('.tweet .retweets');
869- expect(await tweets.evaluate(node => node.innerText)).toBe('10 retweets');
870- ` ` `
871-
872- ` ` ` java
873- Locator tweets = page.locator(".tweet .retweets");
874- assertEquals("10 retweets", tweets.evaluate("node => node.innerText"));
875- ` ` `
876-
877- ` ` ` python async
878- tweets = page.locator(".tweet .retweets")
879- assert await tweets.evaluate("node => node.innerText") == "10 retweets"
880- ` ` `
881-
882- ` ` ` python sync
883- tweets = page.locator(".tweet .retweets")
884- assert tweets.evaluate("node => node.innerText") == "10 retweets"
885- ` ` `
886-
887- ` ` ` csharp
888- var tweets = page.Locator(".tweet .retweets");
889- Assert.AreEqual("10 retweets", await tweets.EvaluateAsync("node => node.innerText"));
890- ` ` `
891-
892867# ## param: Locator.evaluate.expression = %%-evaluate-expression-%%
893868* since: v1.14
894869
Original file line number Diff line number Diff line change @@ -12176,12 +12176,6 @@ export interface Locator {
1217612176 * rejects, this method throws.
1217712177 *
1217812178 * **Usage**
12179- *
12180- * ```js
12181- * const tweets = page.locator('.tweet .retweets');
12182- * expect(await tweets.evaluate(node => node.innerText)).toBe('10 retweets');
12183- * ```
12184- *
1218512179 * @param pageFunction Function to be evaluated in the page context.
1218612180 * @param arg Optional argument to pass to
1218712181 * [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-evaluate-option-expression).
@@ -12207,12 +12201,6 @@ export interface Locator {
1220712201 * rejects, this method throws.
1220812202 *
1220912203 * **Usage**
12210- *
12211- * ```js
12212- * const tweets = page.locator('.tweet .retweets');
12213- * expect(await tweets.evaluate(node => node.innerText)).toBe('10 retweets');
12214- * ```
12215- *
1221612204 * @param pageFunction Function to be evaluated in the page context.
1221712205 * @param arg Optional argument to pass to
1221812206 * [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-evaluate-option-expression).
You can’t perform that action at this time.
0 commit comments