diff --git a/playwright/async_api/_generated.py b/playwright/async_api/_generated.py index c2bc7ace7..565dcc48d 100644 --- a/playwright/async_api/_generated.py +++ b/playwright/async_api/_generated.py @@ -84,8 +84,6 @@ from playwright._impl._tracing import Tracing as TracingImpl from playwright._impl._video import Video as VideoImpl -NoneType = type(None) - class Request(AsyncBase): @property @@ -134,7 +132,7 @@ def post_data(self) -> typing.Optional[str]: Returns ------- - Union[str, NoneType] + Union[str, None] """ return mapping.from_maybe_impl(self._impl_obj.post_data) @@ -149,7 +147,7 @@ def post_data_json(self) -> typing.Optional[typing.Any]: Returns ------- - Union[Any, NoneType] + Union[Any, None] """ return mapping.from_maybe_impl(self._impl_obj.post_data_json) @@ -161,7 +159,7 @@ def post_data_buffer(self) -> typing.Optional[bytes]: Returns ------- - Union[bytes, NoneType] + Union[bytes, None] """ return mapping.from_maybe_impl(self._impl_obj.post_data_buffer) @@ -203,7 +201,7 @@ def redirected_from(self) -> typing.Optional["Request"]: Returns ------- - Union[Request, NoneType] + Union[Request, None] """ return mapping.from_impl_nullable(self._impl_obj.redirected_from) @@ -221,7 +219,7 @@ def redirected_to(self) -> typing.Optional["Request"]: Returns ------- - Union[Request, NoneType] + Union[Request, None] """ return mapping.from_impl_nullable(self._impl_obj.redirected_to) @@ -239,7 +237,7 @@ def failure(self) -> typing.Optional[str]: Returns ------- - Union[str, NoneType] + Union[str, None] """ return mapping.from_maybe_impl(self._impl_obj.failure) @@ -297,7 +295,7 @@ async def response(self) -> typing.Optional["Response"]: Returns ------- - Union[Response, NoneType] + Union[Response, None] """ return mapping.from_impl_nullable(await self._impl_obj.response()) @@ -351,7 +349,7 @@ async def header_value(self, name: str) -> typing.Optional[str]: Returns ------- - Union[str, NoneType] + Union[str, None] """ return mapping.from_maybe_impl(await self._impl_obj.header_value(name=name)) @@ -499,7 +497,7 @@ async def header_value(self, name: str) -> typing.Optional[str]: Returns ------- - Union[str, NoneType] + Union[str, None] """ return mapping.from_maybe_impl(await self._impl_obj.header_value(name=name)) @@ -528,7 +526,7 @@ async def server_addr(self) -> typing.Optional[RemoteAddr]: Returns ------- - Union[{ipAddress: str, port: int}, NoneType] + Union[{ipAddress: str, port: int}, None] """ return mapping.from_impl_nullable(await self._impl_obj.server_addr()) @@ -540,12 +538,12 @@ async def security_details(self) -> typing.Optional[SecurityDetails]: Returns ------- - Union[{issuer: Union[str, NoneType], protocol: Union[str, NoneType], subjectName: Union[str, NoneType], validFrom: Union[float, NoneType], validTo: Union[float, NoneType]}, NoneType] + Union[{issuer: Union[str, None], protocol: Union[str, None], subjectName: Union[str, None], validFrom: Union[float, None], validTo: Union[float, None]}, None] """ return mapping.from_impl_nullable(await self._impl_obj.security_details()) - async def finished(self) -> NoneType: + async def finished(self) -> None: """Response.finished Waits for this response to finish, returns always `null`. @@ -608,14 +606,14 @@ def request(self) -> "Request": """ return mapping.from_impl(self._impl_obj.request) - async def abort(self, error_code: typing.Optional[str] = None) -> NoneType: + async def abort(self, error_code: typing.Optional[str] = None) -> None: """Route.abort Aborts the route's request. Parameters ---------- - error_code : Union[str, NoneType] + error_code : Union[str, None] Optional error code. Defaults to `failed`, could be one of the following: - `'aborted'` - An operation was aborted (due to user action) - `'accessdenied'` - Permission to access a resource, other than the network, was denied @@ -646,7 +644,7 @@ async def fulfill( path: typing.Optional[typing.Union[str, pathlib.Path]] = None, content_type: typing.Optional[str] = None, response: typing.Optional["APIResponse"] = None - ) -> NoneType: + ) -> None: """Route.fulfill Fulfills route's request with given response. @@ -668,18 +666,18 @@ async def fulfill( Parameters ---------- - status : Union[int, NoneType] + status : Union[int, None] Response status code, defaults to `200`. - headers : Union[Dict[str, str], NoneType] + headers : Union[Dict[str, str], None] Response headers. Header values will be converted to a string. - body : Union[bytes, str, NoneType] + body : Union[bytes, str, None] Response body. - path : Union[pathlib.Path, str, NoneType] + path : Union[pathlib.Path, str, None] File path to respond with. The content type will be inferred from file extension. If `path` is a relative path, then it is resolved relative to the current working directory. - content_type : Union[str, NoneType] + content_type : Union[str, None] If set, equals to setting `Content-Type` response header. - response : Union[APIResponse, NoneType] + response : Union[APIResponse, None] `APIResponse` to fulfill route's request with. Individual fields of the response (such as headers) can be overridden using fulfill options. """ @@ -702,7 +700,7 @@ async def fallback( method: typing.Optional[str] = None, headers: typing.Optional[typing.Dict[str, str]] = None, post_data: typing.Optional[typing.Union[str, bytes]] = None - ) -> NoneType: + ) -> None: """Route.fallback When several routes match the given pattern, they run in the order opposite to their registration. That way the last @@ -758,14 +756,14 @@ async def handle(route, request): Parameters ---------- - url : Union[str, NoneType] + url : Union[str, None] If set changes the request URL. New URL must have same protocol as original one. Changing the URL won't affect the route matching, all the routes are matched using the original request URL. - method : Union[str, NoneType] + method : Union[str, None] If set changes the request method (e.g. GET or POST) - headers : Union[Dict[str, str], NoneType] + headers : Union[Dict[str, str], None] If set changes the request HTTP headers. Header values will be converted to a string. - post_data : Union[bytes, str, NoneType] + post_data : Union[bytes, str, None] If set changes the post data of request """ @@ -785,7 +783,7 @@ async def continue_( method: typing.Optional[str] = None, headers: typing.Optional[typing.Dict[str, str]] = None, post_data: typing.Optional[typing.Union[str, bytes]] = None - ) -> NoneType: + ) -> None: """Route.continue_ Continues route's request with optional overrides. @@ -805,13 +803,13 @@ async def handle(route, request): Parameters ---------- - url : Union[str, NoneType] + url : Union[str, None] If set changes the request URL. New URL must have same protocol as original one. - method : Union[str, NoneType] + method : Union[str, None] If set changes the request method (e.g. GET or POST) - headers : Union[Dict[str, str], NoneType] + headers : Union[Dict[str, str], None] If set changes the request HTTP headers. Header values will be converted to a string. - post_data : Union[bytes, str, NoneType] + post_data : Union[bytes, str, None] If set changes the post data of request """ @@ -951,9 +949,9 @@ def expect_event( ---------- event : str Event name, same one would pass into `webSocket.on(event)`. - predicate : Union[Callable, NoneType] + predicate : Union[Callable, None] Receives the event data and resolves to truthy value when the waiting should resolve. - timeout : Union[float, NoneType] + timeout : Union[float, None] Maximum time to wait for in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout. The default value can be changed by using the `browser_context.set_default_timeout()`. @@ -987,9 +985,9 @@ async def wait_for_event( ---------- event : str Event name, same one typically passed into `*.on(event)`. - predicate : Union[Callable, NoneType] + predicate : Union[Callable, None] Receives the event data and resolves to truthy value when the waiting should resolve. - timeout : Union[float, NoneType] + timeout : Union[float, None] Maximum time to wait for in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout. The default value can be changed by using the `browser_context.set_default_timeout()`. @@ -1021,7 +1019,7 @@ def is_closed(self) -> bool: class Keyboard(AsyncBase): - async def down(self, key: str) -> NoneType: + async def down(self, key: str) -> None: """Keyboard.down Dispatches a `keydown` event. @@ -1057,7 +1055,7 @@ async def down(self, key: str) -> NoneType: return mapping.from_maybe_impl(await self._impl_obj.down(key=key)) - async def up(self, key: str) -> NoneType: + async def up(self, key: str) -> None: """Keyboard.up Dispatches a `keyup` event. @@ -1070,7 +1068,7 @@ async def up(self, key: str) -> NoneType: return mapping.from_maybe_impl(await self._impl_obj.up(key=key)) - async def insert_text(self, text: str) -> NoneType: + async def insert_text(self, text: str) -> None: """Keyboard.insert_text Dispatches only `input` event, does not emit the `keydown`, `keyup` or `keypress` events. @@ -1089,9 +1087,7 @@ async def insert_text(self, text: str) -> NoneType: return mapping.from_maybe_impl(await self._impl_obj.insert_text(text=text)) - async def type( - self, text: str, *, delay: typing.Optional[float] = None - ) -> NoneType: + async def type(self, text: str, *, delay: typing.Optional[float] = None) -> None: """Keyboard.type Sends a `keydown`, `keypress`/`input`, and `keyup` event for each character in the text. @@ -1110,7 +1106,7 @@ async def type( ---------- text : str A text to type into a focused element. - delay : Union[float, NoneType] + delay : Union[float, None] Time to wait between key presses in milliseconds. Defaults to 0. """ @@ -1118,9 +1114,7 @@ async def type( await self._impl_obj.type(text=text, delay=delay) ) - async def press( - self, key: str, *, delay: typing.Optional[float] = None - ) -> NoneType: + async def press(self, key: str, *, delay: typing.Optional[float] = None) -> None: """Keyboard.press `key` can specify the intended [keyboardEvent.key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) @@ -1158,7 +1152,7 @@ async def press( ---------- key : str Name of the key to press or a character to generate, such as `ArrowLeft` or `a`. - delay : Union[float, NoneType] + delay : Union[float, None] Time to wait between `keydown` and `keyup` in milliseconds. Defaults to 0. """ @@ -1171,7 +1165,7 @@ async def press( class Mouse(AsyncBase): async def move( self, x: float, y: float, *, steps: typing.Optional[int] = None - ) -> NoneType: + ) -> None: """Mouse.move Dispatches a `mousemove` event. @@ -1180,7 +1174,7 @@ async def move( ---------- x : float y : float - steps : Union[int, NoneType] + steps : Union[int, None] Defaults to 1. Sends intermediate `mousemove` events. """ @@ -1191,16 +1185,16 @@ async def down( *, button: typing.Optional[Literal["left", "middle", "right"]] = None, click_count: typing.Optional[int] = None - ) -> NoneType: + ) -> None: """Mouse.down Dispatches a `mousedown` event. Parameters ---------- - button : Union["left", "middle", "right", NoneType] + button : Union["left", "middle", "right", None] Defaults to `left`. - click_count : Union[int, NoneType] + click_count : Union[int, None] defaults to 1. See [UIEvent.detail]. """ @@ -1213,16 +1207,16 @@ async def up( *, button: typing.Optional[Literal["left", "middle", "right"]] = None, click_count: typing.Optional[int] = None - ) -> NoneType: + ) -> None: """Mouse.up Dispatches a `mouseup` event. Parameters ---------- - button : Union["left", "middle", "right", NoneType] + button : Union["left", "middle", "right", None] Defaults to `left`. - click_count : Union[int, NoneType] + click_count : Union[int, None] defaults to 1. See [UIEvent.detail]. """ @@ -1238,7 +1232,7 @@ async def click( delay: typing.Optional[float] = None, button: typing.Optional[Literal["left", "middle", "right"]] = None, click_count: typing.Optional[int] = None - ) -> NoneType: + ) -> None: """Mouse.click Shortcut for `mouse.move()`, `mouse.down()`, `mouse.up()`. @@ -1247,11 +1241,11 @@ async def click( ---------- x : float y : float - delay : Union[float, NoneType] + delay : Union[float, None] Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0. - button : Union["left", "middle", "right", NoneType] + button : Union["left", "middle", "right", None] Defaults to `left`. - click_count : Union[int, NoneType] + click_count : Union[int, None] defaults to 1. See [UIEvent.detail]. """ @@ -1268,7 +1262,7 @@ async def dblclick( *, delay: typing.Optional[float] = None, button: typing.Optional[Literal["left", "middle", "right"]] = None - ) -> NoneType: + ) -> None: """Mouse.dblclick Shortcut for `mouse.move()`, `mouse.down()`, `mouse.up()`, `mouse.down()` and @@ -1278,9 +1272,9 @@ async def dblclick( ---------- x : float y : float - delay : Union[float, NoneType] + delay : Union[float, None] Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0. - button : Union["left", "middle", "right", NoneType] + button : Union["left", "middle", "right", None] Defaults to `left`. """ @@ -1288,7 +1282,7 @@ async def dblclick( await self._impl_obj.dblclick(x=x, y=y, delay=delay, button=button) ) - async def wheel(self, delta_x: float, delta_y: float) -> NoneType: + async def wheel(self, delta_x: float, delta_y: float) -> None: """Mouse.wheel Dispatches a `wheel` event. @@ -1313,7 +1307,7 @@ async def wheel(self, delta_x: float, delta_y: float) -> NoneType: class Touchscreen(AsyncBase): - async def tap(self, x: float, y: float) -> NoneType: + async def tap(self, x: float, y: float) -> None: """Touchscreen.tap Dispatches a `touchstart` and `touchend` event with a single touch at the position (`x`,`y`). @@ -1354,7 +1348,7 @@ async def evaluate( expression : str JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted as a function. Otherwise, evaluated as an expression. - arg : Union[Any, NoneType] + arg : Union[Any, None] Optional argument to pass to `expression`. Returns @@ -1390,7 +1384,7 @@ async def evaluate_handle( expression : str JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted as a function. Otherwise, evaluated as an expression. - arg : Union[Any, NoneType] + arg : Union[Any, None] Optional argument to pass to `expression`. Returns @@ -1450,12 +1444,12 @@ def as_element(self) -> typing.Optional["ElementHandle"]: Returns ------- - Union[ElementHandle, NoneType] + Union[ElementHandle, None] """ return mapping.from_impl_nullable(self._impl_obj.as_element()) - async def dispose(self) -> NoneType: + async def dispose(self) -> None: """JSHandle.dispose The `jsHandle.dispose` method stops referencing the element handle. @@ -1490,7 +1484,7 @@ def as_element(self) -> typing.Optional["ElementHandle"]: Returns ------- - Union[ElementHandle, NoneType] + Union[ElementHandle, None] """ return mapping.from_impl_nullable(self._impl_obj.as_element()) @@ -1502,7 +1496,7 @@ async def owner_frame(self) -> typing.Optional["Frame"]: Returns ------- - Union[Frame, NoneType] + Union[Frame, None] """ return mapping.from_impl_nullable(await self._impl_obj.owner_frame()) @@ -1514,7 +1508,7 @@ async def content_frame(self) -> typing.Optional["Frame"]: Returns ------- - Union[Frame, NoneType] + Union[Frame, None] """ return mapping.from_impl_nullable(await self._impl_obj.content_frame()) @@ -1531,7 +1525,7 @@ async def get_attribute(self, name: str) -> typing.Optional[str]: Returns ------- - Union[str, NoneType] + Union[str, None] """ return mapping.from_maybe_impl(await self._impl_obj.get_attribute(name=name)) @@ -1543,7 +1537,7 @@ async def text_content(self) -> typing.Optional[str]: Returns ------- - Union[str, NoneType] + Union[str, None] """ return mapping.from_maybe_impl(await self._impl_obj.text_content()) @@ -1646,7 +1640,7 @@ async def is_visible(self) -> bool: async def dispatch_event( self, type: str, event_init: typing.Optional[typing.Dict] = None - ) -> NoneType: + ) -> None: """ElementHandle.dispatch_event The snippet below dispatches the `click` event on the element. Regardless of the visibility state of the element, @@ -1681,7 +1675,7 @@ async def dispatch_event( ---------- type : str DOM event type: `"click"`, `"dragstart"`, etc. - event_init : Union[Dict, NoneType] + event_init : Union[Dict, None] Optional event-specific initialization properties. """ @@ -1693,7 +1687,7 @@ async def dispatch_event( async def scroll_into_view_if_needed( self, *, timeout: typing.Optional[float] = None - ) -> NoneType: + ) -> None: """ElementHandle.scroll_into_view_if_needed This method waits for [actionability](https://playwright.dev/python/docs/actionability) checks, then tries to scroll element into view, unless it is @@ -1705,7 +1699,7 @@ async def scroll_into_view_if_needed( Parameters ---------- - timeout : Union[float, NoneType] + timeout : Union[float, None] Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by using the `browser_context.set_default_timeout()` or `page.set_default_timeout()` methods. """ @@ -1724,7 +1718,7 @@ async def hover( timeout: typing.Optional[float] = None, force: typing.Optional[bool] = None, trial: typing.Optional[bool] = None - ) -> NoneType: + ) -> None: """ElementHandle.hover This method hovers over the element by performing the following steps: @@ -1740,18 +1734,18 @@ async def hover( Parameters ---------- - modifiers : Union[List[Union["Alt", "Control", "Meta", "Shift"]], NoneType] + modifiers : Union[List[Union["Alt", "Control", "Meta", "Shift"]], None] Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current modifiers back. If not specified, currently pressed modifiers are used. - position : Union[{x: float, y: float}, NoneType] + position : Union[{x: float, y: float}, None] A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the element. - timeout : Union[float, NoneType] + timeout : Union[float, None] Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by using the `browser_context.set_default_timeout()` or `page.set_default_timeout()` methods. - force : Union[bool, NoneType] + force : Union[bool, None] Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`. - trial : Union[bool, NoneType] + trial : Union[bool, None] When set, this method only performs the [actionability](../actionability.md) checks and skips the action. Defaults to `false`. Useful to wait until the element is ready for the action without performing it. """ @@ -1780,7 +1774,7 @@ async def click( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, trial: typing.Optional[bool] = None - ) -> NoneType: + ) -> None: """ElementHandle.click This method clicks the element by performing the following steps: @@ -1796,28 +1790,28 @@ async def click( Parameters ---------- - modifiers : Union[List[Union["Alt", "Control", "Meta", "Shift"]], NoneType] + modifiers : Union[List[Union["Alt", "Control", "Meta", "Shift"]], None] Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current modifiers back. If not specified, currently pressed modifiers are used. - position : Union[{x: float, y: float}, NoneType] + position : Union[{x: float, y: float}, None] A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the element. - delay : Union[float, NoneType] + delay : Union[float, None] Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0. - button : Union["left", "middle", "right", NoneType] + button : Union["left", "middle", "right", None] Defaults to `left`. - click_count : Union[int, NoneType] + click_count : Union[int, None] defaults to 1. See [UIEvent.detail]. - timeout : Union[float, NoneType] + timeout : Union[float, None] Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by using the `browser_context.set_default_timeout()` or `page.set_default_timeout()` methods. - force : Union[bool, NoneType] + force : Union[bool, None] Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`. - no_wait_after : Union[bool, NoneType] + no_wait_after : Union[bool, None] Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to inaccessible pages. Defaults to `false`. - trial : Union[bool, NoneType] + trial : Union[bool, None] When set, this method only performs the [actionability](../actionability.md) checks and skips the action. Defaults to `false`. Useful to wait until the element is ready for the action without performing it. """ @@ -1849,7 +1843,7 @@ async def dblclick( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, trial: typing.Optional[bool] = None - ) -> NoneType: + ) -> None: """ElementHandle.dblclick This method double clicks the element by performing the following steps: @@ -1868,26 +1862,26 @@ async def dblclick( Parameters ---------- - modifiers : Union[List[Union["Alt", "Control", "Meta", "Shift"]], NoneType] + modifiers : Union[List[Union["Alt", "Control", "Meta", "Shift"]], None] Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current modifiers back. If not specified, currently pressed modifiers are used. - position : Union[{x: float, y: float}, NoneType] + position : Union[{x: float, y: float}, None] A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the element. - delay : Union[float, NoneType] + delay : Union[float, None] Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0. - button : Union["left", "middle", "right", NoneType] + button : Union["left", "middle", "right", None] Defaults to `left`. - timeout : Union[float, NoneType] + timeout : Union[float, None] Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by using the `browser_context.set_default_timeout()` or `page.set_default_timeout()` methods. - force : Union[bool, NoneType] + force : Union[bool, None] Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`. - no_wait_after : Union[bool, NoneType] + no_wait_after : Union[bool, None] Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to inaccessible pages. Defaults to `false`. - trial : Union[bool, NoneType] + trial : Union[bool, None] When set, this method only performs the [actionability](../actionability.md) checks and skips the action. Defaults to `false`. Useful to wait until the element is ready for the action without performing it. """ @@ -1942,22 +1936,22 @@ async def select_option( Parameters ---------- - value : Union[List[str], str, NoneType] + value : Union[List[str], str, None] Options to select by value. If the `` has the `multiple` attribute, all given options are selected, otherwise only the first option matching one of the passed options is selected. Optional. - element : Union[ElementHandle, List[ElementHandle], NoneType] + element : Union[ElementHandle, List[ElementHandle], None] Option elements to select. Optional. - timeout : Union[float, NoneType] + timeout : Union[float, None] Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by using the `browser_context.set_default_timeout()` or `page.set_default_timeout()` methods. - force : Union[bool, NoneType] + force : Union[bool, None] Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`. - no_wait_after : Union[bool, NoneType] + no_wait_after : Union[bool, None] Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to inaccessible pages. Defaults to `false`. @@ -1990,7 +1984,7 @@ async def tap( force: typing.Optional[bool] = None, no_wait_after: typing.Optional[bool] = None, trial: typing.Optional[bool] = None - ) -> NoneType: + ) -> None: """ElementHandle.tap This method taps the element by performing the following steps: @@ -2008,22 +2002,22 @@ async def tap( Parameters ---------- - modifiers : Union[List[Union["Alt", "Control", "Meta", "Shift"]], NoneType] + modifiers : Union[List[Union["Alt", "Control", "Meta", "Shift"]], None] Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current modifiers back. If not specified, currently pressed modifiers are used. - position : Union[{x: float, y: float}, NoneType] + position : Union[{x: float, y: float}, None] A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the element. - timeout : Union[float, NoneType] + timeout : Union[float, None] Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by using the `browser_context.set_default_timeout()` or `page.set_default_timeout()` methods. - force : Union[bool, NoneType] + force : Union[bool, None] Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`. - no_wait_after : Union[bool, NoneType] + no_wait_after : Union[bool, None] Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to inaccessible pages. Defaults to `false`. - trial : Union[bool, NoneType] + trial : Union[bool, None] When set, this method only performs the [actionability](../actionability.md) checks and skips the action. Defaults to `false`. Useful to wait until the element is ready for the action without performing it. """ @@ -2046,7 +2040,7 @@ async def fill( timeout: typing.Optional[float] = None, no_wait_after: typing.Optional[bool] = None, force: typing.Optional[bool] = None - ) -> NoneType: + ) -> None: """ElementHandle.fill This method waits for [actionability](https://playwright.dev/python/docs/actionability) checks, focuses the element, fills it and triggers an `input` @@ -2063,14 +2057,14 @@ async def fill( ---------- value : str Value to set for the ``, `