Skip to content

fix(api): ignore deprecated timeout arg provided to is_visible/hidden #2905

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

Merged

Conversation

agg23
Copy link
Contributor

@agg23 agg23 commented Jun 26, 2025

Fixes #2904

Ignore timeout args passed to any is_visible()/is_hidden() call.

@agg23 agg23 requested a review from mxschmitt June 26, 2025 13:14
@agg23 agg23 merged commit b7882d9 into microsoft:main Jun 26, 2025
37 of 38 checks passed
@DetachHead
Copy link

DetachHead commented Jun 26, 2025

Can the argument just be removed already? It's been years since it was deprecated and silently ignoring the argument is much worse than crashing at runtime because it makes it much more difficult and confusing for the user if they don't notice the deprecation message.

When I updated to playwright 1.53 this crash identified many places in our codebase where we were incorrectly passing the timeout argument, which I was then able to easily fix. Ignoring the argument makes these bugs go undetected. See my reasoning in microsoft/playwright#33017

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]: deprecated is_visible arguments that were removed in 1.53 are still present in _generated.py
3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy