Skip to content

[Bug]: deprecated is_visible arguments that were removed in 1.53 are still present in _generated.py #2904

Closed
@DetachHead

Description

@DetachHead

Version

1.53.0

Steps to reproduce

from playwright.sync_api import sync_playwright

with sync_playwright() as p:
    browser = p.chromium.launch()
    page = browser.new_page()
    page.is_visible("asdf", timeout=1)

Expected behavior

an error from my type checker

Actual behavior

runtime error:

TypeError: Frame.is_visible() got an unexpected keyword argument 'timeout'

Additional context

removing these arguments have previously been discussed in microsoft/playwright#33017, though it looks like this runtime crash is exclusive to playwright-python

i'm glad these deprecated arguments have finally been removed though. even having it crash at runtime is a massive improvement compared to just silently ignoring the argument.

Environment

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      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