From cd205a9cde205621434d12ac4ade4d2b38e0c447 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 12 Nov 2024 10:54:45 +0100 Subject: [PATCH 1/4] chore: re-run black formatter --- playwright/_impl/_element_handle.py | 2 +- playwright/async_api/_generated.py | 480 ++++++++++++++-------------- playwright/sync_api/_generated.py | 480 ++++++++++++++-------------- tests/async/test_navigation.py | 7 +- tests/async/test_worker.py | 14 +- 5 files changed, 493 insertions(+), 490 deletions(-) diff --git a/playwright/_impl/_element_handle.py b/playwright/_impl/_element_handle.py index d7482fdea..07d055ebc 100644 --- a/playwright/_impl/_element_handle.py +++ b/playwright/_impl/_element_handle.py @@ -158,7 +158,7 @@ async def select_option( dict( timeout=timeout, force=force, - **convert_select_option_values(value, index, label, element) + **convert_select_option_values(value, index, label, element), ) ) return await self._channel.send("selectOption", params) diff --git a/playwright/async_api/_generated.py b/playwright/async_api/_generated.py index 3730d8127..c01b23fc2 100644 --- a/playwright/async_api/_generated.py +++ b/playwright/async_api/_generated.py @@ -675,7 +675,7 @@ async def fulfill( json: typing.Optional[typing.Any] = None, path: typing.Optional[typing.Union[str, pathlib.Path]] = None, content_type: typing.Optional[str] = None, - response: typing.Optional["APIResponse"] = None + response: typing.Optional["APIResponse"] = None, ) -> None: """Route.fulfill @@ -739,7 +739,7 @@ async def fetch( post_data: typing.Optional[typing.Union[typing.Any, str, bytes]] = None, max_redirects: typing.Optional[int] = None, max_retries: typing.Optional[int] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> "APIResponse": """Route.fetch @@ -808,7 +808,7 @@ async def fallback( url: typing.Optional[str] = None, method: typing.Optional[str] = None, headers: typing.Optional[typing.Dict[str, str]] = None, - post_data: typing.Optional[typing.Union[typing.Any, str, bytes]] = None + post_data: typing.Optional[typing.Union[typing.Any, str, bytes]] = None, ) -> None: """Route.fallback @@ -899,7 +899,7 @@ async def continue_( url: typing.Optional[str] = None, method: typing.Optional[str] = None, headers: typing.Optional[typing.Dict[str, str]] = None, - post_data: typing.Optional[typing.Union[typing.Any, str, bytes]] = None + post_data: typing.Optional[typing.Union[typing.Any, str, bytes]] = None, ) -> None: """Route.continue_ @@ -1067,7 +1067,7 @@ def expect_event( event: str, predicate: typing.Optional[typing.Callable] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> AsyncEventContextManager: """WebSocket.expect_event @@ -1100,7 +1100,7 @@ async def wait_for_event( event: str, predicate: typing.Optional[typing.Callable] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> typing.Any: """WebSocket.wait_for_event @@ -1463,7 +1463,7 @@ async def down( self, *, button: typing.Optional[Literal["left", "middle", "right"]] = None, - click_count: typing.Optional[int] = None + click_count: typing.Optional[int] = None, ) -> None: """Mouse.down @@ -1485,7 +1485,7 @@ async def up( self, *, button: typing.Optional[Literal["left", "middle", "right"]] = None, - click_count: typing.Optional[int] = None + click_count: typing.Optional[int] = None, ) -> None: """Mouse.up @@ -1510,7 +1510,7 @@ async def click( *, delay: typing.Optional[float] = None, button: typing.Optional[Literal["left", "middle", "right"]] = None, - click_count: typing.Optional[int] = None + click_count: typing.Optional[int] = None, ) -> None: """Mouse.click @@ -1542,7 +1542,7 @@ async def dblclick( y: float, *, delay: typing.Optional[float] = None, - button: typing.Optional[Literal["left", "middle", "right"]] = None + button: typing.Optional[Literal["left", "middle", "right"]] = None, ) -> None: """Mouse.dblclick @@ -2019,7 +2019,7 @@ async def hover( timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, force: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """ElementHandle.hover @@ -2079,7 +2079,7 @@ async def click( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """ElementHandle.click @@ -2150,7 +2150,7 @@ async def dblclick( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """ElementHandle.dblclick @@ -2216,7 +2216,7 @@ async def select_option( ] = None, timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> typing.List[str]: """ElementHandle.select_option @@ -2291,7 +2291,7 @@ async def tap( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """ElementHandle.tap @@ -2346,7 +2346,7 @@ async def fill( *, timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, - force: typing.Optional[bool] = None + force: typing.Optional[bool] = None, ) -> None: """ElementHandle.fill @@ -2384,7 +2384,7 @@ async def select_text( self, *, force: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """ElementHandle.select_text @@ -2443,7 +2443,7 @@ async def set_input_files( ], *, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """ElementHandle.set_input_files @@ -2487,7 +2487,7 @@ async def type( *, delay: typing.Optional[float] = None, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """ElementHandle.type @@ -2524,7 +2524,7 @@ async def press( *, delay: typing.Optional[float] = None, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """ElementHandle.press @@ -2580,7 +2580,7 @@ async def set_checked( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """ElementHandle.set_checked @@ -2634,7 +2634,7 @@ async def check( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """ElementHandle.check @@ -2686,7 +2686,7 @@ async def uncheck( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """ElementHandle.uncheck @@ -2774,7 +2774,7 @@ async def screenshot( scale: typing.Optional[Literal["css", "device"]] = None, mask: typing.Optional[typing.Sequence["Locator"]] = None, mask_color: typing.Optional[str] = None, - style: typing.Optional[str] = None + style: typing.Optional[str] = None, ) -> bytes: """ElementHandle.screenshot @@ -2987,7 +2987,7 @@ async def wait_for_element_state( "disabled", "editable", "enabled", "hidden", "stable", "visible" ], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """ElementHandle.wait_for_element_state @@ -3027,7 +3027,7 @@ async def wait_for_selector( Literal["attached", "detached", "hidden", "visible"] ] = None, timeout: typing.Optional[float] = None, - strict: typing.Optional[bool] = None + strict: typing.Optional[bool] = None, ) -> typing.Optional["ElementHandle"]: """ElementHandle.wait_for_selector @@ -3090,7 +3090,7 @@ async def snapshot( self, *, interesting_only: typing.Optional[bool] = None, - root: typing.Optional["ElementHandle"] = None + root: typing.Optional["ElementHandle"] = None, ) -> typing.Optional[typing.Dict]: """Accessibility.snapshot @@ -3199,7 +3199,7 @@ async def set_files( ], *, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """FileChooser.set_files @@ -3300,7 +3300,7 @@ async def goto( wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] ] = None, - referer: typing.Optional[str] = None + referer: typing.Optional[str] = None, ) -> typing.Optional["Response"]: """Frame.goto @@ -3365,7 +3365,7 @@ def expect_navigation( wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] ] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> AsyncEventContextManager["Response"]: """Frame.expect_navigation @@ -3425,7 +3425,7 @@ async def wait_for_url( wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] ] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """Frame.wait_for_url @@ -3471,7 +3471,7 @@ async def wait_for_load_state( Literal["domcontentloaded", "load", "networkidle"] ] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """Frame.wait_for_load_state @@ -3707,7 +3707,7 @@ async def wait_for_selector( timeout: typing.Optional[float] = None, state: typing.Optional[ Literal["attached", "detached", "hidden", "visible"] - ] = None + ] = None, ) -> typing.Optional["ElementHandle"]: """Frame.wait_for_selector @@ -3780,7 +3780,7 @@ async def is_checked( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Frame.is_checked @@ -3814,7 +3814,7 @@ async def is_disabled( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Frame.is_disabled @@ -3848,7 +3848,7 @@ async def is_editable( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Frame.is_editable @@ -3882,7 +3882,7 @@ async def is_enabled( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Frame.is_enabled @@ -3916,7 +3916,7 @@ async def is_hidden( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Frame.is_hidden @@ -3950,7 +3950,7 @@ async def is_visible( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Frame.is_visible @@ -3986,7 +3986,7 @@ async def dispatch_event( event_init: typing.Optional[typing.Dict] = None, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """Frame.dispatch_event @@ -4056,7 +4056,7 @@ async def eval_on_selector( expression: str, arg: typing.Optional[typing.Any] = None, *, - strict: typing.Optional[bool] = None + strict: typing.Optional[bool] = None, ) -> typing.Any: """Frame.eval_on_selector @@ -4162,7 +4162,7 @@ async def set_content( timeout: typing.Optional[float] = None, wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] - ] = None + ] = None, ) -> None: """Frame.set_content @@ -4212,7 +4212,7 @@ async def add_script_tag( url: typing.Optional[str] = None, path: typing.Optional[typing.Union[str, pathlib.Path]] = None, content: typing.Optional[str] = None, - type: typing.Optional[str] = None + type: typing.Optional[str] = None, ) -> "ElementHandle": """Frame.add_script_tag @@ -4249,7 +4249,7 @@ async def add_style_tag( *, url: typing.Optional[str] = None, path: typing.Optional[typing.Union[str, pathlib.Path]] = None, - content: typing.Optional[str] = None + content: typing.Optional[str] = None, ) -> "ElementHandle": """Frame.add_style_tag @@ -4292,7 +4292,7 @@ async def click( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Frame.click @@ -4375,7 +4375,7 @@ async def dblclick( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Frame.dblclick @@ -4453,7 +4453,7 @@ async def tap( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Frame.tap @@ -4520,7 +4520,7 @@ async def fill( timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - force: typing.Optional[bool] = None + force: typing.Optional[bool] = None, ) -> None: """Frame.fill @@ -4573,7 +4573,7 @@ def locator( has_text: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, has_not_text: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, has: typing.Optional["Locator"] = None, - has_not: typing.Optional["Locator"] = None + has_not: typing.Optional["Locator"] = None, ) -> "Locator": """Frame.locator @@ -4631,7 +4631,7 @@ def get_by_alt_text( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Frame.get_by_alt_text @@ -4668,7 +4668,7 @@ def get_by_label( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Frame.get_by_label @@ -4709,7 +4709,7 @@ def get_by_placeholder( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Frame.get_by_placeholder @@ -4841,7 +4841,7 @@ def get_by_role( name: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, pressed: typing.Optional[bool] = None, selected: typing.Optional[bool] = None, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Frame.get_by_role @@ -4989,7 +4989,7 @@ def get_by_text( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Frame.get_by_text @@ -5053,7 +5053,7 @@ def get_by_title( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Frame.get_by_title @@ -5121,7 +5121,7 @@ async def focus( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """Frame.focus @@ -5152,7 +5152,7 @@ async def text_content( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> typing.Optional[str]: """Frame.text_content @@ -5186,7 +5186,7 @@ async def inner_text( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> str: """Frame.inner_text @@ -5220,7 +5220,7 @@ async def inner_html( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> str: """Frame.inner_html @@ -5255,7 +5255,7 @@ async def get_attribute( name: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> typing.Optional[str]: """Frame.get_attribute @@ -5298,7 +5298,7 @@ async def hover( no_wait_after: typing.Optional[bool] = None, force: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Frame.hover @@ -5366,7 +5366,7 @@ async def drag_and_drop( no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, timeout: typing.Optional[float] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Frame.drag_and_drop @@ -5427,7 +5427,7 @@ async def select_option( timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - force: typing.Optional[bool] = None + force: typing.Optional[bool] = None, ) -> typing.List[str]: """Frame.select_option @@ -5504,7 +5504,7 @@ async def input_value( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> str: """Frame.input_value @@ -5550,7 +5550,7 @@ async def set_input_files( *, strict: typing.Optional[bool] = None, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """Frame.set_input_files @@ -5597,7 +5597,7 @@ async def type( delay: typing.Optional[float] = None, strict: typing.Optional[bool] = None, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """Frame.type @@ -5647,7 +5647,7 @@ async def press( delay: typing.Optional[float] = None, strict: typing.Optional[bool] = None, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """Frame.press @@ -5713,7 +5713,7 @@ async def check( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Frame.check @@ -5775,7 +5775,7 @@ async def uncheck( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Frame.uncheck @@ -5852,7 +5852,7 @@ async def wait_for_function( *, arg: typing.Optional[typing.Any] = None, timeout: typing.Optional[float] = None, - polling: typing.Optional[typing.Union[float, Literal["raf"]]] = None + polling: typing.Optional[typing.Union[float, Literal["raf"]]] = None, ) -> "JSHandle": """Frame.wait_for_function @@ -5939,7 +5939,7 @@ async def set_checked( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Frame.set_checked @@ -6058,7 +6058,7 @@ def locator( has_text: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, has_not_text: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, has: typing.Optional["Locator"] = None, - has_not: typing.Optional["Locator"] = None + has_not: typing.Optional["Locator"] = None, ) -> "Locator": """FrameLocator.locator @@ -6113,7 +6113,7 @@ def get_by_alt_text( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """FrameLocator.get_by_alt_text @@ -6150,7 +6150,7 @@ def get_by_label( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """FrameLocator.get_by_label @@ -6191,7 +6191,7 @@ def get_by_placeholder( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """FrameLocator.get_by_placeholder @@ -6323,7 +6323,7 @@ def get_by_role( name: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, pressed: typing.Optional[bool] = None, selected: typing.Optional[bool] = None, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """FrameLocator.get_by_role @@ -6471,7 +6471,7 @@ def get_by_text( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """FrameLocator.get_by_text @@ -6535,7 +6535,7 @@ def get_by_title( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """FrameLocator.get_by_title @@ -6717,7 +6717,7 @@ async def register( script: typing.Optional[str] = None, *, path: typing.Optional[typing.Union[str, pathlib.Path]] = None, - content_script: typing.Optional[bool] = None + content_script: typing.Optional[bool] = None, ) -> None: """Selectors.register @@ -6812,7 +6812,7 @@ class Clock(AsyncBase): async def install( self, *, - time: typing.Optional[typing.Union[float, str, datetime.datetime]] = None + time: typing.Optional[typing.Union[float, str, datetime.datetime]] = None, ) -> None: """Clock.install @@ -7969,7 +7969,7 @@ def frame( *, url: typing.Optional[ typing.Union[str, typing.Pattern[str], typing.Callable[[str], bool]] - ] = None + ] = None, ) -> typing.Optional["Frame"]: """Page.frame @@ -8092,7 +8092,7 @@ async def wait_for_selector( state: typing.Optional[ Literal["attached", "detached", "hidden", "visible"] ] = None, - strict: typing.Optional[bool] = None + strict: typing.Optional[bool] = None, ) -> typing.Optional["ElementHandle"]: """Page.wait_for_selector @@ -8165,7 +8165,7 @@ async def is_checked( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Page.is_checked @@ -8199,7 +8199,7 @@ async def is_disabled( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Page.is_disabled @@ -8233,7 +8233,7 @@ async def is_editable( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Page.is_editable @@ -8267,7 +8267,7 @@ async def is_enabled( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Page.is_enabled @@ -8301,7 +8301,7 @@ async def is_hidden( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Page.is_hidden @@ -8335,7 +8335,7 @@ async def is_visible( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Page.is_visible @@ -8371,7 +8371,7 @@ async def dispatch_event( event_init: typing.Optional[typing.Dict] = None, *, timeout: typing.Optional[float] = None, - strict: typing.Optional[bool] = None + strict: typing.Optional[bool] = None, ) -> None: """Page.dispatch_event @@ -8553,7 +8553,7 @@ async def eval_on_selector( expression: str, arg: typing.Optional[typing.Any] = None, *, - strict: typing.Optional[bool] = None + strict: typing.Optional[bool] = None, ) -> typing.Any: """Page.eval_on_selector @@ -8642,7 +8642,7 @@ async def add_script_tag( url: typing.Optional[str] = None, path: typing.Optional[typing.Union[str, pathlib.Path]] = None, content: typing.Optional[str] = None, - type: typing.Optional[str] = None + type: typing.Optional[str] = None, ) -> "ElementHandle": """Page.add_script_tag @@ -8678,7 +8678,7 @@ async def add_style_tag( *, url: typing.Optional[str] = None, path: typing.Optional[typing.Union[str, pathlib.Path]] = None, - content: typing.Optional[str] = None + content: typing.Optional[str] = None, ) -> "ElementHandle": """Page.add_style_tag @@ -8771,7 +8771,7 @@ async def expose_binding( name: str, callback: typing.Callable, *, - handle: typing.Optional[bool] = None + handle: typing.Optional[bool] = None, ) -> None: """Page.expose_binding @@ -8873,7 +8873,7 @@ async def set_content( timeout: typing.Optional[float] = None, wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] - ] = None + ] = None, ) -> None: """Page.set_content @@ -8913,7 +8913,7 @@ async def goto( wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] ] = None, - referer: typing.Optional[str] = None + referer: typing.Optional[str] = None, ) -> typing.Optional["Response"]: """Page.goto @@ -8977,7 +8977,7 @@ async def reload( timeout: typing.Optional[float] = None, wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] - ] = None + ] = None, ) -> typing.Optional["Response"]: """Page.reload @@ -9016,7 +9016,7 @@ async def wait_for_load_state( Literal["domcontentloaded", "load", "networkidle"] ] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """Page.wait_for_load_state @@ -9072,7 +9072,7 @@ async def wait_for_url( wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] ] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """Page.wait_for_url @@ -9117,7 +9117,7 @@ async def wait_for_event( event: str, predicate: typing.Optional[typing.Callable] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> typing.Any: """Page.wait_for_event @@ -9154,7 +9154,7 @@ async def go_back( timeout: typing.Optional[float] = None, wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] - ] = None + ] = None, ) -> typing.Optional["Response"]: """Page.go_back @@ -9194,7 +9194,7 @@ async def go_forward( timeout: typing.Optional[float] = None, wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] - ] = None + ] = None, ) -> typing.Optional["Response"]: """Page.go_forward @@ -9260,7 +9260,7 @@ async def emulate_media( reduced_motion: typing.Optional[ Literal["no-preference", "null", "reduce"] ] = None, - forced_colors: typing.Optional[Literal["active", "none", "null"]] = None + forced_colors: typing.Optional[Literal["active", "none", "null"]] = None, ) -> None: """Page.emulate_media @@ -9361,7 +9361,7 @@ async def add_init_script( self, script: typing.Optional[str] = None, *, - path: typing.Optional[typing.Union[str, pathlib.Path]] = None + path: typing.Optional[typing.Union[str, pathlib.Path]] = None, ) -> None: """Page.add_init_script @@ -9406,7 +9406,7 @@ async def route( typing.Callable[["Route", "Request"], typing.Any], ], *, - times: typing.Optional[int] = None + times: typing.Optional[int] = None, ) -> None: """Page.route @@ -9558,7 +9558,7 @@ def handler(ws: WebSocketRoute): async def unroute_all( self, *, - behavior: typing.Optional[Literal["default", "ignoreErrors", "wait"]] = None + behavior: typing.Optional[Literal["default", "ignoreErrors", "wait"]] = None, ) -> None: """Page.unroute_all @@ -9587,7 +9587,7 @@ async def route_from_har( not_found: typing.Optional[Literal["abort", "fallback"]] = None, update: typing.Optional[bool] = None, update_content: typing.Optional[Literal["attach", "embed"]] = None, - update_mode: typing.Optional[Literal["full", "minimal"]] = None + update_mode: typing.Optional[Literal["full", "minimal"]] = None, ) -> None: """Page.route_from_har @@ -9649,7 +9649,7 @@ async def screenshot( scale: typing.Optional[Literal["css", "device"]] = None, mask: typing.Optional[typing.Sequence["Locator"]] = None, mask_color: typing.Optional[str] = None, - style: typing.Optional[str] = None + style: typing.Optional[str] = None, ) -> bytes: """Page.screenshot @@ -9742,7 +9742,7 @@ async def close( self, *, run_before_unload: typing.Optional[bool] = None, - reason: typing.Optional[str] = None + reason: typing.Optional[str] = None, ) -> None: """Page.close @@ -9794,7 +9794,7 @@ async def click( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, trial: typing.Optional[bool] = None, - strict: typing.Optional[bool] = None + strict: typing.Optional[bool] = None, ) -> None: """Page.click @@ -9877,7 +9877,7 @@ async def dblclick( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Page.dblclick @@ -9954,7 +9954,7 @@ async def tap( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Page.tap @@ -10021,7 +10021,7 @@ async def fill( timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - force: typing.Optional[bool] = None + force: typing.Optional[bool] = None, ) -> None: """Page.fill @@ -10074,7 +10074,7 @@ def locator( has_text: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, has_not_text: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, has: typing.Optional["Locator"] = None, - has_not: typing.Optional["Locator"] = None + has_not: typing.Optional["Locator"] = None, ) -> "Locator": """Page.locator @@ -10130,7 +10130,7 @@ def get_by_alt_text( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Page.get_by_alt_text @@ -10167,7 +10167,7 @@ def get_by_label( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Page.get_by_label @@ -10208,7 +10208,7 @@ def get_by_placeholder( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Page.get_by_placeholder @@ -10340,7 +10340,7 @@ def get_by_role( name: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, pressed: typing.Optional[bool] = None, selected: typing.Optional[bool] = None, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Page.get_by_role @@ -10488,7 +10488,7 @@ def get_by_text( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Page.get_by_text @@ -10552,7 +10552,7 @@ def get_by_title( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Page.get_by_title @@ -10620,7 +10620,7 @@ async def focus( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """Page.focus @@ -10651,7 +10651,7 @@ async def text_content( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> typing.Optional[str]: """Page.text_content @@ -10685,7 +10685,7 @@ async def inner_text( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> str: """Page.inner_text @@ -10719,7 +10719,7 @@ async def inner_html( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> str: """Page.inner_html @@ -10754,7 +10754,7 @@ async def get_attribute( name: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> typing.Optional[str]: """Page.get_attribute @@ -10797,7 +10797,7 @@ async def hover( no_wait_after: typing.Optional[bool] = None, force: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Page.hover @@ -10865,7 +10865,7 @@ async def drag_and_drop( no_wait_after: typing.Optional[bool] = None, timeout: typing.Optional[float] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Page.drag_and_drop @@ -10942,7 +10942,7 @@ async def select_option( timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, force: typing.Optional[bool] = None, - strict: typing.Optional[bool] = None + strict: typing.Optional[bool] = None, ) -> typing.List[str]: """Page.select_option @@ -11020,7 +11020,7 @@ async def input_value( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> str: """Page.input_value @@ -11066,7 +11066,7 @@ async def set_input_files( *, timeout: typing.Optional[float] = None, strict: typing.Optional[bool] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """Page.set_input_files @@ -11114,7 +11114,7 @@ async def type( delay: typing.Optional[float] = None, timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, - strict: typing.Optional[bool] = None + strict: typing.Optional[bool] = None, ) -> None: """Page.type @@ -11164,7 +11164,7 @@ async def press( delay: typing.Optional[float] = None, timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, - strict: typing.Optional[bool] = None + strict: typing.Optional[bool] = None, ) -> None: """Page.press @@ -11246,7 +11246,7 @@ async def check( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Page.check @@ -11308,7 +11308,7 @@ async def uncheck( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Page.uncheck @@ -11392,7 +11392,7 @@ async def wait_for_function( *, arg: typing.Optional[typing.Any] = None, timeout: typing.Optional[float] = None, - polling: typing.Optional[typing.Union[float, Literal["raf"]]] = None + polling: typing.Optional[typing.Union[float, Literal["raf"]]] = None, ) -> "JSHandle": """Page.wait_for_function @@ -11488,7 +11488,7 @@ async def pdf( margin: typing.Optional[PdfMargins] = None, path: typing.Optional[typing.Union[str, pathlib.Path]] = None, outline: typing.Optional[bool] = None, - tagged: typing.Optional[bool] = None + tagged: typing.Optional[bool] = None, ) -> bytes: """Page.pdf @@ -11612,7 +11612,7 @@ def expect_event( event: str, predicate: typing.Optional[typing.Callable] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> AsyncEventContextManager: """Page.expect_event @@ -11652,7 +11652,7 @@ def expect_console_message( self, predicate: typing.Optional[typing.Callable[["ConsoleMessage"], bool]] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> AsyncEventContextManager["ConsoleMessage"]: """Page.expect_console_message @@ -11683,7 +11683,7 @@ def expect_download( self, predicate: typing.Optional[typing.Callable[["Download"], bool]] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> AsyncEventContextManager["Download"]: """Page.expect_download @@ -11714,7 +11714,7 @@ def expect_file_chooser( self, predicate: typing.Optional[typing.Callable[["FileChooser"], bool]] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> AsyncEventContextManager["FileChooser"]: """Page.expect_file_chooser @@ -11750,7 +11750,7 @@ def expect_navigation( wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] ] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> AsyncEventContextManager["Response"]: """Page.expect_navigation @@ -11809,7 +11809,7 @@ def expect_popup( self, predicate: typing.Optional[typing.Callable[["Page"], bool]] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> AsyncEventContextManager["Page"]: """Page.expect_popup @@ -11842,7 +11842,7 @@ def expect_request( str, typing.Pattern[str], typing.Callable[["Request"], bool] ], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> AsyncEventContextManager["Request"]: """Page.expect_request @@ -11887,7 +11887,7 @@ def expect_request_finished( self, predicate: typing.Optional[typing.Callable[["Request"], bool]] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> AsyncEventContextManager["Request"]: """Page.expect_request_finished @@ -11920,7 +11920,7 @@ def expect_response( str, typing.Pattern[str], typing.Callable[["Response"], bool] ], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> AsyncEventContextManager["Response"]: """Page.expect_response @@ -11967,7 +11967,7 @@ def expect_websocket( self, predicate: typing.Optional[typing.Callable[["WebSocket"], bool]] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> AsyncEventContextManager["WebSocket"]: """Page.expect_websocket @@ -11998,7 +11998,7 @@ def expect_worker( self, predicate: typing.Optional[typing.Callable[["Worker"], bool]] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> AsyncEventContextManager["Worker"]: """Page.expect_worker @@ -12035,7 +12035,7 @@ async def set_checked( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Page.set_checked @@ -12099,7 +12099,7 @@ async def add_locator_handler( ], *, no_wait_after: typing.Optional[bool] = None, - times: typing.Optional[int] = None + times: typing.Optional[int] = None, ) -> None: """Page.add_locator_handler @@ -12814,7 +12814,7 @@ async def clear_cookies( *, name: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, domain: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, - path: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None + path: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, ) -> None: """BrowserContext.clear_cookies @@ -12963,7 +12963,7 @@ async def add_init_script( self, script: typing.Optional[str] = None, *, - path: typing.Optional[typing.Union[str, pathlib.Path]] = None + path: typing.Optional[typing.Union[str, pathlib.Path]] = None, ) -> None: """BrowserContext.add_init_script @@ -13005,7 +13005,7 @@ async def expose_binding( name: str, callback: typing.Callable, *, - handle: typing.Optional[bool] = None + handle: typing.Optional[bool] = None, ) -> None: """BrowserContext.expose_binding @@ -13136,7 +13136,7 @@ async def route( typing.Callable[["Route", "Request"], typing.Any], ], *, - times: typing.Optional[int] = None + times: typing.Optional[int] = None, ) -> None: """BrowserContext.route @@ -13287,7 +13287,7 @@ async def handler(ws: WebSocketRoute): async def unroute_all( self, *, - behavior: typing.Optional[Literal["default", "ignoreErrors", "wait"]] = None + behavior: typing.Optional[Literal["default", "ignoreErrors", "wait"]] = None, ) -> None: """BrowserContext.unroute_all @@ -13316,7 +13316,7 @@ async def route_from_har( not_found: typing.Optional[Literal["abort", "fallback"]] = None, update: typing.Optional[bool] = None, update_content: typing.Optional[Literal["attach", "embed"]] = None, - update_mode: typing.Optional[Literal["full", "minimal"]] = None + update_mode: typing.Optional[Literal["full", "minimal"]] = None, ) -> None: """BrowserContext.route_from_har @@ -13368,7 +13368,7 @@ def expect_event( event: str, predicate: typing.Optional[typing.Callable] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> AsyncEventContextManager: """BrowserContext.expect_event @@ -13444,7 +13444,7 @@ async def wait_for_event( event: str, predicate: typing.Optional[typing.Callable] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> typing.Any: """BrowserContext.wait_for_event @@ -13479,7 +13479,7 @@ def expect_console_message( self, predicate: typing.Optional[typing.Callable[["ConsoleMessage"], bool]] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> AsyncEventContextManager["ConsoleMessage"]: """BrowserContext.expect_console_message @@ -13511,7 +13511,7 @@ def expect_page( self, predicate: typing.Optional[typing.Callable[["Page"], bool]] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> AsyncEventContextManager["Page"]: """BrowserContext.expect_page @@ -13728,7 +13728,7 @@ async def new_context( ] = None, record_har_mode: typing.Optional[Literal["full", "minimal"]] = None, record_har_content: typing.Optional[Literal["attach", "embed", "omit"]] = None, - client_certificates: typing.Optional[typing.List[ClientCertificate]] = None + client_certificates: typing.Optional[typing.List[ClientCertificate]] = None, ) -> "BrowserContext": """Browser.new_context @@ -13969,7 +13969,7 @@ async def new_page( ] = None, record_har_mode: typing.Optional[Literal["full", "minimal"]] = None, record_har_content: typing.Optional[Literal["attach", "embed", "omit"]] = None, - client_certificates: typing.Optional[typing.List[ClientCertificate]] = None + client_certificates: typing.Optional[typing.List[ClientCertificate]] = None, ) -> "Page": """Browser.new_page @@ -14192,7 +14192,7 @@ async def start_tracing( page: typing.Optional["Page"] = None, path: typing.Optional[typing.Union[str, pathlib.Path]] = None, screenshots: typing.Optional[bool] = None, - categories: typing.Optional[typing.Sequence[str]] = None + categories: typing.Optional[typing.Sequence[str]] = None, ) -> None: """Browser.start_tracing @@ -14303,7 +14303,7 @@ async def launch( chromium_sandbox: typing.Optional[bool] = None, firefox_user_prefs: typing.Optional[ typing.Dict[str, typing.Union[str, float, bool]] - ] = None + ] = None, ) -> "Browser": """BrowserType.launch @@ -14478,7 +14478,7 @@ async def launch_persistent_context( ] = None, record_har_mode: typing.Optional[Literal["full", "minimal"]] = None, record_har_content: typing.Optional[Literal["attach", "embed", "omit"]] = None, - client_certificates: typing.Optional[typing.List[ClientCertificate]] = None + client_certificates: typing.Optional[typing.List[ClientCertificate]] = None, ) -> "BrowserContext": """BrowserType.launch_persistent_context @@ -14729,7 +14729,7 @@ async def connect_over_cdp( *, timeout: typing.Optional[float] = None, slow_mo: typing.Optional[float] = None, - headers: typing.Optional[typing.Dict[str, str]] = None + headers: typing.Optional[typing.Dict[str, str]] = None, ) -> "Browser": """BrowserType.connect_over_cdp @@ -14782,7 +14782,7 @@ async def connect( timeout: typing.Optional[float] = None, slow_mo: typing.Optional[float] = None, headers: typing.Optional[typing.Dict[str, str]] = None, - expose_network: typing.Optional[str] = None + expose_network: typing.Optional[str] = None, ) -> "Browser": """BrowserType.connect @@ -14970,7 +14970,7 @@ async def start( title: typing.Optional[str] = None, snapshots: typing.Optional[bool] = None, screenshots: typing.Optional[bool] = None, - sources: typing.Optional[bool] = None + sources: typing.Optional[bool] = None, ) -> None: """Tracing.start @@ -15208,7 +15208,7 @@ async def check( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Locator.check @@ -15276,7 +15276,7 @@ async def click( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Locator.click @@ -15369,7 +15369,7 @@ async def dblclick( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Locator.dblclick @@ -15435,7 +15435,7 @@ async def dispatch_event( type: str, event_init: typing.Optional[typing.Dict] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """Locator.dispatch_event @@ -15498,7 +15498,7 @@ async def evaluate( expression: str, arg: typing.Optional[typing.Any] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> typing.Any: """Locator.evaluate @@ -15589,7 +15589,7 @@ async def evaluate_handle( expression: str, arg: typing.Optional[typing.Any] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> "JSHandle": """Locator.evaluate_handle @@ -15638,7 +15638,7 @@ async def fill( *, timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, - force: typing.Optional[bool] = None + force: typing.Optional[bool] = None, ) -> None: """Locator.fill @@ -15687,7 +15687,7 @@ async def clear( *, timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, - force: typing.Optional[bool] = None + force: typing.Optional[bool] = None, ) -> None: """Locator.clear @@ -15734,7 +15734,7 @@ def locator( has_text: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, has_not_text: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, has: typing.Optional["Locator"] = None, - has_not: typing.Optional["Locator"] = None + has_not: typing.Optional["Locator"] = None, ) -> "Locator": """Locator.locator @@ -15789,7 +15789,7 @@ def get_by_alt_text( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Locator.get_by_alt_text @@ -15826,7 +15826,7 @@ def get_by_label( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Locator.get_by_label @@ -15867,7 +15867,7 @@ def get_by_placeholder( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Locator.get_by_placeholder @@ -15999,7 +15999,7 @@ def get_by_role( name: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, pressed: typing.Optional[bool] = None, selected: typing.Optional[bool] = None, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Locator.get_by_role @@ -16147,7 +16147,7 @@ def get_by_text( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Locator.get_by_text @@ -16211,7 +16211,7 @@ def get_by_title( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Locator.get_by_title @@ -16332,7 +16332,7 @@ def filter( has_text: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, has_not_text: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, has: typing.Optional["Locator"] = None, - has_not: typing.Optional["Locator"] = None + has_not: typing.Optional["Locator"] = None, ) -> "Locator": """Locator.filter @@ -16535,7 +16535,7 @@ async def drag_to( timeout: typing.Optional[float] = None, trial: typing.Optional[bool] = None, source_position: typing.Optional[Position] = None, - target_position: typing.Optional[Position] = None + target_position: typing.Optional[Position] = None, ) -> None: """Locator.drag_to @@ -16633,7 +16633,7 @@ async def hover( timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, force: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Locator.hover @@ -16937,7 +16937,7 @@ async def press( *, delay: typing.Optional[float] = None, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """Locator.press @@ -17008,7 +17008,7 @@ async def screenshot( scale: typing.Optional[Literal["css", "device"]] = None, mask: typing.Optional[typing.Sequence["Locator"]] = None, mask_color: typing.Optional[str] = None, - style: typing.Optional[str] = None + style: typing.Optional[str] = None, ) -> bytes: """Locator.screenshot @@ -17134,7 +17134,7 @@ async def select_option( ] = None, timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, - force: typing.Optional[bool] = None + force: typing.Optional[bool] = None, ) -> typing.List[str]: """Locator.select_option @@ -17215,7 +17215,7 @@ async def select_text( self, *, force: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """Locator.select_text @@ -17250,7 +17250,7 @@ async def set_input_files( ], *, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """Locator.set_input_files @@ -17317,7 +17317,7 @@ async def tap( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Locator.tap @@ -17403,7 +17403,7 @@ async def type( *, delay: typing.Optional[float] = None, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """Locator.type @@ -17440,7 +17440,7 @@ async def press_sequentially( *, delay: typing.Optional[float] = None, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """Locator.press_sequentially @@ -17494,7 +17494,7 @@ async def uncheck( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Locator.uncheck @@ -17597,7 +17597,7 @@ async def wait_for( timeout: typing.Optional[float] = None, state: typing.Optional[ Literal["attached", "detached", "hidden", "visible"] - ] = None + ] = None, ) -> None: """Locator.wait_for @@ -17640,7 +17640,7 @@ async def set_checked( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Locator.set_checked @@ -17869,7 +17869,7 @@ async def delete( fail_on_status_code: typing.Optional[bool] = None, ignore_https_errors: typing.Optional[bool] = None, max_redirects: typing.Optional[int] = None, - max_retries: typing.Optional[int] = None + max_retries: typing.Optional[int] = None, ) -> "APIResponse": """APIRequestContext.delete @@ -17950,7 +17950,7 @@ async def head( fail_on_status_code: typing.Optional[bool] = None, ignore_https_errors: typing.Optional[bool] = None, max_redirects: typing.Optional[int] = None, - max_retries: typing.Optional[int] = None + max_retries: typing.Optional[int] = None, ) -> "APIResponse": """APIRequestContext.head @@ -18031,7 +18031,7 @@ async def get( fail_on_status_code: typing.Optional[bool] = None, ignore_https_errors: typing.Optional[bool] = None, max_redirects: typing.Optional[int] = None, - max_retries: typing.Optional[int] = None + max_retries: typing.Optional[int] = None, ) -> "APIResponse": """APIRequestContext.get @@ -18124,7 +18124,7 @@ async def patch( fail_on_status_code: typing.Optional[bool] = None, ignore_https_errors: typing.Optional[bool] = None, max_redirects: typing.Optional[int] = None, - max_retries: typing.Optional[int] = None + max_retries: typing.Optional[int] = None, ) -> "APIResponse": """APIRequestContext.patch @@ -18205,7 +18205,7 @@ async def put( fail_on_status_code: typing.Optional[bool] = None, ignore_https_errors: typing.Optional[bool] = None, max_redirects: typing.Optional[int] = None, - max_retries: typing.Optional[int] = None + max_retries: typing.Optional[int] = None, ) -> "APIResponse": """APIRequestContext.put @@ -18286,7 +18286,7 @@ async def post( fail_on_status_code: typing.Optional[bool] = None, ignore_https_errors: typing.Optional[bool] = None, max_redirects: typing.Optional[int] = None, - max_retries: typing.Optional[int] = None + max_retries: typing.Optional[int] = None, ) -> "APIResponse": """APIRequestContext.post @@ -18399,7 +18399,7 @@ async def fetch( fail_on_status_code: typing.Optional[bool] = None, ignore_https_errors: typing.Optional[bool] = None, max_redirects: typing.Optional[int] = None, - max_retries: typing.Optional[int] = None + max_retries: typing.Optional[int] = None, ) -> "APIResponse": """APIRequestContext.fetch @@ -18521,7 +18521,7 @@ async def new_context( storage_state: typing.Optional[ typing.Union[StorageState, str, pathlib.Path] ] = None, - client_certificates: typing.Optional[typing.List[ClientCertificate]] = None + client_certificates: typing.Optional[typing.List[ClientCertificate]] = None, ) -> "APIRequestContext": """APIRequest.new_context @@ -18600,7 +18600,7 @@ async def to_have_title( self, title_or_reg_exp: typing.Union[typing.Pattern[str], str], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """PageAssertions.to_have_title @@ -18635,7 +18635,7 @@ async def not_to_have_title( self, title_or_reg_exp: typing.Union[typing.Pattern[str], str], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """PageAssertions.not_to_have_title @@ -18661,7 +18661,7 @@ async def to_have_url( url_or_reg_exp: typing.Union[str, typing.Pattern[str]], *, timeout: typing.Optional[float] = None, - ignore_case: typing.Optional[bool] = None + ignore_case: typing.Optional[bool] = None, ) -> None: """PageAssertions.to_have_url @@ -18700,7 +18700,7 @@ async def not_to_have_url( url_or_reg_exp: typing.Union[typing.Pattern[str], str], *, timeout: typing.Optional[float] = None, - ignore_case: typing.Optional[bool] = None + ignore_case: typing.Optional[bool] = None, ) -> None: """PageAssertions.not_to_have_url @@ -18742,7 +18742,7 @@ async def to_contain_text( *, use_inner_text: typing.Optional[bool] = None, timeout: typing.Optional[float] = None, - ignore_case: typing.Optional[bool] = None + ignore_case: typing.Optional[bool] = None, ) -> None: """LocatorAssertions.to_contain_text @@ -18834,7 +18834,7 @@ async def not_to_contain_text( *, use_inner_text: typing.Optional[bool] = None, timeout: typing.Optional[float] = None, - ignore_case: typing.Optional[bool] = None + ignore_case: typing.Optional[bool] = None, ) -> None: """LocatorAssertions.not_to_contain_text @@ -18869,7 +18869,7 @@ async def to_have_attribute( value: typing.Union[str, typing.Pattern[str]], *, ignore_case: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_have_attribute @@ -18910,7 +18910,7 @@ async def not_to_have_attribute( value: typing.Union[str, typing.Pattern[str]], *, ignore_case: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_have_attribute @@ -18946,7 +18946,7 @@ async def to_have_class( str, ], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_have_class @@ -19001,7 +19001,7 @@ async def not_to_have_class( str, ], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_have_class @@ -19076,7 +19076,7 @@ async def to_have_css( name: str, value: typing.Union[str, typing.Pattern[str]], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_have_css @@ -19111,7 +19111,7 @@ async def not_to_have_css( name: str, value: typing.Union[str, typing.Pattern[str]], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_have_css @@ -19138,7 +19138,7 @@ async def to_have_id( self, id: typing.Union[str, typing.Pattern[str]], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_have_id @@ -19170,7 +19170,7 @@ async def not_to_have_id( self, id: typing.Union[str, typing.Pattern[str]], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_have_id @@ -19251,7 +19251,7 @@ async def to_have_value( self, value: typing.Union[str, typing.Pattern[str]], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_have_value @@ -19285,7 +19285,7 @@ async def not_to_have_value( self, value: typing.Union[str, typing.Pattern[str]], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_have_value @@ -19312,7 +19312,7 @@ async def to_have_values( typing.Sequence[typing.Union[typing.Pattern[str], str]], ], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_have_values @@ -19363,7 +19363,7 @@ async def not_to_have_values( typing.Sequence[typing.Union[typing.Pattern[str], str]], ], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_have_values @@ -19396,7 +19396,7 @@ async def to_have_text( *, use_inner_text: typing.Optional[bool] = None, timeout: typing.Optional[float] = None, - ignore_case: typing.Optional[bool] = None + ignore_case: typing.Optional[bool] = None, ) -> None: """LocatorAssertions.to_have_text @@ -19487,7 +19487,7 @@ async def not_to_have_text( *, use_inner_text: typing.Optional[bool] = None, timeout: typing.Optional[float] = None, - ignore_case: typing.Optional[bool] = None + ignore_case: typing.Optional[bool] = None, ) -> None: """LocatorAssertions.not_to_have_text @@ -19520,7 +19520,7 @@ async def to_be_attached( self, *, attached: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_be_attached @@ -19549,7 +19549,7 @@ async def to_be_checked( self, *, timeout: typing.Optional[float] = None, - checked: typing.Optional[bool] = None + checked: typing.Optional[bool] = None, ) -> None: """LocatorAssertions.to_be_checked @@ -19580,7 +19580,7 @@ async def not_to_be_attached( self, *, attached: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_be_attached @@ -19667,7 +19667,7 @@ async def to_be_editable( self, *, editable: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_be_editable @@ -19698,7 +19698,7 @@ async def not_to_be_editable( self, *, editable: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_be_editable @@ -19761,7 +19761,7 @@ async def to_be_enabled( self, *, enabled: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_be_enabled @@ -19792,7 +19792,7 @@ async def not_to_be_enabled( self, *, enabled: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_be_enabled @@ -19856,7 +19856,7 @@ async def to_be_visible( self, *, visible: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_be_visible @@ -19897,7 +19897,7 @@ async def not_to_be_visible( self, *, visible: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_be_visible @@ -19962,7 +19962,7 @@ async def to_be_in_viewport( self, *, ratio: typing.Optional[float] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_be_in_viewport @@ -20001,7 +20001,7 @@ async def not_to_be_in_viewport( self, *, ratio: typing.Optional[float] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_be_in_viewport @@ -20024,7 +20024,7 @@ async def to_have_accessible_description( description: typing.Union[str, typing.Pattern[str]], *, ignore_case: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_have_accessible_description @@ -20061,7 +20061,7 @@ async def not_to_have_accessible_description( name: typing.Union[str, typing.Pattern[str]], *, ignore_case: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_have_accessible_description @@ -20090,7 +20090,7 @@ async def to_have_accessible_name( name: typing.Union[str, typing.Pattern[str]], *, ignore_case: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_have_accessible_name @@ -20127,7 +20127,7 @@ async def not_to_have_accessible_name( name: typing.Union[str, typing.Pattern[str]], *, ignore_case: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_have_accessible_name @@ -20238,7 +20238,7 @@ async def to_have_role( "treeitem", ], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_have_role @@ -20354,7 +20354,7 @@ async def not_to_have_role( "treeitem", ], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_have_role diff --git a/playwright/sync_api/_generated.py b/playwright/sync_api/_generated.py index 773c763dd..23aebc560 100644 --- a/playwright/sync_api/_generated.py +++ b/playwright/sync_api/_generated.py @@ -683,7 +683,7 @@ def fulfill( json: typing.Optional[typing.Any] = None, path: typing.Optional[typing.Union[str, pathlib.Path]] = None, content_type: typing.Optional[str] = None, - response: typing.Optional["APIResponse"] = None + response: typing.Optional["APIResponse"] = None, ) -> None: """Route.fulfill @@ -749,7 +749,7 @@ def fetch( post_data: typing.Optional[typing.Union[typing.Any, str, bytes]] = None, max_redirects: typing.Optional[int] = None, max_retries: typing.Optional[int] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> "APIResponse": """Route.fetch @@ -820,7 +820,7 @@ def fallback( url: typing.Optional[str] = None, method: typing.Optional[str] = None, headers: typing.Optional[typing.Dict[str, str]] = None, - post_data: typing.Optional[typing.Union[typing.Any, str, bytes]] = None + post_data: typing.Optional[typing.Union[typing.Any, str, bytes]] = None, ) -> None: """Route.fallback @@ -913,7 +913,7 @@ def continue_( url: typing.Optional[str] = None, method: typing.Optional[str] = None, headers: typing.Optional[typing.Dict[str, str]] = None, - post_data: typing.Optional[typing.Union[typing.Any, str, bytes]] = None + post_data: typing.Optional[typing.Union[typing.Any, str, bytes]] = None, ) -> None: """Route.continue_ @@ -1059,7 +1059,7 @@ def expect_event( event: str, predicate: typing.Optional[typing.Callable] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> EventContextManager: """WebSocket.expect_event @@ -1092,7 +1092,7 @@ def wait_for_event( event: str, predicate: typing.Optional[typing.Callable] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> typing.Any: """WebSocket.wait_for_event @@ -1463,7 +1463,7 @@ def down( self, *, button: typing.Optional[Literal["left", "middle", "right"]] = None, - click_count: typing.Optional[int] = None + click_count: typing.Optional[int] = None, ) -> None: """Mouse.down @@ -1485,7 +1485,7 @@ def up( self, *, button: typing.Optional[Literal["left", "middle", "right"]] = None, - click_count: typing.Optional[int] = None + click_count: typing.Optional[int] = None, ) -> None: """Mouse.up @@ -1510,7 +1510,7 @@ def click( *, delay: typing.Optional[float] = None, button: typing.Optional[Literal["left", "middle", "right"]] = None, - click_count: typing.Optional[int] = None + click_count: typing.Optional[int] = None, ) -> None: """Mouse.click @@ -1544,7 +1544,7 @@ def dblclick( y: float, *, delay: typing.Optional[float] = None, - button: typing.Optional[Literal["left", "middle", "right"]] = None + button: typing.Optional[Literal["left", "middle", "right"]] = None, ) -> None: """Mouse.dblclick @@ -2027,7 +2027,7 @@ def hover( timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, force: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """ElementHandle.hover @@ -2089,7 +2089,7 @@ def click( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """ElementHandle.click @@ -2162,7 +2162,7 @@ def dblclick( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """ElementHandle.dblclick @@ -2230,7 +2230,7 @@ def select_option( ] = None, timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> typing.List[str]: """ElementHandle.select_option @@ -2307,7 +2307,7 @@ def tap( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """ElementHandle.tap @@ -2364,7 +2364,7 @@ def fill( *, timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, - force: typing.Optional[bool] = None + force: typing.Optional[bool] = None, ) -> None: """ElementHandle.fill @@ -2404,7 +2404,7 @@ def select_text( self, *, force: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """ElementHandle.select_text @@ -2463,7 +2463,7 @@ def set_input_files( ], *, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """ElementHandle.set_input_files @@ -2511,7 +2511,7 @@ def type( *, delay: typing.Optional[float] = None, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """ElementHandle.type @@ -2550,7 +2550,7 @@ def press( *, delay: typing.Optional[float] = None, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """ElementHandle.press @@ -2608,7 +2608,7 @@ def set_checked( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """ElementHandle.set_checked @@ -2664,7 +2664,7 @@ def check( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """ElementHandle.check @@ -2718,7 +2718,7 @@ def uncheck( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """ElementHandle.uncheck @@ -2808,7 +2808,7 @@ def screenshot( scale: typing.Optional[Literal["css", "device"]] = None, mask: typing.Optional[typing.Sequence["Locator"]] = None, mask_color: typing.Optional[str] = None, - style: typing.Optional[str] = None + style: typing.Optional[str] = None, ) -> bytes: """ElementHandle.screenshot @@ -3027,7 +3027,7 @@ def wait_for_element_state( "disabled", "editable", "enabled", "hidden", "stable", "visible" ], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """ElementHandle.wait_for_element_state @@ -3069,7 +3069,7 @@ def wait_for_selector( Literal["attached", "detached", "hidden", "visible"] ] = None, timeout: typing.Optional[float] = None, - strict: typing.Optional[bool] = None + strict: typing.Optional[bool] = None, ) -> typing.Optional["ElementHandle"]: """ElementHandle.wait_for_selector @@ -3134,7 +3134,7 @@ def snapshot( self, *, interesting_only: typing.Optional[bool] = None, - root: typing.Optional["ElementHandle"] = None + root: typing.Optional["ElementHandle"] = None, ) -> typing.Optional[typing.Dict]: """Accessibility.snapshot @@ -3245,7 +3245,7 @@ def set_files( ], *, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """FileChooser.set_files @@ -3350,7 +3350,7 @@ def goto( wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] ] = None, - referer: typing.Optional[str] = None + referer: typing.Optional[str] = None, ) -> typing.Optional["Response"]: """Frame.goto @@ -3417,7 +3417,7 @@ def expect_navigation( wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] ] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> EventContextManager["Response"]: """Frame.expect_navigation @@ -3477,7 +3477,7 @@ def wait_for_url( wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] ] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """Frame.wait_for_url @@ -3525,7 +3525,7 @@ def wait_for_load_state( Literal["domcontentloaded", "load", "networkidle"] ] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """Frame.wait_for_load_state @@ -3763,7 +3763,7 @@ def wait_for_selector( timeout: typing.Optional[float] = None, state: typing.Optional[ Literal["attached", "detached", "hidden", "visible"] - ] = None + ] = None, ) -> typing.Optional["ElementHandle"]: """Frame.wait_for_selector @@ -3835,7 +3835,7 @@ def is_checked( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Frame.is_checked @@ -3871,7 +3871,7 @@ def is_disabled( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Frame.is_disabled @@ -3907,7 +3907,7 @@ def is_editable( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Frame.is_editable @@ -3943,7 +3943,7 @@ def is_enabled( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Frame.is_enabled @@ -3979,7 +3979,7 @@ def is_hidden( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Frame.is_hidden @@ -4015,7 +4015,7 @@ def is_visible( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Frame.is_visible @@ -4053,7 +4053,7 @@ def dispatch_event( event_init: typing.Optional[typing.Dict] = None, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """Frame.dispatch_event @@ -4125,7 +4125,7 @@ def eval_on_selector( expression: str, arg: typing.Optional[typing.Any] = None, *, - strict: typing.Optional[bool] = None + strict: typing.Optional[bool] = None, ) -> typing.Any: """Frame.eval_on_selector @@ -4235,7 +4235,7 @@ def set_content( timeout: typing.Optional[float] = None, wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] - ] = None + ] = None, ) -> None: """Frame.set_content @@ -4287,7 +4287,7 @@ def add_script_tag( url: typing.Optional[str] = None, path: typing.Optional[typing.Union[str, pathlib.Path]] = None, content: typing.Optional[str] = None, - type: typing.Optional[str] = None + type: typing.Optional[str] = None, ) -> "ElementHandle": """Frame.add_script_tag @@ -4326,7 +4326,7 @@ def add_style_tag( *, url: typing.Optional[str] = None, path: typing.Optional[typing.Union[str, pathlib.Path]] = None, - content: typing.Optional[str] = None + content: typing.Optional[str] = None, ) -> "ElementHandle": """Frame.add_style_tag @@ -4371,7 +4371,7 @@ def click( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Frame.click @@ -4456,7 +4456,7 @@ def dblclick( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Frame.dblclick @@ -4536,7 +4536,7 @@ def tap( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Frame.tap @@ -4605,7 +4605,7 @@ def fill( timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - force: typing.Optional[bool] = None + force: typing.Optional[bool] = None, ) -> None: """Frame.fill @@ -4660,7 +4660,7 @@ def locator( has_text: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, has_not_text: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, has: typing.Optional["Locator"] = None, - has_not: typing.Optional["Locator"] = None + has_not: typing.Optional["Locator"] = None, ) -> "Locator": """Frame.locator @@ -4718,7 +4718,7 @@ def get_by_alt_text( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Frame.get_by_alt_text @@ -4755,7 +4755,7 @@ def get_by_label( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Frame.get_by_label @@ -4796,7 +4796,7 @@ def get_by_placeholder( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Frame.get_by_placeholder @@ -4928,7 +4928,7 @@ def get_by_role( name: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, pressed: typing.Optional[bool] = None, selected: typing.Optional[bool] = None, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Frame.get_by_role @@ -5076,7 +5076,7 @@ def get_by_text( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Frame.get_by_text @@ -5140,7 +5140,7 @@ def get_by_title( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Frame.get_by_title @@ -5208,7 +5208,7 @@ def focus( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """Frame.focus @@ -5239,7 +5239,7 @@ def text_content( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> typing.Optional[str]: """Frame.text_content @@ -5275,7 +5275,7 @@ def inner_text( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> str: """Frame.inner_text @@ -5311,7 +5311,7 @@ def inner_html( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> str: """Frame.inner_html @@ -5348,7 +5348,7 @@ def get_attribute( name: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> typing.Optional[str]: """Frame.get_attribute @@ -5393,7 +5393,7 @@ def hover( no_wait_after: typing.Optional[bool] = None, force: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Frame.hover @@ -5463,7 +5463,7 @@ def drag_and_drop( no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, timeout: typing.Optional[float] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Frame.drag_and_drop @@ -5526,7 +5526,7 @@ def select_option( timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - force: typing.Optional[bool] = None + force: typing.Optional[bool] = None, ) -> typing.List[str]: """Frame.select_option @@ -5605,7 +5605,7 @@ def input_value( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> str: """Frame.input_value @@ -5653,7 +5653,7 @@ def set_input_files( *, strict: typing.Optional[bool] = None, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """Frame.set_input_files @@ -5702,7 +5702,7 @@ def type( delay: typing.Optional[float] = None, strict: typing.Optional[bool] = None, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """Frame.type @@ -5754,7 +5754,7 @@ def press( delay: typing.Optional[float] = None, strict: typing.Optional[bool] = None, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """Frame.press @@ -5822,7 +5822,7 @@ def check( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Frame.check @@ -5886,7 +5886,7 @@ def uncheck( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Frame.uncheck @@ -5965,7 +5965,7 @@ def wait_for_function( *, arg: typing.Optional[typing.Any] = None, timeout: typing.Optional[float] = None, - polling: typing.Optional[typing.Union[float, Literal["raf"]]] = None + polling: typing.Optional[typing.Union[float, Literal["raf"]]] = None, ) -> "JSHandle": """Frame.wait_for_function @@ -6051,7 +6051,7 @@ def set_checked( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Frame.set_checked @@ -6172,7 +6172,7 @@ def locator( has_text: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, has_not_text: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, has: typing.Optional["Locator"] = None, - has_not: typing.Optional["Locator"] = None + has_not: typing.Optional["Locator"] = None, ) -> "Locator": """FrameLocator.locator @@ -6227,7 +6227,7 @@ def get_by_alt_text( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """FrameLocator.get_by_alt_text @@ -6264,7 +6264,7 @@ def get_by_label( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """FrameLocator.get_by_label @@ -6305,7 +6305,7 @@ def get_by_placeholder( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """FrameLocator.get_by_placeholder @@ -6437,7 +6437,7 @@ def get_by_role( name: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, pressed: typing.Optional[bool] = None, selected: typing.Optional[bool] = None, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """FrameLocator.get_by_role @@ -6585,7 +6585,7 @@ def get_by_text( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """FrameLocator.get_by_text @@ -6649,7 +6649,7 @@ def get_by_title( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """FrameLocator.get_by_title @@ -6829,7 +6829,7 @@ def register( script: typing.Optional[str] = None, *, path: typing.Optional[typing.Union[str, pathlib.Path]] = None, - content_script: typing.Optional[bool] = None + content_script: typing.Optional[bool] = None, ) -> None: """Selectors.register @@ -6922,7 +6922,7 @@ class Clock(SyncBase): def install( self, *, - time: typing.Optional[typing.Union[float, str, datetime.datetime]] = None + time: typing.Optional[typing.Union[float, str, datetime.datetime]] = None, ) -> None: """Clock.install @@ -7979,7 +7979,7 @@ def frame( *, url: typing.Optional[ typing.Union[str, typing.Pattern[str], typing.Callable[[str], bool]] - ] = None + ] = None, ) -> typing.Optional["Frame"]: """Page.frame @@ -8102,7 +8102,7 @@ def wait_for_selector( state: typing.Optional[ Literal["attached", "detached", "hidden", "visible"] ] = None, - strict: typing.Optional[bool] = None + strict: typing.Optional[bool] = None, ) -> typing.Optional["ElementHandle"]: """Page.wait_for_selector @@ -8174,7 +8174,7 @@ def is_checked( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Page.is_checked @@ -8210,7 +8210,7 @@ def is_disabled( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Page.is_disabled @@ -8246,7 +8246,7 @@ def is_editable( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Page.is_editable @@ -8282,7 +8282,7 @@ def is_enabled( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Page.is_enabled @@ -8318,7 +8318,7 @@ def is_hidden( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Page.is_hidden @@ -8354,7 +8354,7 @@ def is_visible( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> bool: """Page.is_visible @@ -8392,7 +8392,7 @@ def dispatch_event( event_init: typing.Optional[typing.Dict] = None, *, timeout: typing.Optional[float] = None, - strict: typing.Optional[bool] = None + strict: typing.Optional[bool] = None, ) -> None: """Page.dispatch_event @@ -8578,7 +8578,7 @@ def eval_on_selector( expression: str, arg: typing.Optional[typing.Any] = None, *, - strict: typing.Optional[bool] = None + strict: typing.Optional[bool] = None, ) -> typing.Any: """Page.eval_on_selector @@ -8671,7 +8671,7 @@ def add_script_tag( url: typing.Optional[str] = None, path: typing.Optional[typing.Union[str, pathlib.Path]] = None, content: typing.Optional[str] = None, - type: typing.Optional[str] = None + type: typing.Optional[str] = None, ) -> "ElementHandle": """Page.add_script_tag @@ -8709,7 +8709,7 @@ def add_style_tag( *, url: typing.Optional[str] = None, path: typing.Optional[typing.Union[str, pathlib.Path]] = None, - content: typing.Optional[str] = None + content: typing.Optional[str] = None, ) -> "ElementHandle": """Page.add_style_tag @@ -8803,7 +8803,7 @@ def expose_binding( name: str, callback: typing.Callable, *, - handle: typing.Optional[bool] = None + handle: typing.Optional[bool] = None, ) -> None: """Page.expose_binding @@ -8904,7 +8904,7 @@ def set_content( timeout: typing.Optional[float] = None, wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] - ] = None + ] = None, ) -> None: """Page.set_content @@ -8946,7 +8946,7 @@ def goto( wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] ] = None, - referer: typing.Optional[str] = None + referer: typing.Optional[str] = None, ) -> typing.Optional["Response"]: """Page.goto @@ -9012,7 +9012,7 @@ def reload( timeout: typing.Optional[float] = None, wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] - ] = None + ] = None, ) -> typing.Optional["Response"]: """Page.reload @@ -9051,7 +9051,7 @@ def wait_for_load_state( Literal["domcontentloaded", "load", "networkidle"] ] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """Page.wait_for_load_state @@ -9107,7 +9107,7 @@ def wait_for_url( wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] ] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """Page.wait_for_url @@ -9154,7 +9154,7 @@ def wait_for_event( event: str, predicate: typing.Optional[typing.Callable] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> typing.Any: """Page.wait_for_event @@ -9195,7 +9195,7 @@ def go_back( timeout: typing.Optional[float] = None, wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] - ] = None + ] = None, ) -> typing.Optional["Response"]: """Page.go_back @@ -9235,7 +9235,7 @@ def go_forward( timeout: typing.Optional[float] = None, wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] - ] = None + ] = None, ) -> typing.Optional["Response"]: """Page.go_forward @@ -9301,7 +9301,7 @@ def emulate_media( reduced_motion: typing.Optional[ Literal["no-preference", "null", "reduce"] ] = None, - forced_colors: typing.Optional[Literal["active", "none", "null"]] = None + forced_colors: typing.Optional[Literal["active", "none", "null"]] = None, ) -> None: """Page.emulate_media @@ -9403,7 +9403,7 @@ def add_init_script( self, script: typing.Optional[str] = None, *, - path: typing.Optional[typing.Union[str, pathlib.Path]] = None + path: typing.Optional[typing.Union[str, pathlib.Path]] = None, ) -> None: """Page.add_init_script @@ -9448,7 +9448,7 @@ def route( typing.Callable[["Route", "Request"], typing.Any], ], *, - times: typing.Optional[int] = None + times: typing.Optional[int] = None, ) -> None: """Page.route @@ -9606,7 +9606,7 @@ def handler(ws: WebSocketRoute): def unroute_all( self, *, - behavior: typing.Optional[Literal["default", "ignoreErrors", "wait"]] = None + behavior: typing.Optional[Literal["default", "ignoreErrors", "wait"]] = None, ) -> None: """Page.unroute_all @@ -9635,7 +9635,7 @@ def route_from_har( not_found: typing.Optional[Literal["abort", "fallback"]] = None, update: typing.Optional[bool] = None, update_content: typing.Optional[Literal["attach", "embed"]] = None, - update_mode: typing.Optional[Literal["full", "minimal"]] = None + update_mode: typing.Optional[Literal["full", "minimal"]] = None, ) -> None: """Page.route_from_har @@ -9699,7 +9699,7 @@ def screenshot( scale: typing.Optional[Literal["css", "device"]] = None, mask: typing.Optional[typing.Sequence["Locator"]] = None, mask_color: typing.Optional[str] = None, - style: typing.Optional[str] = None + style: typing.Optional[str] = None, ) -> bytes: """Page.screenshot @@ -9794,7 +9794,7 @@ def close( self, *, run_before_unload: typing.Optional[bool] = None, - reason: typing.Optional[str] = None + reason: typing.Optional[str] = None, ) -> None: """Page.close @@ -9848,7 +9848,7 @@ def click( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, trial: typing.Optional[bool] = None, - strict: typing.Optional[bool] = None + strict: typing.Optional[bool] = None, ) -> None: """Page.click @@ -9933,7 +9933,7 @@ def dblclick( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Page.dblclick @@ -10012,7 +10012,7 @@ def tap( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Page.tap @@ -10081,7 +10081,7 @@ def fill( timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - force: typing.Optional[bool] = None + force: typing.Optional[bool] = None, ) -> None: """Page.fill @@ -10136,7 +10136,7 @@ def locator( has_text: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, has_not_text: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, has: typing.Optional["Locator"] = None, - has_not: typing.Optional["Locator"] = None + has_not: typing.Optional["Locator"] = None, ) -> "Locator": """Page.locator @@ -10192,7 +10192,7 @@ def get_by_alt_text( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Page.get_by_alt_text @@ -10229,7 +10229,7 @@ def get_by_label( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Page.get_by_label @@ -10270,7 +10270,7 @@ def get_by_placeholder( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Page.get_by_placeholder @@ -10402,7 +10402,7 @@ def get_by_role( name: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, pressed: typing.Optional[bool] = None, selected: typing.Optional[bool] = None, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Page.get_by_role @@ -10550,7 +10550,7 @@ def get_by_text( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Page.get_by_text @@ -10614,7 +10614,7 @@ def get_by_title( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Page.get_by_title @@ -10682,7 +10682,7 @@ def focus( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """Page.focus @@ -10713,7 +10713,7 @@ def text_content( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> typing.Optional[str]: """Page.text_content @@ -10749,7 +10749,7 @@ def inner_text( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> str: """Page.inner_text @@ -10785,7 +10785,7 @@ def inner_html( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> str: """Page.inner_html @@ -10822,7 +10822,7 @@ def get_attribute( name: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> typing.Optional[str]: """Page.get_attribute @@ -10867,7 +10867,7 @@ def hover( no_wait_after: typing.Optional[bool] = None, force: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Page.hover @@ -10937,7 +10937,7 @@ def drag_and_drop( no_wait_after: typing.Optional[bool] = None, timeout: typing.Optional[float] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Page.drag_and_drop @@ -11016,7 +11016,7 @@ def select_option( timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, force: typing.Optional[bool] = None, - strict: typing.Optional[bool] = None + strict: typing.Optional[bool] = None, ) -> typing.List[str]: """Page.select_option @@ -11096,7 +11096,7 @@ def input_value( selector: str, *, strict: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> str: """Page.input_value @@ -11144,7 +11144,7 @@ def set_input_files( *, timeout: typing.Optional[float] = None, strict: typing.Optional[bool] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """Page.set_input_files @@ -11194,7 +11194,7 @@ def type( delay: typing.Optional[float] = None, timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, - strict: typing.Optional[bool] = None + strict: typing.Optional[bool] = None, ) -> None: """Page.type @@ -11246,7 +11246,7 @@ def press( delay: typing.Optional[float] = None, timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, - strict: typing.Optional[bool] = None + strict: typing.Optional[bool] = None, ) -> None: """Page.press @@ -11330,7 +11330,7 @@ def check( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Page.check @@ -11394,7 +11394,7 @@ def uncheck( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Page.uncheck @@ -11480,7 +11480,7 @@ def wait_for_function( *, arg: typing.Optional[typing.Any] = None, timeout: typing.Optional[float] = None, - polling: typing.Optional[typing.Union[float, Literal["raf"]]] = None + polling: typing.Optional[typing.Union[float, Literal["raf"]]] = None, ) -> "JSHandle": """Page.wait_for_function @@ -11575,7 +11575,7 @@ def pdf( margin: typing.Optional[PdfMargins] = None, path: typing.Optional[typing.Union[str, pathlib.Path]] = None, outline: typing.Optional[bool] = None, - tagged: typing.Optional[bool] = None + tagged: typing.Optional[bool] = None, ) -> bytes: """Page.pdf @@ -11701,7 +11701,7 @@ def expect_event( event: str, predicate: typing.Optional[typing.Callable] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> EventContextManager: """Page.expect_event @@ -11741,7 +11741,7 @@ def expect_console_message( self, predicate: typing.Optional[typing.Callable[["ConsoleMessage"], bool]] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> EventContextManager["ConsoleMessage"]: """Page.expect_console_message @@ -11772,7 +11772,7 @@ def expect_download( self, predicate: typing.Optional[typing.Callable[["Download"], bool]] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> EventContextManager["Download"]: """Page.expect_download @@ -11803,7 +11803,7 @@ def expect_file_chooser( self, predicate: typing.Optional[typing.Callable[["FileChooser"], bool]] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> EventContextManager["FileChooser"]: """Page.expect_file_chooser @@ -11839,7 +11839,7 @@ def expect_navigation( wait_until: typing.Optional[ Literal["commit", "domcontentloaded", "load", "networkidle"] ] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> EventContextManager["Response"]: """Page.expect_navigation @@ -11898,7 +11898,7 @@ def expect_popup( self, predicate: typing.Optional[typing.Callable[["Page"], bool]] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> EventContextManager["Page"]: """Page.expect_popup @@ -11931,7 +11931,7 @@ def expect_request( str, typing.Pattern[str], typing.Callable[["Request"], bool] ], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> EventContextManager["Request"]: """Page.expect_request @@ -11976,7 +11976,7 @@ def expect_request_finished( self, predicate: typing.Optional[typing.Callable[["Request"], bool]] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> EventContextManager["Request"]: """Page.expect_request_finished @@ -12009,7 +12009,7 @@ def expect_response( str, typing.Pattern[str], typing.Callable[["Response"], bool] ], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> EventContextManager["Response"]: """Page.expect_response @@ -12056,7 +12056,7 @@ def expect_websocket( self, predicate: typing.Optional[typing.Callable[["WebSocket"], bool]] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> EventContextManager["WebSocket"]: """Page.expect_websocket @@ -12087,7 +12087,7 @@ def expect_worker( self, predicate: typing.Optional[typing.Callable[["Worker"], bool]] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> EventContextManager["Worker"]: """Page.expect_worker @@ -12124,7 +12124,7 @@ def set_checked( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, strict: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Page.set_checked @@ -12190,7 +12190,7 @@ def add_locator_handler( ], *, no_wait_after: typing.Optional[bool] = None, - times: typing.Optional[int] = None + times: typing.Optional[int] = None, ) -> None: """Page.add_locator_handler @@ -12841,7 +12841,7 @@ def clear_cookies( *, name: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, domain: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, - path: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None + path: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, ) -> None: """BrowserContext.clear_cookies @@ -12992,7 +12992,7 @@ def add_init_script( self, script: typing.Optional[str] = None, *, - path: typing.Optional[typing.Union[str, pathlib.Path]] = None + path: typing.Optional[typing.Union[str, pathlib.Path]] = None, ) -> None: """BrowserContext.add_init_script @@ -13034,7 +13034,7 @@ def expose_binding( name: str, callback: typing.Callable, *, - handle: typing.Optional[bool] = None + handle: typing.Optional[bool] = None, ) -> None: """BrowserContext.expose_binding @@ -13163,7 +13163,7 @@ def route( typing.Callable[["Route", "Request"], typing.Any], ], *, - times: typing.Optional[int] = None + times: typing.Optional[int] = None, ) -> None: """BrowserContext.route @@ -13321,7 +13321,7 @@ def handler(ws: WebSocketRoute): def unroute_all( self, *, - behavior: typing.Optional[Literal["default", "ignoreErrors", "wait"]] = None + behavior: typing.Optional[Literal["default", "ignoreErrors", "wait"]] = None, ) -> None: """BrowserContext.unroute_all @@ -13350,7 +13350,7 @@ def route_from_har( not_found: typing.Optional[Literal["abort", "fallback"]] = None, update: typing.Optional[bool] = None, update_content: typing.Optional[Literal["attach", "embed"]] = None, - update_mode: typing.Optional[Literal["full", "minimal"]] = None + update_mode: typing.Optional[Literal["full", "minimal"]] = None, ) -> None: """BrowserContext.route_from_har @@ -13404,7 +13404,7 @@ def expect_event( event: str, predicate: typing.Optional[typing.Callable] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> EventContextManager: """BrowserContext.expect_event @@ -13480,7 +13480,7 @@ def wait_for_event( event: str, predicate: typing.Optional[typing.Callable] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> typing.Any: """BrowserContext.wait_for_event @@ -13519,7 +13519,7 @@ def expect_console_message( self, predicate: typing.Optional[typing.Callable[["ConsoleMessage"], bool]] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> EventContextManager["ConsoleMessage"]: """BrowserContext.expect_console_message @@ -13551,7 +13551,7 @@ def expect_page( self, predicate: typing.Optional[typing.Callable[["Page"], bool]] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> EventContextManager["Page"]: """BrowserContext.expect_page @@ -13764,7 +13764,7 @@ def new_context( ] = None, record_har_mode: typing.Optional[Literal["full", "minimal"]] = None, record_har_content: typing.Optional[Literal["attach", "embed", "omit"]] = None, - client_certificates: typing.Optional[typing.List[ClientCertificate]] = None + client_certificates: typing.Optional[typing.List[ClientCertificate]] = None, ) -> "BrowserContext": """Browser.new_context @@ -14007,7 +14007,7 @@ def new_page( ] = None, record_har_mode: typing.Optional[Literal["full", "minimal"]] = None, record_har_content: typing.Optional[Literal["attach", "embed", "omit"]] = None, - client_certificates: typing.Optional[typing.List[ClientCertificate]] = None + client_certificates: typing.Optional[typing.List[ClientCertificate]] = None, ) -> "Page": """Browser.new_page @@ -14232,7 +14232,7 @@ def start_tracing( page: typing.Optional["Page"] = None, path: typing.Optional[typing.Union[str, pathlib.Path]] = None, screenshots: typing.Optional[bool] = None, - categories: typing.Optional[typing.Sequence[str]] = None + categories: typing.Optional[typing.Sequence[str]] = None, ) -> None: """Browser.start_tracing @@ -14345,7 +14345,7 @@ def launch( chromium_sandbox: typing.Optional[bool] = None, firefox_user_prefs: typing.Optional[ typing.Dict[str, typing.Union[str, float, bool]] - ] = None + ] = None, ) -> "Browser": """BrowserType.launch @@ -14522,7 +14522,7 @@ def launch_persistent_context( ] = None, record_har_mode: typing.Optional[Literal["full", "minimal"]] = None, record_har_content: typing.Optional[Literal["attach", "embed", "omit"]] = None, - client_certificates: typing.Optional[typing.List[ClientCertificate]] = None + client_certificates: typing.Optional[typing.List[ClientCertificate]] = None, ) -> "BrowserContext": """BrowserType.launch_persistent_context @@ -14775,7 +14775,7 @@ def connect_over_cdp( *, timeout: typing.Optional[float] = None, slow_mo: typing.Optional[float] = None, - headers: typing.Optional[typing.Dict[str, str]] = None + headers: typing.Optional[typing.Dict[str, str]] = None, ) -> "Browser": """BrowserType.connect_over_cdp @@ -14830,7 +14830,7 @@ def connect( timeout: typing.Optional[float] = None, slow_mo: typing.Optional[float] = None, headers: typing.Optional[typing.Dict[str, str]] = None, - expose_network: typing.Optional[str] = None + expose_network: typing.Optional[str] = None, ) -> "Browser": """BrowserType.connect @@ -15017,7 +15017,7 @@ def start( title: typing.Optional[str] = None, snapshots: typing.Optional[bool] = None, screenshots: typing.Optional[bool] = None, - sources: typing.Optional[bool] = None + sources: typing.Optional[bool] = None, ) -> None: """Tracing.start @@ -15257,7 +15257,7 @@ def check( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Locator.check @@ -15327,7 +15327,7 @@ def click( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Locator.click @@ -15422,7 +15422,7 @@ def dblclick( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Locator.dblclick @@ -15490,7 +15490,7 @@ def dispatch_event( type: str, event_init: typing.Optional[typing.Dict] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """Locator.dispatch_event @@ -15555,7 +15555,7 @@ def evaluate( expression: str, arg: typing.Optional[typing.Any] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> typing.Any: """Locator.evaluate @@ -15650,7 +15650,7 @@ def evaluate_handle( expression: str, arg: typing.Optional[typing.Any] = None, *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> "JSHandle": """Locator.evaluate_handle @@ -15701,7 +15701,7 @@ def fill( *, timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, - force: typing.Optional[bool] = None + force: typing.Optional[bool] = None, ) -> None: """Locator.fill @@ -15752,7 +15752,7 @@ def clear( *, timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, - force: typing.Optional[bool] = None + force: typing.Optional[bool] = None, ) -> None: """Locator.clear @@ -15801,7 +15801,7 @@ def locator( has_text: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, has_not_text: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, has: typing.Optional["Locator"] = None, - has_not: typing.Optional["Locator"] = None + has_not: typing.Optional["Locator"] = None, ) -> "Locator": """Locator.locator @@ -15856,7 +15856,7 @@ def get_by_alt_text( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Locator.get_by_alt_text @@ -15893,7 +15893,7 @@ def get_by_label( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Locator.get_by_label @@ -15934,7 +15934,7 @@ def get_by_placeholder( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Locator.get_by_placeholder @@ -16066,7 +16066,7 @@ def get_by_role( name: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, pressed: typing.Optional[bool] = None, selected: typing.Optional[bool] = None, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Locator.get_by_role @@ -16214,7 +16214,7 @@ def get_by_text( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Locator.get_by_text @@ -16278,7 +16278,7 @@ def get_by_title( self, text: typing.Union[str, typing.Pattern[str]], *, - exact: typing.Optional[bool] = None + exact: typing.Optional[bool] = None, ) -> "Locator": """Locator.get_by_title @@ -16401,7 +16401,7 @@ def filter( has_text: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, has_not_text: typing.Optional[typing.Union[str, typing.Pattern[str]]] = None, has: typing.Optional["Locator"] = None, - has_not: typing.Optional["Locator"] = None + has_not: typing.Optional["Locator"] = None, ) -> "Locator": """Locator.filter @@ -16605,7 +16605,7 @@ def drag_to( timeout: typing.Optional[float] = None, trial: typing.Optional[bool] = None, source_position: typing.Optional[Position] = None, - target_position: typing.Optional[Position] = None + target_position: typing.Optional[Position] = None, ) -> None: """Locator.drag_to @@ -16705,7 +16705,7 @@ def hover( timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, force: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Locator.hover @@ -17023,7 +17023,7 @@ def press( *, delay: typing.Optional[float] = None, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """Locator.press @@ -17096,7 +17096,7 @@ def screenshot( scale: typing.Optional[Literal["css", "device"]] = None, mask: typing.Optional[typing.Sequence["Locator"]] = None, mask_color: typing.Optional[str] = None, - style: typing.Optional[str] = None + style: typing.Optional[str] = None, ) -> bytes: """Locator.screenshot @@ -17224,7 +17224,7 @@ def select_option( ] = None, timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, - force: typing.Optional[bool] = None + force: typing.Optional[bool] = None, ) -> typing.List[str]: """Locator.select_option @@ -17307,7 +17307,7 @@ def select_text( self, *, force: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """Locator.select_text @@ -17342,7 +17342,7 @@ def set_input_files( ], *, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """Locator.set_input_files @@ -17413,7 +17413,7 @@ def tap( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Locator.tap @@ -17501,7 +17501,7 @@ def type( *, delay: typing.Optional[float] = None, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """Locator.type @@ -17540,7 +17540,7 @@ def press_sequentially( *, delay: typing.Optional[float] = None, timeout: typing.Optional[float] = None, - no_wait_after: typing.Optional[bool] = None + no_wait_after: typing.Optional[bool] = None, ) -> None: """Locator.press_sequentially @@ -17596,7 +17596,7 @@ def uncheck( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Locator.uncheck @@ -17701,7 +17701,7 @@ def wait_for( timeout: typing.Optional[float] = None, state: typing.Optional[ Literal["attached", "detached", "hidden", "visible"] - ] = None + ] = None, ) -> None: """Locator.wait_for @@ -17744,7 +17744,7 @@ def set_checked( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, - trial: typing.Optional[bool] = None + trial: typing.Optional[bool] = None, ) -> None: """Locator.set_checked @@ -17977,7 +17977,7 @@ def delete( fail_on_status_code: typing.Optional[bool] = None, ignore_https_errors: typing.Optional[bool] = None, max_redirects: typing.Optional[int] = None, - max_retries: typing.Optional[int] = None + max_retries: typing.Optional[int] = None, ) -> "APIResponse": """APIRequestContext.delete @@ -18060,7 +18060,7 @@ def head( fail_on_status_code: typing.Optional[bool] = None, ignore_https_errors: typing.Optional[bool] = None, max_redirects: typing.Optional[int] = None, - max_retries: typing.Optional[int] = None + max_retries: typing.Optional[int] = None, ) -> "APIResponse": """APIRequestContext.head @@ -18143,7 +18143,7 @@ def get( fail_on_status_code: typing.Optional[bool] = None, ignore_https_errors: typing.Optional[bool] = None, max_redirects: typing.Optional[int] = None, - max_retries: typing.Optional[int] = None + max_retries: typing.Optional[int] = None, ) -> "APIResponse": """APIRequestContext.get @@ -18238,7 +18238,7 @@ def patch( fail_on_status_code: typing.Optional[bool] = None, ignore_https_errors: typing.Optional[bool] = None, max_redirects: typing.Optional[int] = None, - max_retries: typing.Optional[int] = None + max_retries: typing.Optional[int] = None, ) -> "APIResponse": """APIRequestContext.patch @@ -18321,7 +18321,7 @@ def put( fail_on_status_code: typing.Optional[bool] = None, ignore_https_errors: typing.Optional[bool] = None, max_redirects: typing.Optional[int] = None, - max_retries: typing.Optional[int] = None + max_retries: typing.Optional[int] = None, ) -> "APIResponse": """APIRequestContext.put @@ -18404,7 +18404,7 @@ def post( fail_on_status_code: typing.Optional[bool] = None, ignore_https_errors: typing.Optional[bool] = None, max_redirects: typing.Optional[int] = None, - max_retries: typing.Optional[int] = None + max_retries: typing.Optional[int] = None, ) -> "APIResponse": """APIRequestContext.post @@ -18519,7 +18519,7 @@ def fetch( fail_on_status_code: typing.Optional[bool] = None, ignore_https_errors: typing.Optional[bool] = None, max_redirects: typing.Optional[int] = None, - max_retries: typing.Optional[int] = None + max_retries: typing.Optional[int] = None, ) -> "APIResponse": """APIRequestContext.fetch @@ -18647,7 +18647,7 @@ def new_context( storage_state: typing.Optional[ typing.Union[StorageState, str, pathlib.Path] ] = None, - client_certificates: typing.Optional[typing.List[ClientCertificate]] = None + client_certificates: typing.Optional[typing.List[ClientCertificate]] = None, ) -> "APIRequestContext": """APIRequest.new_context @@ -18728,7 +18728,7 @@ def to_have_title( self, title_or_reg_exp: typing.Union[typing.Pattern[str], str], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """PageAssertions.to_have_title @@ -18765,7 +18765,7 @@ def not_to_have_title( self, title_or_reg_exp: typing.Union[typing.Pattern[str], str], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """PageAssertions.not_to_have_title @@ -18793,7 +18793,7 @@ def to_have_url( url_or_reg_exp: typing.Union[str, typing.Pattern[str]], *, timeout: typing.Optional[float] = None, - ignore_case: typing.Optional[bool] = None + ignore_case: typing.Optional[bool] = None, ) -> None: """PageAssertions.to_have_url @@ -18834,7 +18834,7 @@ def not_to_have_url( url_or_reg_exp: typing.Union[typing.Pattern[str], str], *, timeout: typing.Optional[float] = None, - ignore_case: typing.Optional[bool] = None + ignore_case: typing.Optional[bool] = None, ) -> None: """PageAssertions.not_to_have_url @@ -18878,7 +18878,7 @@ def to_contain_text( *, use_inner_text: typing.Optional[bool] = None, timeout: typing.Optional[float] = None, - ignore_case: typing.Optional[bool] = None + ignore_case: typing.Optional[bool] = None, ) -> None: """LocatorAssertions.to_contain_text @@ -18972,7 +18972,7 @@ def not_to_contain_text( *, use_inner_text: typing.Optional[bool] = None, timeout: typing.Optional[float] = None, - ignore_case: typing.Optional[bool] = None + ignore_case: typing.Optional[bool] = None, ) -> None: """LocatorAssertions.not_to_contain_text @@ -19009,7 +19009,7 @@ def to_have_attribute( value: typing.Union[str, typing.Pattern[str]], *, ignore_case: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_have_attribute @@ -19052,7 +19052,7 @@ def not_to_have_attribute( value: typing.Union[str, typing.Pattern[str]], *, ignore_case: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_have_attribute @@ -19090,7 +19090,7 @@ def to_have_class( str, ], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_have_class @@ -19147,7 +19147,7 @@ def not_to_have_class( str, ], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_have_class @@ -19224,7 +19224,7 @@ def to_have_css( name: str, value: typing.Union[str, typing.Pattern[str]], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_have_css @@ -19261,7 +19261,7 @@ def not_to_have_css( name: str, value: typing.Union[str, typing.Pattern[str]], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_have_css @@ -19288,7 +19288,7 @@ def to_have_id( self, id: typing.Union[str, typing.Pattern[str]], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_have_id @@ -19320,7 +19320,7 @@ def not_to_have_id( self, id: typing.Union[str, typing.Pattern[str]], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_have_id @@ -19405,7 +19405,7 @@ def to_have_value( self, value: typing.Union[str, typing.Pattern[str]], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_have_value @@ -19439,7 +19439,7 @@ def not_to_have_value( self, value: typing.Union[str, typing.Pattern[str]], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_have_value @@ -19466,7 +19466,7 @@ def to_have_values( typing.Sequence[typing.Union[typing.Pattern[str], str]], ], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_have_values @@ -19519,7 +19519,7 @@ def not_to_have_values( typing.Sequence[typing.Union[typing.Pattern[str], str]], ], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_have_values @@ -19554,7 +19554,7 @@ def to_have_text( *, use_inner_text: typing.Optional[bool] = None, timeout: typing.Optional[float] = None, - ignore_case: typing.Optional[bool] = None + ignore_case: typing.Optional[bool] = None, ) -> None: """LocatorAssertions.to_have_text @@ -19647,7 +19647,7 @@ def not_to_have_text( *, use_inner_text: typing.Optional[bool] = None, timeout: typing.Optional[float] = None, - ignore_case: typing.Optional[bool] = None + ignore_case: typing.Optional[bool] = None, ) -> None: """LocatorAssertions.not_to_have_text @@ -19682,7 +19682,7 @@ def to_be_attached( self, *, attached: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_be_attached @@ -19713,7 +19713,7 @@ def to_be_checked( self, *, timeout: typing.Optional[float] = None, - checked: typing.Optional[bool] = None + checked: typing.Optional[bool] = None, ) -> None: """LocatorAssertions.to_be_checked @@ -19744,7 +19744,7 @@ def not_to_be_attached( self, *, attached: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_be_attached @@ -19829,7 +19829,7 @@ def to_be_editable( self, *, editable: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_be_editable @@ -19862,7 +19862,7 @@ def not_to_be_editable( self, *, editable: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_be_editable @@ -19927,7 +19927,7 @@ def to_be_enabled( self, *, enabled: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_be_enabled @@ -19958,7 +19958,7 @@ def not_to_be_enabled( self, *, enabled: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_be_enabled @@ -20024,7 +20024,7 @@ def to_be_visible( self, *, visible: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_be_visible @@ -20065,7 +20065,7 @@ def not_to_be_visible( self, *, visible: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_be_visible @@ -20130,7 +20130,7 @@ def to_be_in_viewport( self, *, ratio: typing.Optional[float] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_be_in_viewport @@ -20169,7 +20169,7 @@ def not_to_be_in_viewport( self, *, ratio: typing.Optional[float] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_be_in_viewport @@ -20194,7 +20194,7 @@ def to_have_accessible_description( description: typing.Union[str, typing.Pattern[str]], *, ignore_case: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_have_accessible_description @@ -20233,7 +20233,7 @@ def not_to_have_accessible_description( name: typing.Union[str, typing.Pattern[str]], *, ignore_case: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_have_accessible_description @@ -20264,7 +20264,7 @@ def to_have_accessible_name( name: typing.Union[str, typing.Pattern[str]], *, ignore_case: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_have_accessible_name @@ -20303,7 +20303,7 @@ def not_to_have_accessible_name( name: typing.Union[str, typing.Pattern[str]], *, ignore_case: typing.Optional[bool] = None, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_have_accessible_name @@ -20416,7 +20416,7 @@ def to_have_role( "treeitem", ], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.to_have_role @@ -20532,7 +20532,7 @@ def not_to_have_role( "treeitem", ], *, - timeout: typing.Optional[float] = None + timeout: typing.Optional[float] = None, ) -> None: """LocatorAssertions.not_to_have_role diff --git a/tests/async/test_navigation.py b/tests/async/test_navigation.py index fb34fb75b..240aee242 100644 --- a/tests/async/test_navigation.py +++ b/tests/async/test_navigation.py @@ -504,9 +504,10 @@ async def test_wait_for_nav_should_respect_timeout(page: Page, server: Server) - async def test_wait_for_nav_should_work_with_both_domcontentloaded_and_load( page: Page, server: Server ) -> None: - async with page.expect_navigation( - wait_until="domcontentloaded" - ), page.expect_navigation(wait_until="load"): + async with ( + page.expect_navigation(wait_until="domcontentloaded"), + page.expect_navigation(wait_until="load"), + ): await page.goto(server.PREFIX + "/one-style.html") diff --git a/tests/async/test_worker.py b/tests/async/test_worker.py index 996404b6e..94a12ee70 100644 --- a/tests/async/test_worker.py +++ b/tests/async/test_worker.py @@ -151,9 +151,10 @@ async def test_workers_should_report_network_activity( await page.goto(server.PREFIX + "/worker/worker.html") worker = await worker_info.value url = server.PREFIX + "/one-style.css" - async with page.expect_request(url) as request_info, page.expect_response( - url - ) as response_info: + async with ( + page.expect_request(url) as request_info, + page.expect_response(url) as response_info, + ): await worker.evaluate( "url => fetch(url).then(response => response.text()).then(console.log)", url ) @@ -173,9 +174,10 @@ async def test_workers_should_report_network_activity_on_worker_creation( # Chromium needs waitForDebugger enabled for this one. await page.goto(server.EMPTY_PAGE) url = server.PREFIX + "/one-style.css" - async with page.expect_request(url) as request_info, page.expect_response( - url - ) as response_info: + async with ( + page.expect_request(url) as request_info, + page.expect_response(url) as response_info, + ): await page.evaluate( """url => new Worker(URL.createObjectURL(new Blob([` fetch("${url}").then(response => response.text()).then(console.log); From 86eedf02b55c3f599b424072ca102dad082b81a6 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 12 Nov 2024 11:12:06 +0100 Subject: [PATCH 2/4] update pre-commit --- .pre-commit-config.yaml | 4 ++-- local-requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5c8c8f1db..9930d0826 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,11 +15,11 @@ repos: - id: check-executables-have-shebangs - id: check-merge-conflict - repo: https://github.com/psf/black - rev: 24.8.0 + rev: 24.10.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 + rev: v1.13.0 hooks: - id: mypy additional_dependencies: [types-pyOpenSSL==24.1.0.20240722, types-requests==2.32.0.20240914] diff --git a/local-requirements.txt b/local-requirements.txt index 170ed7edb..13d33f6c1 100644 --- a/local-requirements.txt +++ b/local-requirements.txt @@ -7,7 +7,7 @@ mypy==1.13.0 objgraph==3.6.2 Pillow==10.4.0 pixelmatch==0.3.0 -pre-commit==3.5.0 +pre-commit==4.0.1 pyOpenSSL==24.2.1 pytest==8.3.3 pytest-asyncio==0.24.0 From 470c4e6823558af7bdc0d9e1182764fb38f9167b Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 12 Nov 2024 11:38:58 +0100 Subject: [PATCH 3/4] chore: add project requires-python --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 8a067f8e2..e0681ee2d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,6 +2,9 @@ requires = ["setuptools==75.4.0", "setuptools-scm==8.1.0", "wheel==0.45.0", "auditwheel==6.1.0"] build-backend = "setuptools.build_meta" +[project] +requires-python = ">=3.9" + [tool.setuptools_scm] version_file = "playwright/_repo_version.py" From 61e0ac6f545cc4bb0f1ca539b45f069f745589b0 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 12 Nov 2024 11:39:22 +0100 Subject: [PATCH 4/4] Revert "update pre-commit" This reverts commit 86eedf02b55c3f599b424072ca102dad082b81a6. --- .pre-commit-config.yaml | 4 ++-- local-requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9930d0826..5c8c8f1db 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,11 +15,11 @@ repos: - id: check-executables-have-shebangs - id: check-merge-conflict - repo: https://github.com/psf/black - rev: 24.10.0 + rev: 24.8.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.13.0 + rev: v1.11.2 hooks: - id: mypy additional_dependencies: [types-pyOpenSSL==24.1.0.20240722, types-requests==2.32.0.20240914] diff --git a/local-requirements.txt b/local-requirements.txt index 13d33f6c1..170ed7edb 100644 --- a/local-requirements.txt +++ b/local-requirements.txt @@ -7,7 +7,7 @@ mypy==1.13.0 objgraph==3.6.2 Pillow==10.4.0 pixelmatch==0.3.0 -pre-commit==4.0.1 +pre-commit==3.5.0 pyOpenSSL==24.2.1 pytest==8.3.3 pytest-asyncio==0.24.0