Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Doc in Python API locator.evaluate_all #18898

Closed
genepg opened this issue Oct 6, 2022 · 1 comment · Fixed by #18966
Closed

Incorrect Doc in Python API locator.evaluate_all #18898

genepg opened this issue Oct 6, 2022 · 1 comment · Fixed by #18966

Comments

@genepg
Copy link

genepg commented Oct 6, 2022

locator.evaluate_all(expression, **kwargs)

It should change to elements.evaluate_all(...).
Does this place use bot to generate doc? If not, I can do the PR to change the docs.

https://github.com/microsoft/playwright.dev/blob/3ef1153190791e7e6664a9f142b7282323f9646f/python/docs/api/class-locator.mdx?plain=1#L440-L451

@mxschmitt
Copy link
Member

The source is located here:

elements = page.locator("div")
div_counts = await elements("(divs, min) => divs.length >= min", 10)

Thanks!

@mxschmitt mxschmitt transferred this issue from microsoft/playwright.dev Nov 17, 2022
yury-s pushed a commit that referenced this issue Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants