Skip to content

fix(locator): pass the timeout through in screenshot - #3232

Merged
Pavel Feldman (pavelfeldman) merged 1 commit into
microsoft:mainfrom
MohammedAlkindi:fix-43206
Oct 8, 2026
Merged

Pavel Feldman (pavelfeldman) merged 1 commit into
microsoft:mainfrom
MohammedAlkindi:fix-43206

Conversation

@MohammedAlkindi

Copy link
Copy Markdown
Contributor

Summary

  • Locator.screenshot did not pass its timeout to _with_element, so it waited for the default timeout instead. It now passes it through, as select_text and the JS client do, which also makes timeout=0 disable the timeout as documented.

Fixes microsoft/playwright#43206

@pavelfeldman
Pavel Feldman (pavelfeldman) merged commit 2df246a into microsoft:main Oct 8, 2026
29 checks passed
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 this pull request may close these issues.

[Bug]: Python Locator.screenshot ignores its timeout argument

2 participants