
    gF                    
   d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZm	Z	m
Z
mZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZ d dlmZ d dlmZ d dlm Z! d dl"m#Z#m$Z$m%Z%m&Z& d d	l'm(Z) d d
l*m+Z, d dl-m.Z/ d dl0m1Z2 d dl3m4Z5 d dl6m7Z8 d dl9m:Z; d dl<m=Z> d dl?m@ZA d dlBmCZC d dlDmEZF d dlDmGZH d dlDmIZJ d dlKmLZM d dlNmOZP d dlQmRZS d dlQmTZU d dlQmVZW d dlXmYZZ d dl[m\Z] d dl[m^Z_ d dl`maZb d dl`mcZd d d l`meZf d d!l`mgZh d d"l`miZj d d#lkmlZm d d$lkmnZo d d%lpmqZr d d&lsmtZu d d'lvmwZx d d(lymzZ{ d d)l|m}Z~  G d* d+e#      Za e&j                  ebea        G d, d-e#      Zc e&j                  edec        G d. d/e#      Ze e&j                  efee        G d0 d1e#      Zg e&j                  eheg        G d2 d3e#      Zi e&j                  ejei        G d4 d5e#      ZR e&j                  eSeR        G d6 d7e#      ZT e&j                  eUeT        G d8 d9e#      ZV e&j                  eWeV        G d: d;e#      ZY e&j                  eZeY        G d< d=eY      Z@ e&j                  eAe@        G d> d?e#      Z e&j                  ee        G d@ dAe#      ZL e&j                  eMeL        G dB dCe#      ZO e&j                  ePeO        G dD dEe#      Z\ e&j                  e]e\        G dF dGe#      Zn e&j                  eoen        G dH dIe#      Zt e&j                  euet        G dJ dKe#      Z4 e&j                  e5e4        G dL dMe#      Z7 e&j                  e8e7        G dN dOe#      Z: e&j                  e;e:        G dP dQe#      Z= e&j                  e>e=        G dR dSe#      Zz e&j                  e{ez        G dT dUe$      Zl e&j                  emel        G dV dWe#      Z} e&j                  e~e}        G dX dYe$      Z+ e&j                  e,e+        G dZ d[e#      Z1 e&j                  e2e1        G d\ d]e$      Z( e&j                  e)e(        G d^ d_e#      Z. e&j                  e/e.        G d` dae#      Zq e&j                  ereq        G db dce#      Zw e&j                  exew        G dd dee#      Z^ e&j                  e_e^        G df dge#      ZI e&j                  eJeI        G dh die#      ZG e&j                  eHeG        G dj dke#      ZE e&j                  eFeE        G dl dme#      Z  e&j                  e!e         G dn doe#      Z e&j                  ee        G dp dqe#      Z e&j                  ee       y)r    N)Literal)Accessibility)ClientCertificateCookieFilePayload	FloatRectGeolocationHttpCredentials	NameValue
PdfMarginsPositionProxySettings
RemoteAddrRequestSizesResourceTimingSecurityDetailsSetCookieParamSourceLocationStorageStateTracingGroupLocationViewportSize)APIResponseAssertions)LocatorAssertions)PageAssertions)	AsyncBaseAsyncContextManagerAsyncEventContextManagermapping)Browser)BrowserContext)BrowserType)
CDPSession)Clock)ConsoleMessage)Dialog)Download)ElementHandle)Error)
APIRequest)APIRequestContext)APIResponse)FileChooser)Frame)Keyboard)Mouse)Touchscreen)JSHandle)FrameLocator)Locator)Request)Response)Route)	WebSocket)WebSocketRoute)Page)Worker)
Playwright)	Selectors)Tracing)Video)WebErrorc                      e Zd Zedefd       Zedefd       Zedefd       Zedej                  e   fd       Z
edej                  ej                     fd       Zedej                  e   fd       Zedd       Zedej                  d    fd	       Zedej                  d    fd
       Zedej                  e   fd       Zedefd       Zedej*                  eef   fd       ZdefdZdej                  d   fdZdefdZdej*                  eef   fdZdej:                  e   fdZdedej                  e   fdZ y)r4   returnc                 T    t        j                  | j                  j                        S )z^Request.url

        URL of the request.

        Returns
        -------
        str
        r   from_maybe_impl	_impl_objurlselfs    T/var/www/openai/venv/lib/python3.12/site-packages/playwright/async_api/_generated.pyrF   zRequest.url[        &&t~~'9'9::    c                 T    t        j                  | j                  j                        S )am  Request.resource_type

        Contains the request's resource type as it was perceived by the rendering engine. ResourceType will be one of the
        following: `document`, `stylesheet`, `image`, `media`, `font`, `script`, `texttrack`, `xhr`, `fetch`,
        `eventsource`, `websocket`, `manifest`, `other`.

        Returns
        -------
        str
        )r   rD   rE   resource_typerG   s    rI   rM   zRequest.resource_typeg   s     &&t~~'C'CDDrK   c                 T    t        j                  | j                  j                        S )zpRequest.method

        Request's method (GET, POST, etc.)

        Returns
        -------
        str
        )r   rD   rE   methodrG   s    rI   rO   zRequest.methodu        &&t~~'<'<==rK   c                 T    t        j                  | j                  j                        S )zzRequest.post_data

        Request's post body, if any.

        Returns
        -------
        Union[str, None]
        )r   rD   rE   	post_datarG   s    rI   rR   zRequest.post_data   s     &&t~~'?'?@@rK   c                 T    t        j                  | j                  j                        S )a\  Request.post_data_json

        Returns parsed request's body for `form-urlencoded` and JSON as a fallback if any.

        When the response is `application/x-www-form-urlencoded` then a key/value object of the values will be returned.
        Otherwise it will be parsed as JSON.

        Returns
        -------
        Union[Any, None]
        )r   rD   rE   post_data_jsonrG   s    rI   rT   zRequest.post_data_json   s     &&t~~'D'DEErK   c                 T    t        j                  | j                  j                        S )zRequest.post_data_buffer

        Request's post body in a binary form, if any.

        Returns
        -------
        Union[bytes, None]
        )r   rD   rE   post_data_bufferrG   s    rI   rV   zRequest.post_data_buffer   s     &&t~~'F'FGGrK   c                 T    t        j                  | j                  j                        S )a  Request.frame

        Returns the `Frame` that initiated this request.

        **Usage**

        ```py
        frame_url = request.frame.url
        ```

        **Details**

        Note that in some cases the frame is not available, and this method will throw.
        - When request originates in the Service Worker. You can use `request.serviceWorker()` to check that.
        - When navigation request is issued before the corresponding frame is created. You can use
          `request.is_navigation_request()` to check that.

        Here is an example that handles all the cases:

        Returns
        -------
        Frame
        r   	from_implrE   framerG   s    rI   rZ   zRequest.frame   s    2   !5!566rK   c                 T    t        j                  | j                  j                        S )a  Request.redirected_from

        Request that was redirected by the server to this one, if any.

        When the server responds with a redirect, Playwright creates a new `Request` object. The two requests are connected
        by `redirectedFrom()` and `redirectedTo()` methods. When multiple server redirects has happened, it is possible to
        construct the whole redirect chain by repeatedly calling `redirectedFrom()`.

        **Usage**

        For example, if the website `http://example.com` redirects to `https://example.com`:

        ```py
        response = await page.goto("http://example.com")
        print(response.request.redirected_from.url) # "http://example.com"
        ```

        If the website `https://google.com` has no redirects:

        ```py
        response = await page.goto("https://google.com")
        print(response.request.redirected_from) # None
        ```

        Returns
        -------
        Union[Request, None]
        )r   from_impl_nullablerE   redirected_fromrG   s    rI   r]   zRequest.redirected_from   s    < ))$..*H*HIIrK   c                 T    t        j                  | j                  j                        S )aa  Request.redirected_to

        New request issued by the browser if the server responded with redirect.

        **Usage**

        This method is the opposite of `request.redirected_from()`:

        ```py
        assert request.redirected_from.redirected_to == request
        ```

        Returns
        -------
        Union[Request, None]
        )r   r\   rE   redirected_torG   s    rI   r_   zRequest.redirected_to   s    $ ))$..*F*FGGrK   c                 T    t        j                  | j                  j                        S )a~  Request.failure

        The method returns `null` unless this request has failed, as reported by `requestfailed` event.

        **Usage**

        Example of logging of all the failed requests:

        ```py
        page.on("requestfailed", lambda request: print(request.url + " " + request.failure))
        ```

        Returns
        -------
        Union[str, None]
        r   rD   rE   failurerG   s    rI   rb   zRequest.failure   s    $ &&t~~'='=>>rK   c                 T    t        j                  | j                  j                        S )a=  Request.timing

        Returns resource timing information for given request. Most of the timing values become available upon the
        response, `responseEnd` becomes available when request finishes. Find more information at
        [Resource Timing API](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming).

        **Usage**

        ```py
        async with page.expect_event("requestfinished") as request_info:
            await page.goto("http://example.com")
        request = await request_info.value
        print(request.timing)
        ```

        Returns
        -------
        {startTime: float, domainLookupStart: float, domainLookupEnd: float, connectStart: float, secureConnectionStart: float, connectEnd: float, requestStart: float, responseStart: float, responseEnd: float}
        )r   rY   rE   timingrG   s    rI   rd   zRequest.timing  s    *   !6!677rK   c                 T    t        j                  | j                  j                        S )aw  Request.headers

        An object with the request HTTP headers. The header names are lower-cased. Note that this method does not return
        security-related headers, including cookie-related ones. You can use `request.all_headers()` for complete
        list of headers that include `cookie` information.

        Returns
        -------
        Dict[str, str]
        r   rD   rE   headersrG   s    rI   rg   zRequest.headers"       &&t~~'='=>>rK   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zRequest.sizes

        Returns resource size information for given request.

        Returns
        -------
        {requestBodySize: int, requestHeadersSize: int, responseBodySize: int, responseHeadersSize: int}
        N)r   rY   rE   sizesrG   s    rI   rj   zRequest.sizes0  s,        t~~';';'=!=>>!=   -:8	:r5   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zRequest.response

        Returns the matching `Response` object, or `null` if the response was not received due to error.

        Returns
        -------
        Union[Response, None]
        N)r   r\   rE   responserG   s    rI   rm   zRequest.response<  s,      ))0G0G0I*IJJ*Irk   c                 \    t        j                  | j                  j                               S )a(  Request.is_navigation_request

        Whether this request is driving frame's navigation.

        Some navigation requests are issued before the corresponding frame is created, and therefore do not have
        `request.frame()` available.

        Returns
        -------
        bool
        )r   rD   rE   is_navigation_requestrG   s    rI   ro   zRequest.is_navigation_requestH  s"     &&t~~'K'K'MNNrK   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zRequest.all_headers

        An object with all the request HTTP headers associated with this request. The header names are lower-cased.

        Returns
        -------
        Dict[str, str]
        Nr   rD   rE   all_headersrG   s    rI   rr   zRequest.all_headersW  ,      &&T^^-G-G-I'IJJ'Irk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)ab  Request.headers_array

        An array with all the request HTTP headers associated with this request. Unlike `request.all_headers()`,
        header names are NOT lower-cased. Headers with multiple entries, such as `Set-Cookie`, appear in the array multiple
        times.

        Returns
        -------
        List[{name: str, value: str}]
        Nr   from_impl_listrE   headers_arrayrG   s    rI   rw   zRequest.headers_arrayc  ,      %%DNN,H,H,J&JKK&Jrk   namec                 |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Request.header_value

        Returns the value of the header matching the name. The name is case-insensitive.

        Parameters
        ----------
        name : str
            Name of the header.

        Returns
        -------
        Union[str, None]
        ry   Nr   rD   rE   header_valuerH   ry   s     rI   r}   zRequest.header_valueq  s1      &&T^^-H-Hd-H-S'STT'S   /<:	<NrA   r-   )!__name__
__module____qualname__propertystrrF   rM   rO   typingOptionalrR   AnyrT   bytesrV   rZ   r]   r_   rb   r   rd   Dictrg   r   rj   rm   boolro   rr   Listr   rw   r}    rK   rI   r4   r4   Y   s   	;S 	; 	; Es E E 	> 	> 	> 	A6??3/ 	A 	A F

 ; F F 	H&//%"8 	H 	H 7 74 J!; J J> Hvy9 H H& ?- ? ?& 8 8 8, ?S#X. ? ?
?\ 
?
K
 ; 
KOt O
K6;;sCx#8 
KLV[[%; LUs Uvs/C UrK   r4   c                      e Zd Zedefd       Zedefd       Zedefd       Z	edefd       Z
edej                  eef   fd       Zedefd       Zedd       Zedd	       Zdej                  eef   fd
Zdej$                  e   fdZdedej*                  e   fdZdedej$                  e   fdZdej*                  e   fdZdej*                  e   fdZddZdefdZdefdZdej@                  fdZ!y)r5   rA   c                 T    t        j                  | j                  j                        S )zmResponse.url

        Contains the URL of the response.

        Returns
        -------
        str
        rC   rG   s    rI   rF   zResponse.url  rJ   rK   c                 T    t        j                  | j                  j                        S )zResponse.ok

        Contains a boolean stating whether the response was successful (status in the range 200-299) or not.

        Returns
        -------
        bool
        r   rD   rE   okrG   s    rI   r   zResponse.ok       &&t~~'8'899rK   c                 T    t        j                  | j                  j                        S )zResponse.status

        Contains the status code of the response (e.g., 200 for a success).

        Returns
        -------
        int
        r   rD   rE   statusrG   s    rI   r   zResponse.status  rP   rK   c                 T    t        j                  | j                  j                        S )zResponse.status_text

        Contains the status text of the response (e.g. usually an "OK" for a success).

        Returns
        -------
        str
        r   rD   rE   status_textrG   s    rI   r   zResponse.status_text       &&t~~'A'ABBrK   c                 T    t        j                  | j                  j                        S )az  Response.headers

        An object with the response HTTP headers. The header names are lower-cased. Note that this method does not return
        security-related headers, including cookie-related ones. You can use `response.all_headers()` for complete
        list of headers that include `cookie` information.

        Returns
        -------
        Dict[str, str]
        rf   rG   s    rI   rg   zResponse.headers  rh   rK   c                 T    t        j                  | j                  j                        S )a$  Response.from_service_worker

        Indicates whether this Response was fulfilled by a Service Worker's Fetch Handler (i.e. via
        [FetchEvent.respondWith](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent/respondWith)).

        Returns
        -------
        bool
        )r   rD   rE   from_service_workerrG   s    rI   r   zResponse.from_service_worker  s     &&t~~'I'IJJrK   c                 T    t        j                  | j                  j                        S )zzResponse.request

        Returns the matching `Request` object.

        Returns
        -------
        Request
        r   rY   rE   requestrG   s    rI   r   zResponse.request         !7!788rK   c                 T    t        j                  | j                  j                        S )zResponse.frame

        Returns the `Frame` that initiated this response.

        Returns
        -------
        Frame
        rX   rG   s    rI   rZ   zResponse.frame         !5!566rK   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zResponse.all_headers

        An object with all the response HTTP headers associated with this response.

        Returns
        -------
        Dict[str, str]
        Nrq   rG   s    rI   rr   zResponse.all_headers  rs   rk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)ae  Response.headers_array

        An array with all the request HTTP headers associated with this response. Unlike `response.all_headers()`,
        header names are NOT lower-cased. Headers with multiple entries, such as `Set-Cookie`, appear in the array multiple
        times.

        Returns
        -------
        List[{name: str, value: str}]
        Nru   rG   s    rI   rw   zResponse.headers_array  rx   rk   ry   c                 |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Response.header_value

        Returns the value of the header matching the name. The name is case-insensitive. If multiple headers have the same
        name (except `set-cookie`), they are returned as a list separated by `, `. For `set-cookie`, the `\n` separator is
        used. If no headers are found, `null` is returned.

        Parameters
        ----------
        name : str
            Name of the header.

        Returns
        -------
        Union[str, None]
        r{   Nr|   r~   s     rI   r}   zResponse.header_value  s1     " &&T^^-H-Hd-H-S'STT'Sr   c                 |   K   t        j                  | j                  j                  |       d{         S 7 w)a"  Response.header_values

        Returns all values of the headers matching the name, for example `set-cookie`. The name is case-insensitive.

        Parameters
        ----------
        name : str
            Name of the header.

        Returns
        -------
        List[str]
        r{   N)r   rD   rE   header_valuesr~   s     rI   r   zResponse.header_values  1      &&T^^-I-It-I-T'TUU'Tr   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zResponse.server_addr

        Returns the IP address and port of the server.

        Returns
        -------
        Union[{ipAddress: str, port: int}, None]
        N)r   r\   rE   server_addrrG   s    rI   r   zResponse.server_addr)  ,      ))0J0J0L*LMM*Lrk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)a  Response.security_details

        Returns SSL and other security information.

        Returns
        -------
        Union[{issuer: Union[str, None], protocol: Union[str, None], subjectName: Union[str, None], validFrom: Union[float, None], validTo: Union[float, None]}, None]
        N)r   r\   rE   security_detailsrG   s    rI   r   zResponse.security_details5  s,      ))0O0O0Q*QRR*Qrk   Nc                 x   K   t        j                  | j                  j                          d{         S 7 w)z]Response.finished

        Waits for this response to finish, returns always `null`.
        N)r   rD   rE   finishedrG   s    rI   r   zResponse.finishedA  s,      &&T^^-D-D-F'FGG'Frk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zuResponse.body

        Returns the buffer with response body.

        Returns
        -------
        bytes
        Nr   rD   rE   bodyrG   s    rI   r   zResponse.bodyI  ,      &&T^^-@-@-B'BCC'Brk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)z~Response.text

        Returns the text representation of response body.

        Returns
        -------
        str
        Nr   rD   rE   textrG   s    rI   r   zResponse.textU  r   rk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zResponse.json

        Returns the JSON representation of response body.

        This method will throw if the response body is not parsable via `JSON.parse`.

        Returns
        -------
        Any
        Nr   rD   rE   jsonrG   s    rI   r   zResponse.jsona  ,      &&T^^-@-@-B'BCC'Brk   rA   r4   r   rA   N)"r   r   r   r   r   rF   r   r   intr   r   r   r   rg   r   r   rZ   rr   r   r   rw   r   r}   r   r   r   r   r   r   r   r   r   r   r   r   rK   rI   r5   r5     s   	;S 	; 	; 	:D 	: 	: 	> 	> 	> 	CS 	C 	C ?S#X. ? ? 
KT 
K 
K 	9 	9 	7 	7
K6;;sCx#8 
KLV[[%; LUs Uvs/C U&V VC0@ V"
N6??:#> 
N
S(H 
SH
DE 
D
DC 
DDFJJ DrK   r5   c                      e Zd Zedd       Zddej                  e   ddfdZdddddddddej                  e	   dej                  ej                  eef      d	ej                  ej                  eef      d
ej                  ej                     dej                  ej                  eej                  f      dej                  e   dej                  d   ddfdZdddddddddej                  e   dej                  e   dej                  ej                  eef      dej                  ej                  ej                  eef      dej                  e	   dej                  e	   dej                  e   ddfdZddddddej                  e   dej                  e   dej                  ej                  eef      dej                  ej                  ej                  eef      ddf
dZddddddej                  e   dej                  e   dej                  ej                  eef      dej                  ej                  ej                  eef      ddf
dZy)r6   rA   c                 T    t        j                  | j                  j                        S )zhRoute.request

        A request to be routed.

        Returns
        -------
        Request
        r   rG   s    rI   r   zRoute.requestu  r   rK   N
error_codec                 |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Route.abort

        Aborts the route's request.

        Parameters
        ----------
        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
            - `'addressunreachable'` - The IP address is unreachable. This usually means that there is no route to the
              specified host or network.
            - `'blockedbyclient'` - The client chose to block the request.
            - `'blockedbyresponse'` - The request failed because the response was delivered along with requirements which are
              not met ('X-Frame-Options' and 'Content-Security-Policy' ancestor checks, for instance).
            - `'connectionaborted'` - A connection timed out as a result of not receiving an ACK for data sent.
            - `'connectionclosed'` - A connection was closed (corresponding to a TCP FIN).
            - `'connectionfailed'` - A connection attempt failed.
            - `'connectionrefused'` - A connection attempt was refused.
            - `'connectionreset'` - A connection was reset (corresponding to a TCP RST).
            - `'internetdisconnected'` - The Internet connection has been lost.
            - `'namenotresolved'` - The host name could not be resolved.
            - `'timedout'` - An operation timed out.
            - `'failed'` - A generic failure occurred.
        )	errorCodeN)r   rD   rE   abort)rH   r   s     rI   r   zRoute.abort  s1     6 &&T^^-A-AJ-A-W'WXX'Wr   )r   rg   r   r   pathcontent_typerm   r   rg   r   r   r   r   rm   r+   c                   K   t        j                  | j                  j                  |t        j                  |      |t        j                  |      |||r|j                  nd       d{         S 7 w)a  Route.fulfill

        Fulfills route's request with given response.

        **Usage**

        An example of fulfilling all requests with 404 responses:

        ```py
        await page.route("**/*", lambda route: route.fulfill(
            status=404,
            content_type="text/plain",
            body="not found!"))
        ```

        An example of serving static file:

        ```py
        await page.route("**/xhr_endpoint", lambda route: route.fulfill(path="mock_data.json"))
        ```

        Parameters
        ----------
        status : Union[int, None]
            Response status code, defaults to `200`.
        headers : Union[Dict[str, str], None]
            Response headers. Header values will be converted to a string.
        body : Union[bytes, str, None]
            Response body.
        json : Union[Any, None]
            JSON response. This method will set the content type to `application/json` if not set.
        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, None]
            If set, equals to setting `Content-Type` response header.
        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.
        N)r   rg   r   r   r   contentTyperm   )r   rD   rE   fulfillto_impl)rH   r   rg   r   r   r   r   rm   s           rI   r   zRoute.fulfill  sn     h &&..((0__T*(/7++T )  

 
	
s   A)A6+A4,	A6)rF   rO   rg   rR   max_redirectsmax_retriestimeoutrF   rO   rR   r   r   r   c                   K   t        j                  | j                  j                  ||t        j                  |      t        j                  |      |||       d{         S 7 w)a  Route.fetch

        Performs the request and fetches result without fulfilling it, so that the response could be modified and then
        fulfilled.

        **Usage**

        ```py
        async def handle(route):
            response = await route.fetch()
            json = await response.json()
            json["message"]["big_red_dog"] = []
            await route.fulfill(response=response, json=json)

        await page.route("https://dog.ceo/api/breeds/list/all", handle)
        ```

        **Details**

        Note that `headers` option will apply to the fetched request as well as any redirects initiated by it. If you want
        to only apply `headers` to the original request, but not to redirects, look into `route.continue_()`
        instead.

        Parameters
        ----------
        url : Union[str, None]
            If set changes the request URL. New URL must have same protocol as original one.
        method : Union[str, None]
            If set changes the request method (e.g. GET or POST).
        headers : Union[Dict[str, str], None]
            If set changes the request HTTP headers. Header values will be converted to a string.
        post_data : Union[Any, bytes, str, None]
            Allows to set post data of the request. If the data parameter is an object, it will be serialized to json string
            and `content-type` header will be set to `application/json` if not explicitly set. Otherwise the `content-type`
            header will be set to `application/octet-stream` if not explicitly set.
        max_redirects : Union[int, None]
            Maximum number of request redirects that will be followed automatically. An error will be thrown if the number is
            exceeded. Defaults to `20`. Pass `0` to not follow redirects.
        max_retries : Union[int, None]
            Maximum number of times network errors should be retried. Currently only `ECONNRESET` error is retried. Does not
            retry based on HTTP response codes. An error will be thrown if the limit is exceeded. Defaults to `0` - no retries.
        timeout : Union[float, None]
            Request timeout in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.

        Returns
        -------
        APIResponse
        )rF   rO   rg   postDatamaxRedirects
maxRetriesr   Nr   rY   rE   fetchr   )rH   rF   rO   rg   rR   r   r   r   s           rI   r   zRoute.fetch  sd     x   ..&&0 3*& '  

 
	
s   AA(A&	A()rF   rO   rg   rR   c          
         K   t        j                  | j                  j                  ||t        j                  |      t        j                  |             d{         S 7 w)a  Route.fallback

        Continues route's request with optional overrides. The method is similar to `route.continue_()` with the
        difference that other matching handlers will be invoked before sending the request.

        **Usage**

        When several routes match the given pattern, they run in the order opposite to their registration. That way the
        last registered route can always override all the previous ones. In the example below, request will be handled by
        the bottom-most handler first, then it'll fall back to the previous one and in the end will be aborted by the first
        registered route.

        ```py
        await page.route("**/*", lambda route: route.abort())  # Runs last.
        await page.route("**/*", lambda route: route.fallback())  # Runs second.
        await page.route("**/*", lambda route: route.fallback())  # Runs first.
        ```

        Registering multiple routes is useful when you want separate handlers to handle different kinds of requests, for
        example API calls vs page resources or GET requests vs POST requests as in the example below.

        ```py
        # Handle GET requests.
        async def handle_get(route):
            if route.request.method != "GET":
                await route.fallback()
                return
          # Handling GET only.
          # ...

        # Handle POST requests.
        async def handle_post(route):
            if route.request.method != "POST":
                await route.fallback()
                return
          # Handling POST only.
          # ...

        await page.route("**/*", handle_get)
        await page.route("**/*", handle_post)
        ```

        One can also modify request while falling back to the subsequent handler, that way intermediate route handler can
        modify url, method, headers and postData of the request.

        ```py
        async def handle(route, request):
            # override headers
            headers = {
                **request.headers,
                "foo": "foo-value", # set "foo" header
                "bar": None # remove "bar" header
            }
            await route.fallback(headers=headers)

        await page.route("**/*", handle)
        ```

        Use `route.continue_()` to immediately send the request to the network, other matching handlers won't be
        invoked in that case.

        Parameters
        ----------
        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, None]
            If set changes the request method (e.g. GET or POST).
        headers : Union[Dict[str, str], None]
            If set changes the request HTTP headers. Header values will be converted to a string.
        post_data : Union[Any, bytes, str, None]
            If set changes the post data of request.
        rF   rO   rg   r   N)r   rD   rE   fallbackr   rH   rF   rO   rg   rR   s        rI   r   zRoute.fallback&  s[     d &&..))0 3	 *  
 	
   AA%A#	A%c          
         K   t        j                  | j                  j                  ||t        j                  |      t        j                  |             d{         S 7 w)a  Route.continue_

        Sends route's request to the network with optional overrides.

        **Usage**

        ```py
        async def handle(route, request):
            # override headers
            headers = {
                **request.headers,
                "foo": "foo-value", # set "foo" header
                "bar": None # remove "bar" header
            }
            await route.continue_(headers=headers)

        await page.route("**/*", handle)
        ```

        **Details**

        The `headers` option applies to both the routed request and any redirects it initiates. However, `url`, `method`,
        and `postData` only apply to the original request and are not carried over to redirected requests.

        `route.continue_()` will immediately send the request to the network, other matching handlers won't be
        invoked. Use `route.fallback()` If you want next matching handler in the chain to be invoked.

        Parameters
        ----------
        url : Union[str, None]
            If set changes the request URL. New URL must have same protocol as original one.
        method : Union[str, None]
            If set changes the request method (e.g. GET or POST).
        headers : Union[Dict[str, str], None]
            If set changes the request HTTP headers. Header values will be converted to a string.
        post_data : Union[Any, bytes, str, None]
            If set changes the post data of request.
        r   N)r   rD   rE   	continue_r   r   s        rI   r   zRoute.continue_  s[     ^ &&..**0 3	 +  
 	
r   r   N)r   r   r   r   r   r   r   r   r   r   r   Unionr   r   pathlibPathr   floatr   r   r   r   rK   rI   r6   r6   s  s   	9 	9Yfooc&: Yd Y@ (,:>:>,0AE-137>
 $>
 S#X!67	>

 oofll3:67>
 oofjj)>
 oofll3+<=>>
 ooc*>
 //-0>
 
>
F %)'+:>KO.2,0*.F
 __S!F
 $	F

 S#X!67F
 ??6<<

C0F#GHF
 s+F
 __S)F
 'F
 
F
V %)'+:>KOY
 __S!Y
 $	Y

 S#X!67Y
 ??6<<

C0F#GHY
 
Y
| %)'+:>KO6
 __S!6
 $	6

 S#X!676
 ??6<<

C0F#GH6
 
6
rK   r6   c            
           e Zd Zej                  ded   dej                  d gdf   ddfd       Zej                  ded   dej                  d	gdf   ddfd
       Zej                  ded   dej                  d	gdf   ddfd       Zej                  ded   dej                  dgdf   ddfd       Zdedej                  dej                  ej                  d   df   f   ddf fdZej                  ded   dej                  d gdf   ddfd       Zej                  ded   dej                  d	gdf   ddfd       Zej                  ded   dej                  d	gdf   ddfd       Zej                  ded   dej                  dgdf   ddfd       Zdedej                  dej                  ej                  d   df   f   ddf fdZedefd       Z	 ddddedej                  ej                     dej                  e   defdZ	 ddddedej                  ej                     dej                  e   dej$                  fdZdefdZ xZS )r7   eventclosef*typing.Union[typing.Awaitable[None], None]rA   Nc                      yz)
        Fired when the websocket closes.Nr   rH   r   r   s      rI   onzWebSocket.on      rK   framereceivedztyping.Union[bytes, str]c                      yz3
        Fired when the websocket receives a frame.Nr   r   s      rI   r   zWebSocket.on  r   rK   	framesentc                      yz0
        Fired when the websocket sends a frame.Nr   r   s      rI   r   zWebSocket.on  r   rK   socketerrorr   c                      yz/
        Fired when the websocket has an error.Nr   r   s      rI   r   zWebSocket.on  r   rK   .c                 &    t         |   ||      S Nr   r   superr   rH   r   r   	__class__s      rI   r   zWebSocket.on      
 wzz++rK   c                      yr   r   r   s      rI   oncezWebSocket.once  r   rK   c                      yr   r   r   s      rI   r   zWebSocket.once  r   rK   c                      yr   r   r   s      rI   r   zWebSocket.once  r   rK   c                      yr   r   r   s      rI   r   zWebSocket.once  r   rK   c                 &    t         |   ||      S r   r   r   r   s      rI   r   zWebSocket.once      
 w|%1|--rK   c                 T    t        j                  | j                  j                        S )zoWebSocket.url

        Contains the URL of the WebSocket.

        Returns
        -------
        str
        rC   rG   s    rI   rF   zWebSocket.url  rJ   rK   r   	predicater   c                    t        | j                  j                  || j                  |      |      j                        S )a\  WebSocket.expect_event

        Waits for event to fire and passes its value into the predicate function. Returns when the predicate returns truthy
        value. Will throw an error if the webSocket is closed before the event is fired. Returns the event data value.

        Parameters
        ----------
        event : str
            Event name, same one would pass into `webSocket.on(event)`.
        predicate : Union[Callable, None]
            Receives the event data and resolves to truthy value when the waiting should resolve.
        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()`.

        Returns
        -------
        EventContextManager
        r   r  r   r   rE   expect_event_wrap_handlerfuturerH   r   r  r   s       rI   r	  zWebSocket.expect_event)  s?    6 (NN''t'9'9)'Dg ( f
 	
rK   c                   K   t        j                  | j                  j                  || j	                  |      |       d{         S 7 w)a  WebSocket.wait_for_event

        **NOTE** In most cases, you should use `web_socket.expect_event()`.

        Waits for given `event` to fire. If predicate is provided, it passes event's value into the `predicate` function
        and waits for `predicate(event)` to return a truthy value. Will throw an error if the socket is closed before the
        `event` is fired.

        Parameters
        ----------
        event : str
            Event name, same one typically passed into `*.on(event)`.
        predicate : Union[Callable, None]
            Receives the event data and resolves to truthy value when the waiting should resolve.
        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()`.

        Returns
        -------
        Any
        r  Nr   rD   rE   wait_for_eventr
  r  s       rI   r  zWebSocket.wait_for_eventJ  N     < &&..//t'9'9)'Dg 0  
 	
   A AA	Ac                 \    t        j                  | j                  j                               S )zWebSocket.is_closed

        Indicates that the web socket has been closed.

        Returns
        -------
        bool
        r   rD   rE   	is_closedrG   s    rI   r  zWebSocket.is_closedn  "     &&t~~'?'?'ABBrK   r   )r   r   r   r   overloadr   Callabler   r   r   	Awaitabler   r   rF   r   r   r   r	  r   r  r   r  __classcell__r   s   @rI   r7   r7     s   __,w, ??K=*VVW, 
	, , __6'6 ??'(*VV
6 
6 6 __3{#3 ??'(*VV
3 
3 3 __2}%2 ??E7$PPQ2 
	2 2,, ??3V-=-=d-CT-I JJK, 
	, __,w, ??K=*VVW, 
	, , __6'6 ??'(*VV
6 
6 6 __3{#3 ??'(*VV
3 
3 3 __2}%2 ??E7$PPQ2 
	2 2.. ??3V-=-=d-CT-I JJK. 
	. 	;S 	; 	; 7;

 +/

 ??6??3

 '
 
"
H 7;"

 +/"
"
 ??6??3"

 '"
 
"
H
C4 
CrK   r7   c                      e Zd Zedefd       Zddddej                  e   dej                  e   ddfdZ	ddZ
d	ej                  eef   ddfd
Zdej                  ej                  eef   gej                  f   ddfdZdej                  ej                  e   ej                  e   gej                  f   ddfdZy)r8   rA   c                 T    t        j                  | j                  j                        S )z{WebSocketRoute.url

        URL of the WebSocket created in the page.

        Returns
        -------
        str
        rC   rG   s    rI   rF   zWebSocketRoute.url  rJ   rK   Ncodereasonr  r  c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)a  WebSocketRoute.close

        Closes one side of the WebSocket connection.

        Parameters
        ----------
        code : Union[int, None]
            Optional [close code](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/close#code).
        reason : Union[str, None]
            Optional [close reason](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/close#reason).
        r  Nr   rD   rE   r   )rH   r  r  s      rI   r   zWebSocketRoute.close  s8      &&..&&D&@@
 	
@   0=;	=c                 \    t        j                  | j                  j                               S )a  WebSocketRoute.connect_to_server

        By default, routed WebSocket does not connect to the server, so you can mock entire WebSocket communication. This
        method connects to the actual WebSocket server, and returns the server-side `WebSocketRoute` instance, giving the
        ability to send and receive messages from the server.

        Once connected to the server:
        - Messages received from the server will be **automatically forwarded** to the WebSocket in the page, unless
          `web_socket_route.on_message()` is called on the server-side `WebSocketRoute`.
        - Messages sent by the [`WebSocket.send()`](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send) call
          in the page will be **automatically forwarded** to the server, unless `web_socket_route.on_message()` is
          called on the original `WebSocketRoute`.

        See examples at the top for more details.

        Returns
        -------
        WebSocketRoute
        )r   rY   rE   connect_to_serverrG   s    rI   r$  z WebSocketRoute.connect_to_server  s"    *   !A!A!CDDrK   messagec                 `    t        j                  | j                  j                  |            S )a  WebSocketRoute.send

        Sends a message to the WebSocket. When called on the original WebSocket, sends the message to the page. When called
        on the result of `web_socket_route.connect_to_server()`, sends the message to the server. See examples at the
        top for more details.

        Parameters
        ----------
        message : Union[bytes, str]
            Message to send.
        )r%  )r   rD   rE   send)rH   r%  s     rI   r'  zWebSocketRoute.send  s'     &&t~~':':7':'KLLrK   handlerc                 ~    t        j                  | j                  j                  | j	                  |                  S )a  WebSocketRoute.on_message

        This method allows to handle messages that are sent by the WebSocket, either from the page or from the server.

        When called on the original WebSocket route, this method handles messages sent from the page. You can handle this
        messages by responding to them with `web_socket_route.send()`, forwarding them to the server-side connection
        returned by `web_socket_route.connect_to_server()` or do something else.

        Once this method is called, messages are not automatically forwarded to the server or to the page - you should do
        that manually by calling `web_socket_route.send()`. See examples at the top for more details.

        Calling this method again will override the handler with a new one.

        Parameters
        ----------
        handler : Callable[[Union[bytes, str]], Any]
            Function that will handle messages.
        r(  )r   rD   rE   
on_messager
  rH   r(  s     rI   r+  zWebSocketRoute.on_message  s7    , &&NN%%d.@.@.I%J
 	
rK   c                 ~    t        j                  | j                  j                  | j	                  |                  S )a<  WebSocketRoute.on_close

        Allows to handle [`WebSocket.close`](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/close).

        By default, closing one side of the connection, either in the page or on the server, will close the other side.
        However, when `web_socket_route.on_close()` handler is set up, the default forwarding of closure is disabled,
        and handler should take care of it.

        Parameters
        ----------
        handler : Callable[[Union[int, None], Union[str, None]], Any]
            Function that will handle WebSocket closure. Received an optional
            [close code](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/close#code) and an optional
            [close reason](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/close#reason).
        r*  )r   rD   rE   on_closer
  r,  s     rI   r.  zWebSocketRoute.on_close  s7    , &&NN##D,>,>w,G#H
 	
rK   )rA   r8   )r   r   r   r   r   rF   r   r   r   r   r$  r   r   r'  r  r   r+  r.  r   rK   rI   r8   r8   ~  s    	;S 	; 	; /3SW
s+
<BOOC<P
	
&E.MFLLe4 M M
S%Z(@'A6::'MN
	
4
__S!6??3#78&**D


 

rK   r8   c                       e Zd ZdeddfdZdeddfdZdeddfdZddded	ej                  e	   ddfd
Z
ddded	ej                  e	   ddfdZy)r.   keyrA   Nc                 |   K   t        j                  | j                  j                  |       d{         S 7 w)a.  Keyboard.down

        Dispatches a `keydown` event.

        `key` can specify the intended
        [keyboardEvent.key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) value or a single character
        to generate the text for. A superset of the `key` values can be found
        [here](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values). Examples of the keys are:

        `F1` - `F12`, `Digit0`- `Digit9`, `KeyA`- `KeyZ`, `Backquote`, `Minus`, `Equal`, `Backslash`, `Backspace`, `Tab`,
        `Delete`, `Escape`, `ArrowDown`, `End`, `Enter`, `Home`, `Insert`, `PageDown`, `PageUp`, `ArrowRight`, `ArrowUp`,
        etc.

        Following modification shortcuts are also supported: `Shift`, `Control`, `Alt`, `Meta`, `ShiftLeft`,
        `ControlOrMeta`. `ControlOrMeta` resolves to `Control` on Windows and Linux and to `Meta` on macOS.

        Holding down `Shift` will type the text that corresponds to the `key` in the upper case.

        If `key` is a single character, it is case-sensitive, so the values `a` and `A` will generate different respective
        texts.

        If `key` is a modifier key, `Shift`, `Meta`, `Control`, or `Alt`, subsequent key presses will be sent with that
        modifier active. To release the modifier key, use `keyboard.up()`.

        After the key is pressed once, subsequent calls to `keyboard.down()` will have
        [repeat](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat) set to true. To release the key,
        use `keyboard.up()`.

        **NOTE** Modifier keys DO influence `keyboard.down`. Holding down `Shift` will type the text in upper case.

        Parameters
        ----------
        key : str
            Name of the key to press or a character to generate, such as `ArrowLeft` or `a`.
        r0  Nr   rD   rE   downrH   r0  s     rI   r4  zKeyboard.down  s2     J &&T^^-@-@S-@-I'IJJ'Ir   c                 |   K   t        j                  | j                  j                  |       d{         S 7 w)zKeyboard.up

        Dispatches a `keyup` event.

        Parameters
        ----------
        key : str
            Name of the key to press or a character to generate, such as `ArrowLeft` or `a`.
        r2  Nr   rD   rE   upr5  s     rI   r8  zKeyboard.up&  s1      &&T^^->->3->-G'GHH'Gr   r   c                 |   K   t        j                  | j                  j                  |       d{         S 7 w)u  Keyboard.insert_text

        Dispatches only `input` event, does not emit the `keydown`, `keyup` or `keypress` events.

        **Usage**

        ```py
        await page.keyboard.insert_text("嗨")
        ```

        **NOTE** Modifier keys DO NOT effect `keyboard.insertText`. Holding down `Shift` will not type the text in upper
        case.

        Parameters
        ----------
        text : str
            Sets input to the specified text value.
        )r   N)r   rD   rE   insert_text)rH   r   s     rI   r:  zKeyboard.insert_text3  s1     ( &&T^^-G-GT-G-R'RSS'Rr   )delayr;  c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)a$  Keyboard.type

        **NOTE** In most cases, you should use `locator.fill()` instead. You only need to press keys one by one if
        there is special keyboard handling on the page - in this case use `locator.press_sequentially()`.

        Sends a `keydown`, `keypress`/`input`, and `keyup` event for each character in the text.

        To press a special key, like `Control` or `ArrowDown`, use `keyboard.press()`.

        **Usage**

        ```py
        await page.keyboard.type("Hello") # types instantly
        await page.keyboard.type("World", delay=100) # types slower, like a user
        ```

        **NOTE** Modifier keys DO NOT effect `keyboard.type`. Holding down `Shift` will not type the text in upper case.

        **NOTE** For characters that are not on a US keyboard, only an `input` event will be sent.

        Parameters
        ----------
        text : str
            A text to type into a focused element.
        delay : Union[float, None]
            Time to wait between key presses in milliseconds. Defaults to 0.
        )r   r;  Nr   rD   rE   type)rH   r   r;  s      rI   r>  zKeyboard.typeI  s8     : &&..%%4u%==
 	
=r"  c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)a  Keyboard.press

        **NOTE** In most cases, you should use `locator.press()` instead.

        `key` can specify the intended
        [keyboardEvent.key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) value or a single character
        to generate the text for. A superset of the `key` values can be found
        [here](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values). Examples of the keys are:

        `F1` - `F12`, `Digit0`- `Digit9`, `KeyA`- `KeyZ`, `Backquote`, `Minus`, `Equal`, `Backslash`, `Backspace`, `Tab`,
        `Delete`, `Escape`, `ArrowDown`, `End`, `Enter`, `Home`, `Insert`, `PageDown`, `PageUp`, `ArrowRight`, `ArrowUp`,
        etc.

        Following modification shortcuts are also supported: `Shift`, `Control`, `Alt`, `Meta`, `ShiftLeft`,
        `ControlOrMeta`. `ControlOrMeta` resolves to `Control` on Windows and Linux and to `Meta` on macOS.

        Holding down `Shift` will type the text that corresponds to the `key` in the upper case.

        If `key` is a single character, it is case-sensitive, so the values `a` and `A` will generate different respective
        texts.

        Shortcuts such as `key: "Control+o"`, `key: "Control++` or `key: "Control+Shift+T"` are supported as well. When
        specified with the modifier, modifier is pressed and being held while the subsequent key is being pressed.

        **Usage**

        ```py
        page = await browser.new_page()
        await page.goto("https://keycode.info")
        await page.keyboard.press("a")
        await page.screenshot(path="a.png")
        await page.keyboard.press("ArrowLeft")
        await page.screenshot(path="arrow_left.png")
        await page.keyboard.press("Shift+O")
        await page.screenshot(path="o.png")
        await browser.close()
        ```

        Shortcut for `keyboard.down()` and `keyboard.up()`.

        Parameters
        ----------
        key : str
            Name of the key to press or a character to generate, such as `ArrowLeft` or `a`.
        delay : Union[float, None]
            Time to wait between `keydown` and `keyup` in milliseconds. Defaults to 0.
        )r0  r;  Nr   rD   rE   press)rH   r0  r;  s      rI   rA  zKeyboard.pressj  s5     b &&T^^-A-AcQV-A-W'WXX'Wr"  )r   r   r   r   r4  r8  r:  r   r   r   r>  rA  r   rK   rI   r.   r.     s    %Kc %Kd %KNIC ID ITc Td T, HL 
s 
fooe.D 
PT 
B HL 1Ys 1Yfooe.D 1YPT 1YrK   r.   c                      e Zd Zdddededej
                  e   ddfdZdddd	ej
                  ed
      dej
                  e   ddfdZ	dddd	ej
                  ed
      dej
                  e   ddfdZ
dddddededej
                  e   d	ej
                  ed
      dej
                  e   ddfdZddddededej
                  e   d	ej
                  ed
      ddf
dZdededdfdZy)r/   N)stepsxyrC  rA   c                   K   t        j                  | j                  j                  |||       d{         S 7 w)a  Mouse.move

        Dispatches a `mousemove` event.

        Parameters
        ----------
        x : float
            X coordinate relative to the main frame's viewport in CSS pixels.
        y : float
            Y coordinate relative to the main frame's viewport in CSS pixels.
        steps : Union[int, None]
            Defaults to 1. Sends intermediate `mousemove` events.
        )rD  rE  rC  N)r   rD   rE   move)rH   rD  rE  rC  s       rI   rG  z
Mouse.move  s6     " &&T^^-@-@1QV-@-W'WXX'W   1><	>)buttonclick_countrI  leftmiddlerightrJ  c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)a  Mouse.down

        Dispatches a `mousedown` event.

        Parameters
        ----------
        button : Union["left", "middle", "right", None]
            Defaults to `left`.
        click_count : Union[int, None]
            defaults to 1. See [UIEvent.detail].
        rI  
clickCountNr3  rH   rI  rJ  s      rI   r4  z
Mouse.down  s8     $ &&..%%V%LL
 	
Lr"  c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)a  Mouse.up

        Dispatches a `mouseup` event.

        Parameters
        ----------
        button : Union["left", "middle", "right", None]
            Defaults to `left`.
        click_count : Union[int, None]
            defaults to 1. See [UIEvent.detail].
        rP  Nr7  rR  s      rI   r8  zMouse.up  s8     $ &&..##6k#JJ
 	
Jr"  )r;  rI  rJ  r;  c          	         K   t        j                  | j                  j                  |||||       d{         S 7 w)am  Mouse.click

        Shortcut for `mouse.move()`, `mouse.down()`, `mouse.up()`.

        Parameters
        ----------
        x : float
            X coordinate relative to the main frame's viewport in CSS pixels.
        y : float
            Y coordinate relative to the main frame's viewport in CSS pixels.
        delay : Union[float, None]
            Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0.
        button : Union["left", "middle", "right", None]
            Defaults to `left`.
        click_count : Union[int, None]
            defaults to 1. See [UIEvent.detail].
        )rD  rE  r;  rI  rQ  N)r   rD   rE   click)rH   rD  rE  r;  rI  rJ  s         rI   rU  zMouse.click  sG     6 &&..&&qf '  
 	
   3A >	A )r;  rI  c                   K   t        j                  | j                  j                  ||||       d{         S 7 w)aA  Mouse.dblclick

        Shortcut for `mouse.move()`, `mouse.down()`, `mouse.up()`, `mouse.down()` and
        `mouse.up()`.

        Parameters
        ----------
        x : float
            X coordinate relative to the main frame's viewport in CSS pixels.
        y : float
            Y coordinate relative to the main frame's viewport in CSS pixels.
        delay : Union[float, None]
            Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0.
        button : Union["left", "middle", "right", None]
            Defaults to `left`.
        )rD  rE  r;  rI  N)r   rD   rE   dblclick)rH   rD  rE  r;  rI  s        rI   rX  zMouse.dblclick  s<     2 &&..))A%)OO
 	
O   2?=	?delta_xdelta_yc                 ~   K   t        j                  | j                  j                  ||       d{         S 7 w)a)  Mouse.wheel

        Dispatches a `wheel` event. This method is usually used to manually scroll the page. See
        [scrolling](https://playwright.dev/python/docs/input#scrolling) for alternative ways to scroll.

        **NOTE** Wheel events may cause scrolling if they are not handled, and this method does not wait for the scrolling
        to finish before returning.

        Parameters
        ----------
        delta_x : float
            Pixels to scroll horizontally.
        delta_y : float
            Pixels to scroll vertically.
        )deltaXdeltaYN)r   rD   rE   wheel)rH   rZ  r[  s      rI   r_  zMouse.wheel   s8     " &&..&&gg&FF
 	
Fr"  )r   r   r   r   r   r   r   rG  r   r4  r8  rU  rX  r_  r   rK   rI   r/   r/     s    DHYY Y,2OOC,@Y	Y, GK,0	
 (A BC
 __S)	

 

2 GK,0	
 (A BC
 __S)	

 

6 )-FJ,0

 

 u%
 (A BC
 __S)
 

L )-FJ

 

 u%
 (A BC
 

:
5 
5 
T 
rK   r/   c                        e Zd ZdededdfdZy)r0   rD  rE  rA   Nc                 ~   K   t        j                  | j                  j                  ||       d{         S 7 w)a  Touchscreen.tap

        Dispatches a `touchstart` and `touchend` event with a single touch at the position (`x`,`y`).

        **NOTE** `page.tap()` the method will throw if `hasTouch` option of the browser context is false.

        Parameters
        ----------
        x : float
            X coordinate relative to the main frame's viewport in CSS pixels.
        y : float
            Y coordinate relative to the main frame's viewport in CSS pixels.
        )rD  rE  N)r   rD   rE   tap)rH   rD  rE  s      rI   rb  zTouchscreen.tap;  s3      &&T^^-?-?!q-?-I'IJJ'Ir"  )r   r   r   r   rb  r   rK   rI   r0   r0   9  s     K5 KU Kt KrK   r0   c                   4   e Zd Z	 ddedej
                  ej                     dej                  fdZ	 ddedej
                  ej                     dd fdZdedd fdZ	dej                  ed f   fd	Zdej
                  d
   fdZddZdej                  fdZy)r1   N
expressionargrA   c                    K   t        j                  | j                  j                  |t        j                  |             d{         S 7 w)aY  JSHandle.evaluate

        Returns the return value of `expression`.

        This method passes this handle as the first argument to `expression`.

        If `expression` returns a [Promise], then `handle.evaluate` would wait for the promise to resolve and return its
        value.

        **Usage**

        ```py
        tweet_handle = await page.query_selector(".tweet .retweets")
        assert await tweet_handle.evaluate("node => node.innerText") == "10 retweets"
        ```

        Parameters
        ----------
        expression : str
            JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the
            function is automatically invoked.
        arg : Union[Any, None]
            Optional argument to pass to `expression`.

        Returns
        -------
        Any
        rd  re  Nr   rD   rE   evaluater   rH   rd  re  s      rI   ri  zJSHandle.evaluateR  sK     @ &&..))%7??3+? *  
 	
   AAA	Ac                    K   t        j                  | j                  j                  |t        j                  |             d{         S 7 w)a  JSHandle.evaluate_handle

        Returns the return value of `expression` as a `JSHandle`.

        This method passes this handle as the first argument to `expression`.

        The only difference between `jsHandle.evaluate` and `jsHandle.evaluateHandle` is that `jsHandle.evaluateHandle`
        returns `JSHandle`.

        If the function passed to the `jsHandle.evaluateHandle` returns a [Promise], then `jsHandle.evaluateHandle` would
        wait for the promise to resolve and return its value.

        See `page.evaluate_handle()` for more details.

        Parameters
        ----------
        expression : str
            JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the
            function is automatically invoked.
        arg : Union[Any, None]
            Optional argument to pass to `expression`.

        Returns
        -------
        JSHandle
        rg  Nr   rY   rE   evaluate_handler   rj  s      rI   rn  zJSHandle.evaluate_handlex  sJ     <   ..00%7??3+? 1  
 	
rk  property_namec                 |   K   t        j                  | j                  j                  |       d{         S 7 w)zJSHandle.get_property

        Fetches a single property from the referenced object.

        Parameters
        ----------
        property_name : str
            property to get

        Returns
        -------
        JSHandle
        )propertyNameN)r   rY   rE   get_property)rH   ro  s     rI   rr  zJSHandle.get_property  s6        ..--=-II
 	
Ir   c                 x   K   t        j                  | j                  j                          d{         S 7 w)a  JSHandle.get_properties

        The method returns a map with **own property names** as keys and JSHandle instances for the property values.

        **Usage**

        ```py
        handle = await page.evaluate_handle("({ window, document })")
        properties = await handle.get_properties()
        window_handle = properties.get("window")
        document_handle = properties.get("document")
        await handle.dispose()
        ```

        Returns
        -------
        Dict[str, JSHandle]
        N)r   from_impl_dictrE   get_propertiesrG   s    rI   ru  zJSHandle.get_properties  s,     ( %%DNN,I,I,K&KLL&Krk   r'   c                 \    t        j                  | j                  j                               S )zJSHandle.as_element

        Returns either `null` or the object handle itself, if the object handle is an instance of `ElementHandle`.

        Returns
        -------
        Union[ElementHandle, None]
        r   r\   rE   
as_elementrG   s    rI   rx  zJSHandle.as_element  "     ))$..*C*C*EFFrK   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zfJSHandle.dispose

        The `jsHandle.dispose` method stops referencing the element handle.
        Nr   rD   rE   disposerG   s    rI   r|  zJSHandle.dispose  ,      &&T^^-C-C-E'EFF'Erk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)at  JSHandle.json_value

        Returns a JSON representation of the object. If the object has a `toJSON` function, it **will not be called**.

        **NOTE** The method will return an empty JSON object if the referenced object is not stringifiable. It will throw
        an error if the object has circular references.

        Returns
        -------
        Any
        N)r   rD   rE   
json_valuerG   s    rI   r  zJSHandle.json_value  s,      &&T^^-F-F-H'HII'Hrk   r   r   )r   r   r   r   r   r   r   ri  rn  rr  r   ru  rx  r|  r  r   rK   rI   r1   r1   P  s     CG$
$
$*OOFJJ$?$
	$
N CG"
"
$*OOFJJ$?"
	"
H
 

 
&Mfkk#z/&B M,
GFOOO< 
GGJ&** JrK   r1   c                      e Zd Zdej                  d    fdZdej                  d   fdZdej                  d   fdZdedej                  e   fdZ	dej                  e   fdZ
defd	Zdefd
ZdefdZdefdZdefdZdefdZdefdZdefdZ	 dbdedej                  ej(                     ddfdZdddej                  e   ddfdZddddddddej                  ej0                  ed         dej                  e   dej                  e   dej                  e   dej                  e   dej                  e   ddfdZdddddddddd 	dej                  ej0                  ed         dej                  e   d!ej                  e   d"ej                  ed#      d$ej                  e   dej                  e   dej                  e   dej                  e   dej                  e   ddfd%Zddddddddd&dej                  ej0                  ed         dej                  e   d!ej                  e   d"ej                  ed#      dej                  e   dej                  e   dej                  e   dej                  e   ddfd'Z	 dbddddddd(d)ej                  ej>                  eej0                  e   f      d*ej                  ej>                  eej0                  e   f      d+ej                  ej>                  eej0                  e   f      d,ej                  ej>                  d ej0                  d    f      dej                  e   dej                  e   dej                  e   dej@                  e   fd-Z!ddddddd.dej                  ej0                  ed         dej                  e   dej                  e   dej                  e   dej                  e   dej                  e   ddfd/Z"dddd0d)edej                  e   dej                  e   dej                  e   ddf
d1Z#ddd2dej                  e   dej                  e   ddfd3Z$dddej                  e   defd4Z%ddd5d6ej>                  ee&jN                  e(ej0                  ej>                  ee&jN                  f      ej0                  e(   f   dej                  e   dej                  e   ddfd7Z)dcd8Z*dddd9d:ed!ej                  e   dej                  e   dej                  e   ddf
d;Z+dddd9d<ed!ej                  e   dej                  e   dej                  e   ddf
d=Z,dddddd>d?edej                  e   dej                  e   dej                  e   dej                  e   dej                  e   ddfd@Z-dddddd>dej                  e   dej                  e   dej                  e   dej                  e   dej                  e   ddfdAZ.dddddd>dej                  e   dej                  e   dej                  e   dej                  e   dej                  e   ddfdBZ/dej                  e0   fdCZ1ddddddddddddDdej                  e   dej                  edE      dFej                  ej>                  ee&jN                  f      dGej                  e   dHej                  e   dIej                  edJ      dKej                  edL      dMej                  edN      dOej                  ej0                  dP      dQej                  e   dRej                  e   de2fdSZ3dTedej                  d    fdUZ4dTedej@                  d    fdVZ5	 dbdTedWedXej                  ejl                     dejl                  fdYZ7	 dbdTedWedXej                  ejl                     dejl                  fdZZ8ddd[ed\   dej                  e   ddfd]Z9dddd^dTed[ej                  ed_      dej                  e   d`ej                  e   dej                  d    f
daZ:y)dr'   rA   c                 \    t        j                  | j                  j                               S )zElementHandle.as_element

        Returns either `null` or the object handle itself, if the object handle is an instance of `ElementHandle`.

        Returns
        -------
        Union[ElementHandle, None]
        rw  rG   s    rI   rx  zElementHandle.as_element  ry  rK   r-   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zElementHandle.owner_frame

        Returns the frame containing the given element.

        Returns
        -------
        Union[Frame, None]
        N)r   r\   rE   owner_framerG   s    rI   r  zElementHandle.owner_frame  r   rk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zElementHandle.content_frame

        Returns the content frame for element handles referencing iframe nodes, or `null` otherwise

        Returns
        -------
        Union[Frame, None]
        N)r   r\   rE   content_framerG   s    rI   r  zElementHandle.content_frame  s,      ))0L0L0N*NOO*Nrk   ry   c                 |   K   t        j                  | j                  j                  |       d{         S 7 w)zElementHandle.get_attribute

        Returns element attribute value.

        Parameters
        ----------
        name : str
            Attribute name to get the value for.

        Returns
        -------
        Union[str, None]
        r{   Nr   rD   rE   get_attributer~   s     rI   r  zElementHandle.get_attribute  r   r   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zElementHandle.text_content

        Returns the `node.textContent`.

        Returns
        -------
        Union[str, None]
        Nr   rD   rE   text_contentrG   s    rI   r  zElementHandle.text_content#  s,      &&T^^-H-H-J'JKK'Jrk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zxElementHandle.inner_text

        Returns the `element.innerText`.

        Returns
        -------
        str
        Nr   rD   rE   
inner_textrG   s    rI   r  zElementHandle.inner_text/  ,      &&T^^-F-F-H'HII'Hrk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zxElementHandle.inner_html

        Returns the `element.innerHTML`.

        Returns
        -------
        str
        Nr   rD   rE   
inner_htmlrG   s    rI   r  zElementHandle.inner_html;  r  rk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zElementHandle.is_checked

        Returns whether the element is checked. Throws if the element is not a checkbox or radio input.

        Returns
        -------
        bool
        Nr   rD   rE   
is_checkedrG   s    rI   r  zElementHandle.is_checkedG  r  rk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zElementHandle.is_disabled

        Returns whether the element is disabled, the opposite of [enabled](https://playwright.dev/python/docs/actionability#enabled).

        Returns
        -------
        bool
        Nr   rD   rE   is_disabledrG   s    rI   r  zElementHandle.is_disabledS  rs   rk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zElementHandle.is_editable

        Returns whether the element is [editable](https://playwright.dev/python/docs/actionability#editable).

        Returns
        -------
        bool
        Nr   rD   rE   is_editablerG   s    rI   r  zElementHandle.is_editable_  rs   rk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zElementHandle.is_enabled

        Returns whether the element is [enabled](https://playwright.dev/python/docs/actionability#enabled).

        Returns
        -------
        bool
        Nr   rD   rE   
is_enabledrG   s    rI   r  zElementHandle.is_enabledk  r  rk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zElementHandle.is_hidden

        Returns whether the element is hidden, the opposite of [visible](https://playwright.dev/python/docs/actionability#visible).

        Returns
        -------
        bool
        Nr   rD   rE   	is_hiddenrG   s    rI   r  zElementHandle.is_hiddenw  s,      &&T^^-E-E-G'GHH'Grk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zElementHandle.is_visible

        Returns whether the element is [visible](https://playwright.dev/python/docs/actionability#visible).

        Returns
        -------
        bool
        Nr   rD   rE   
is_visiblerG   s    rI   r  zElementHandle.is_visible  r  rk   Nr>  
event_initc                    K   t        j                  | j                  j                  |t        j                  |             d{         S 7 w)aP	  ElementHandle.dispatch_event

        The snippet below dispatches the `click` event on the element. Regardless of the visibility state of the element,
        `click` is dispatched. This is equivalent to calling
        [element.click()](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/click).

        **Usage**

        ```py
        await element_handle.dispatch_event("click")
        ```

        Under the hood, it creates an instance of an event based on the given `type`, initializes it with `eventInit`
        properties and dispatches it on the element. Events are `composed`, `cancelable` and bubble by default.

        Since `eventInit` is event-specific, please refer to the events documentation for the lists of initial properties:
        - [DeviceMotionEvent](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/DeviceMotionEvent)
        - [DeviceOrientationEvent](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/DeviceOrientationEvent)
        - [DragEvent](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/DragEvent)
        - [Event](https://developer.mozilla.org/en-US/docs/Web/API/Event/Event)
        - [FocusEvent](https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent/FocusEvent)
        - [KeyboardEvent](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/KeyboardEvent)
        - [MouseEvent](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent)
        - [PointerEvent](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/PointerEvent)
        - [TouchEvent](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/TouchEvent)
        - [WheelEvent](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/WheelEvent)

        You can also specify `JSHandle` as the property value if you want live objects to be passed into the event:

        ```py
        # note you can only create data_transfer in chromium and firefox
        data_transfer = await page.evaluate_handle("new DataTransfer()")
        await element_handle.dispatch_event("#source", "dragstart", {"dataTransfer": data_transfer})
        ```

        Parameters
        ----------
        type : str
            DOM event type: `"click"`, `"dragstart"`, etc.
        event_init : Union[Dict, None]
            Optional event-specific initialization properties.
        )r>  	eventInitNr   rD   rE   dispatch_eventr   )rH   r>  r  s      rI   r  zElementHandle.dispatch_event  sK     \ &&..//W__Z%@ 0  
 	
rk  r  r   c                |   K   t        j                  | j                  j                  |       d{         S 7 w)a  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 completely visible as defined by
        [IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API)'s `ratio`.

        Throws when `elementHandle` does not point to an element
        [connected](https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected) to a Document or a ShadowRoot.

        See [scrolling](https://playwright.dev/python/docs/input#scrolling) for alternative ways to scroll.

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        r  Nr   rD   rE   scroll_into_view_if_neededrH   r   s     rI   r  z(ElementHandle.scroll_into_view_if_needed  s6     * &&..;;G;LL
 	
Lr   	modifierspositionr   no_wait_afterforcetrialr  AltControlControlOrMetaMetaShiftr  r  r  r  c          
         K   t        j                  | j                  j                  t        j                  |      |||||       d{         S 7 w)aQ  ElementHandle.hover

        This method hovers over the element by performing the following steps:
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the element, unless `force` option is set.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to hover over the center of the element, or the specified `position`.

        If the element is detached from the DOM at any moment during the action, this method throws.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        Parameters
        ----------
        modifiers : Union[Sequence[Union["Alt", "Control", "ControlOrMeta", "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. "ControlOrMeta" resolves to
            "Control" on Windows and Linux and to "Meta" on macOS.
        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, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        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.
        r  r  r   noWaitAfterr  r  Nr   rD   rE   hoverr   rH   r  r  r   r  r  r  s          rI   r  zElementHandle.hover  sX     \ &&..&&!//)4!) '  	
 		
   AA	A
	A	r  r  r;  rI  rJ  r   r  r  r  r;  rI  rK  rJ  c       	            K   t        j                  | j                  j                  t        j                  |      ||||||||		       d{         S 7 w)a  ElementHandle.click

        This method clicks the element by performing the following steps:
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the element, unless `force` option is set.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to click in the center of the element, or the specified `position`.
        1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set.

        If the element is detached from the DOM at any moment during the action, this method throws.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        Parameters
        ----------
        modifiers : Union[Sequence[Union["Alt", "Control", "ControlOrMeta", "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. "ControlOrMeta" resolves to
            "Control" on Windows and Linux and to "Meta" on macOS.
        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, None]
            Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0.
        button : Union["left", "middle", "right", None]
            Defaults to `left`.
        click_count : Union[int, None]
            defaults to 1. See [UIEvent.detail].
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        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`.
            Deprecated: This option will default to `true` in the future.
        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.
        	r  r  r;  rI  rQ  r   r  r  r  Nr   rD   rE   rU  r   
rH   r  r  r;  rI  rJ  r   r  r  r  s
             rI   rU  zElementHandle.click  sa     t &&..&&!//)4!&) ' 
 

 	

   A
AA	Ar  r  r;  rI  r   r  r  r  c                   K   t        j                  | j                  j                  t        j                  |      |||||||       d{         S 7 w)a	  ElementHandle.dblclick

        This method double clicks the element by performing the following steps:
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the element, unless `force` option is set.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to double click in the center of the element, or the specified `position`.

        If the element is detached from the DOM at any moment during the action, this method throws.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        **NOTE** `elementHandle.dblclick()` dispatches two `click` events and a single `dblclick` event.

        Parameters
        ----------
        modifiers : Union[Sequence[Union["Alt", "Control", "ControlOrMeta", "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. "ControlOrMeta" resolves to
            "Control" on Windows and Linux and to "Meta" on macOS.
        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, None]
            Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0.
        button : Union["left", "middle", "right", None]
            Defaults to `left`.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        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.
        r  r  r;  rI  r   r  r  r  Nr   rD   rE   rX  r   	rH   r  r  r;  rI  r   r  r  r  s	            rI   rX  zElementHandle.dblclick]  s^     l &&..))!//)4!) * 	 	
 	
	   A	AA	A)indexlabelelementr   r  r  valuer  r  r  c                   K   t        j                  | j                  j                  t        j                  |      t        j                  |      t        j                  |      t        j                  |      |||       d{         S 7 w)a	  ElementHandle.select_option

        This method waits for [actionability](https://playwright.dev/python/docs/actionability) checks, waits until all specified options are present in
        the `<select>` element and selects these options.

        If the target element is not a `<select>` element, this method throws an error. However, if the element is inside
        the `<label>` element that has an associated
        [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be used
        instead.

        Returns the array of option values that have been successfully selected.

        Triggers a `change` and `input` event once all the provided options have been selected.

        **Usage**

        ```py
        # Single selection matching the value or label
        await handle.select_option("blue")
        # single selection matching the label
        await handle.select_option(label="blue")
        # multiple selection
        await handle.select_option(value=["red", "green", "blue"])
        ```

        Parameters
        ----------
        value : Union[Sequence[str], str, None]
            Options to select by value. If the `<select>` has the `multiple` attribute, all given options are selected,
            otherwise only the first option matching one of the passed options is selected. Optional.
        index : Union[Sequence[int], int, None]
            Options to select by index. Optional.
        label : Union[Sequence[str], str, None]
            Options to select by label. If the `<select>` 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, Sequence[ElementHandle], None]
            Option elements to select. Optional.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.

        Returns
        -------
        List[str]
        )r  r  r  r  r   r  r  Nr   rD   rE   select_optionr   )rH   r  r  r  r  r   r  r  s           rI   r  zElementHandle.select_option  sv     @ &&....ooe,ooe,ooe,0) /  

 
	
   BBB	Br  r  r   r  r  r  c          
         K   t        j                  | j                  j                  t        j                  |      |||||       d{         S 7 w)a  ElementHandle.tap

        This method taps the element by performing the following steps:
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the element, unless `force` option is set.
        1. Scroll the element into view if needed.
        1. Use `page.touchscreen` to tap the center of the element, or the specified `position`.

        If the element is detached from the DOM at any moment during the action, this method throws.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        **NOTE** `elementHandle.tap()` requires that the `hasTouch` option of the browser context be set to true.

        Parameters
        ----------
        modifiers : Union[Sequence[Union["Alt", "Control", "ControlOrMeta", "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. "ControlOrMeta" resolves to
            "Control" on Windows and Linux and to "Meta" on macOS.
        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, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        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.
        r  r  r   r  r  r  Nr   rD   rE   rb  r   rH   r  r  r   r  r  r  s          rI   rb  zElementHandle.tap  sX     ` &&..$$!//)4!) %  	
 		
r  r   r  r  c                   K   t        j                  | j                  j                  ||||       d{         S 7 w)a  ElementHandle.fill

        This method waits for [actionability](https://playwright.dev/python/docs/actionability) checks, focuses the element, fills it and triggers an
        `input` event after filling. Note that you can pass an empty string to clear the input field.

        If the target element is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an
        error. However, if the element is inside the `<label>` element that has an associated
        [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be filled
        instead.

        To send fine-grained keyboard events, use `locator.press_sequentially()`.

        Parameters
        ----------
        value : str
            Value to set for the `<input>`, `<textarea>` or `[contenteditable]` element.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        r  r   r  r  Nr   rD   rE   fillrH   r  r   r  r  s        rI   r  zElementHandle.fill'	  sF     D &&..%%W-u &  
 	
rY  r  r   c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)az  ElementHandle.select_text

        This method waits for [actionability](https://playwright.dev/python/docs/actionability) checks, then focuses the element and selects all its
        text content.

        If the element is inside the `<label>` element that has an associated
        [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), focuses and selects text in
        the control instead.

        Parameters
        ----------
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        r  Nr   rD   rE   select_textrH   r  r   s      rI   r  zElementHandle.select_textO	  8     0 &&..,,5',JJ
 	
Jr"  c                |   K   t        j                  | j                  j                  |       d{         S 7 w)a  ElementHandle.input_value

        Returns `input.value` for the selected `<input>` or `<textarea>` or `<select>` element.

        Throws for non-input elements. However, if the element is inside the `<label>` element that has an associated
        [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), returns the value of the
        control.

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        str
        r  Nr   rD   rE   input_valuer  s     rI   r  zElementHandle.input_valuek	  s6     ( &&..,,W,==
 	
=r   r   r  filesc                   K   t        j                  | j                  j                  t        j                  |      ||       d{         S 7 w)aP  ElementHandle.set_input_files

        Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then
        they are resolved relative to the current working directory. For empty array, clears the selected files. For inputs
        with a `[webkitdirectory]` attribute, only a single directory path is supported.

        This method expects `ElementHandle` to point to an
        [input element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input). However, if the element is inside
        the `<label>` element that has an associated
        [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), targets the control instead.

        Parameters
        ----------
        files : Union[Sequence[Union[pathlib.Path, str]], Sequence[{name: str, mimeType: str, buffer: bytes}], pathlib.Path, str, {name: str, mimeType: str, buffer: bytes}]
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        r  r   r  Nr   rD   rE   set_input_filesr   rH   r  r   r  s       rI   r  zElementHandle.set_input_files	  sM     F &&..00ooe,g= 1  
 	
   AAA	Ac                 x   K   t        j                  | j                  j                          d{         S 7 w)zElementHandle.focus

        Calls [focus](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus) on the element.
        Nr   rD   rE   focusrG   s    rI   r  zElementHandle.focus	  s,      &&T^^-A-A-C'CDD'Crk   r;  r   r  r   c                   K   t        j                  | j                  j                  ||||       d{         S 7 w)a  ElementHandle.type

        Focuses the element, and then sends a `keydown`, `keypress`/`input`, and `keyup` event for each character in the
        text.

        To press a special key, like `Control` or `ArrowDown`, use `element_handle.press()`.

        **Usage**

        Parameters
        ----------
        text : str
            A text to type into a focused element.
        delay : Union[float, None]
            Time to wait between key presses in milliseconds. Defaults to 0.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        r   r;  r   r  Nr=  rH   r   r;  r   r  s        rI   r>  zElementHandle.type	  E     > &&..%%] &  
 	
rY  r0  c                   K   t        j                  | j                  j                  ||||       d{         S 7 w)a	  ElementHandle.press

        Focuses the element, and then uses `keyboard.down()` and `keyboard.up()`.

        `key` can specify the intended
        [keyboardEvent.key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) value or a single character
        to generate the text for. A superset of the `key` values can be found
        [here](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values). Examples of the keys are:

        `F1` - `F12`, `Digit0`- `Digit9`, `KeyA`- `KeyZ`, `Backquote`, `Minus`, `Equal`, `Backslash`, `Backspace`, `Tab`,
        `Delete`, `Escape`, `ArrowDown`, `End`, `Enter`, `Home`, `Insert`, `PageDown`, `PageUp`, `ArrowRight`, `ArrowUp`,
        etc.

        Following modification shortcuts are also supported: `Shift`, `Control`, `Alt`, `Meta`, `ShiftLeft`,
        `ControlOrMeta`.

        Holding down `Shift` will type the text that corresponds to the `key` in the upper case.

        If `key` is a single character, it is case-sensitive, so the values `a` and `A` will generate different respective
        texts.

        Shortcuts such as `key: "Control+o"`, `key: "Control++` or `key: "Control+Shift+T"` are supported as well. When
        specified with the modifier, modifier is pressed and being held while the subsequent key is being pressed.

        Parameters
        ----------
        key : str
            Name of the key to press or a character to generate, such as `ArrowLeft` or `a`.
        delay : Union[float, None]
            Time to wait between `keydown` and `keyup` in milliseconds. Defaults to 0.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        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`.
            Deprecated: This option will default to `true` in the future.
        r0  r;  r   r  Nr@  rH   r0  r;  r   r  s        rI   rA  zElementHandle.press	  sF     ` &&..&&ug= '  
 	
rY  r  r   r  r  r  checkedc          
         K   t        j                  | j                  j                  ||||||       d{         S 7 w)a   ElementHandle.set_checked

        This method checks or unchecks an element by performing the following steps:
        1. Ensure that element is a checkbox or a radio input. If not, this method throws.
        1. If the element already has the right checked state, this method returns immediately.
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the matched element, unless `force` option is set. If
           the element is detached during the checks, the whole action is retried.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to click in the center of the element.
        1. Ensure that the element is now checked or unchecked. If not, this method throws.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        Parameters
        ----------
        checked : bool
            Whether to check or uncheck the checkbox.
        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, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        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.
        r  r  r   r  r  r  Nr   rD   rE   set_checkedrH   r  r  r   r  r  r  s          rI   r  zElementHandle.set_checked
  sO     X &&..,,!) -  	
 		
   4A?	Ac          	         K   t        j                  | j                  j                  |||||       d{         S 7 w)a  ElementHandle.check

        This method checks the element by performing the following steps:
        1. Ensure that element is a checkbox or a radio input. If not, this method throws. If the element is already
           checked, this method returns immediately.
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the element, unless `force` option is set.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to click in the center of the element.
        1. Ensure that the element is now checked. If not, this method throws.

        If the element is detached from the DOM at any moment during the action, this method throws.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        Parameters
        ----------
        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, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        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.
        r  r   r  r  r  Nr   rD   rE   checkrH   r  r   r  r  r  s         rI   r  zElementHandle.checkF
  sL     T &&..&&!) '  
 	
rV  c          	         K   t        j                  | j                  j                  |||||       d{         S 7 w)a  ElementHandle.uncheck

        This method checks the element by performing the following steps:
        1. Ensure that element is a checkbox or a radio input. If not, this method throws. If the element is already
           unchecked, this method returns immediately.
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the element, unless `force` option is set.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to click in the center of the element.
        1. Ensure that the element is now unchecked. If not, this method throws.

        If the element is detached from the DOM at any moment during the action, this method throws.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        Parameters
        ----------
        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, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        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.
        r  Nr   rD   rE   uncheckr  s         rI   r  zElementHandle.uncheckz
  sL     T &&..((!) )  
 	
rV  c                 x   K   t        j                  | j                  j                          d{         S 7 w)a  ElementHandle.bounding_box

        This method returns the bounding box of the element, or `null` if the element is not visible. The bounding box is
        calculated relative to the main frame viewport - which is usually the same as the browser window.

        Scrolling affects the returned bounding box, similarly to
        [Element.getBoundingClientRect](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect).
        That means `x` and/or `y` may be negative.

        Elements from child frames return the bounding box relative to the main frame, unlike the
        [Element.getBoundingClientRect](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect).

        Assuming the page is static, it is safe to use bounding box coordinates to perform input. For example, the
        following snippet should click the center of the element.

        **Usage**

        ```py
        box = await element_handle.bounding_box()
        await page.mouse.click(box["x"] + box["width"] / 2, box["y"] + box["height"] / 2)
        ```

        Returns
        -------
        Union[{x: float, y: float, width: float, height: float}, None]
        Nr   r\   rE   bounding_boxrG   s    rI   r  zElementHandle.bounding_box
  s,     8 ))0K0K0M*MNN*Mrk   r   r>  r   qualityomit_background
animationscaretscalemask
mask_colorstylejpegpngr   r  r  r  allowdisabledr  hideinitialr  cssdevicer  r3   r  r  c                   K   t        j                  | j                  j                  ||||||||t        j                  |	      |
|       d{         S 7 w)a  ElementHandle.screenshot

        This method captures a screenshot of the page, clipped to the size and position of this particular element. If the
        element is covered by other elements, it will not be actually visible on the screenshot. If the element is a
        scrollable container, only the currently scrolled content will be visible on the screenshot.

        This method waits for the [actionability](https://playwright.dev/python/docs/actionability) checks, then scrolls element into view before taking
        a screenshot. If the element is detached from DOM, the method throws an error.

        Returns the buffer with the captured screenshot.

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        type : Union["jpeg", "png", None]
            Specify screenshot type, defaults to `png`.
        path : Union[pathlib.Path, str, None]
            The file path to save the image to. The screenshot type will be inferred from file extension. If `path` is a
            relative path, then it is resolved relative to the current working directory. If no path is provided, the image
            won't be saved to the disk.
        quality : Union[int, None]
            The quality of the image, between 0-100. Not applicable to `png` images.
        omit_background : Union[bool, None]
            Hides default white background and allows capturing screenshots with transparency. Not applicable to `jpeg` images.
            Defaults to `false`.
        animations : Union["allow", "disabled", None]
            When set to `"disabled"`, stops CSS animations, CSS transitions and Web Animations. Animations get different
            treatment depending on their duration:
            - finite animations are fast-forwarded to completion, so they'll fire `transitionend` event.
            - infinite animations are canceled to initial state, and then played over after the screenshot.

            Defaults to `"allow"` that leaves animations untouched.
        caret : Union["hide", "initial", None]
            When set to `"hide"`, screenshot will hide text caret. When set to `"initial"`, text caret behavior will not be
            changed.  Defaults to `"hide"`.
        scale : Union["css", "device", None]
            When set to `"css"`, screenshot will have a single pixel per each css pixel on the page. For high-dpi devices, this
            will keep screenshots small. Using `"device"` option will produce a single pixel per each device pixel, so
            screenshots of high-dpi devices will be twice as large or even larger.

            Defaults to `"device"`.
        mask : Union[Sequence[Locator], None]
            Specify locators that should be masked when the screenshot is taken. Masked elements will be overlaid with a pink
            box `#FF00FF` (customized by `maskColor`) that completely covers its bounding box.
        mask_color : Union[str, None]
            Specify the color of the overlay box for masked elements, in
            [CSS color format](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value). Default color is pink `#FF00FF`.
        style : Union[str, None]
            Text of the stylesheet to apply while making the screenshot. This is where you can hide dynamic elements, make
            elements invisible or change their properties to help you creating repeatable screenshots. This stylesheet pierces
            the Shadow DOM and applies to the inner frames.

        Returns
        -------
        bytes
        r   r>  r   r  omitBackgroundr  r  r  r  	maskColorr  Nr   rD   rE   
screenshotr   rH   r   r>  r   r  r  r  r  r  r  r  r  s               rI   r)  zElementHandle.screenshot
  sg     T &&..++.%__T*$ ,  
 	
   AAA	Aselectorc                 |   K   t        j                  | j                  j                  |       d{         S 7 w)an  ElementHandle.query_selector

        The method finds an element matching the specified selector in the `ElementHandle`'s subtree. If no elements match
        the selector, returns `null`.

        Parameters
        ----------
        selector : str
            A selector to query for.

        Returns
        -------
        Union[ElementHandle, None]
        r,  Nr   r\   rE   query_selectorrH   r,  s     rI   r0  zElementHandle.query_selector&  s6       ))..///BB
 	
Br   c                 |   K   t        j                  | j                  j                  |       d{         S 7 w)aq  ElementHandle.query_selector_all

        The method finds all elements matching the specified selector in the `ElementHandle`s subtree. If no elements match
        the selector, returns empty array.

        Parameters
        ----------
        selector : str
            A selector to query for.

        Returns
        -------
        List[ElementHandle]
        r.  Nr   rv   rE   query_selector_allr1  s     rI   r4  z ElementHandle.query_selector_all:  6       %%..33X3FF
 	
Fr   rd  re  c           	         K   t        j                  | j                  j                  ||t        j                  |             d{         S 7 w)a  ElementHandle.eval_on_selector

        Returns the return value of `expression`.

        The method finds an element matching the specified selector in the `ElementHandle`s subtree and passes it as a
        first argument to `expression`. If no elements match the selector, the method throws an error.

        If `expression` returns a [Promise], then `element_handle.eval_on_selector()` would wait for the promise to
        resolve and return its value.

        **Usage**

        ```py
        tweet_handle = await page.query_selector(".tweet")
        assert await tweet_handle.eval_on_selector(".like", "node => node.innerText") == "100"
        assert await tweet_handle.eval_on_selector(".retweets", "node => node.innerText") == "10"
        ```

        Parameters
        ----------
        selector : str
            A selector to query for.
        expression : str
            JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the
            function is automatically invoked.
        arg : Union[Any, None]
            Optional argument to pass to `expression`.

        Returns
        -------
        Any
        r,  rd  re  Nr   rD   rE   eval_on_selectorr   rH   r,  rd  re  s       rI   r9  zElementHandle.eval_on_selectorN  sM     H &&..11!jgooc>R 2  
 	
r  c           	         K   t        j                  | j                  j                  ||t        j                  |             d{         S 7 w)a  ElementHandle.eval_on_selector_all

        Returns the return value of `expression`.

        The method finds all elements matching the specified selector in the `ElementHandle`'s subtree and passes an array
        of matched elements as a first argument to `expression`.

        If `expression` returns a [Promise], then `element_handle.eval_on_selector_all()` would wait for the promise to
        resolve and return its value.

        **Usage**

        ```html
        <div class="feed">
          <div class="tweet">Hello!</div>
          <div class="tweet">Hi!</div>
        </div>
        ```

        ```py
        feed_handle = await page.query_selector(".feed")
        assert await feed_handle.eval_on_selector_all(".tweet", "nodes => nodes.map(n => n.innerText)") == ["hello!", "hi!"]
        ```

        Parameters
        ----------
        selector : str
            A selector to query for.
        expression : str
            JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the
            function is automatically invoked.
        arg : Union[Any, None]
            Optional argument to pass to `expression`.

        Returns
        -------
        Any
        r7  Nr   rD   rE   eval_on_selector_allr   r:  s       rI   r=  z"ElementHandle.eval_on_selector_allx  sM     T &&..55!jgooc>R 6  
 	
r  state)r  editableenabledhiddenstablevisiblec                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)a8  ElementHandle.wait_for_element_state

        Returns when the element satisfies the `state`.

        Depending on the `state` parameter, this method waits for one of the [actionability](https://playwright.dev/python/docs/actionability) checks to
        pass. This method throws when the element is detached while waiting, unless waiting for the `"hidden"` state.
        - `"visible"` Wait until the element is [visible](https://playwright.dev/python/docs/actionability#visible).
        - `"hidden"` Wait until the element is [not visible](https://playwright.dev/python/docs/actionability#visible) or not attached. Note that
          waiting for hidden does not throw when the element detaches.
        - `"stable"` Wait until the element is both [visible](https://playwright.dev/python/docs/actionability#visible) and
          [stable](https://playwright.dev/python/docs/actionability#stable).
        - `"enabled"` Wait until the element is [enabled](https://playwright.dev/python/docs/actionability#enabled).
        - `"disabled"` Wait until the element is [not enabled](https://playwright.dev/python/docs/actionability#enabled).
        - `"editable"` Wait until the element is [editable](https://playwright.dev/python/docs/actionability#editable).

        If the element does not satisfy the condition for the `timeout` milliseconds, this method will throw.

        Parameters
        ----------
        state : Union["disabled", "editable", "enabled", "hidden", "stable", "visible"]
            A state to wait for, see below for more details.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        r>  r   N)r   rD   rE   wait_for_element_staterH   r>  r   s      rI   rF  z$ElementHandle.wait_for_element_state  s9     D &&..77eW7UU
 	
Ur"  )r>  r   strictattacheddetachedrA  rC  rH  c                   K   t        j                  | j                  j                  ||||       d{         S 7 w)a	  ElementHandle.wait_for_selector

        Returns element specified by selector when it satisfies `state` option. Returns `null` if waiting for `hidden` or
        `detached`.

        Wait for the `selector` relative to the element handle to satisfy `state` option (either appear/disappear from dom,
        or become visible/hidden). If at the moment of calling the method `selector` already satisfies the condition, the
        method will return immediately. If the selector doesn't satisfy the condition for the `timeout` milliseconds, the
        function will throw.

        **Usage**

        ```py
        await page.set_content("<div><span></span></div>")
        div = await page.query_selector("div")
        # waiting for the "span" selector relative to the div.
        span = await div.wait_for_selector("span", state="attached")
        ```

        **NOTE** This method does not work across navigations, use `page.wait_for_selector()` instead.

        Parameters
        ----------
        selector : str
            A selector to query for.
        state : Union["attached", "detached", "hidden", "visible", None]
            Defaults to `'visible'`. Can be either:
            - `'attached'` - wait for element to be present in DOM.
            - `'detached'` - wait for element to not be present in DOM.
            - `'visible'` - wait for element to have non-empty bounding box and no `visibility:hidden`. Note that element
              without any content or with `display:none` has an empty bounding box and is not considered visible.
            - `'hidden'` - wait for element to be either detached from DOM, or have an empty bounding box or
              `visibility:hidden`. This is opposite to the `'visible'` option.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.

        Returns
        -------
        Union[ElementHandle, None]
        )r,  r>  r   rH  Nr   r\   rE   wait_for_selector)rH   r,  r>  r   rH  s        rI   rN  zElementHandle.wait_for_selector  sF     n ))..22! 3  
 	
rY  r   r   );r   r   r   r   r   rx  r  r  r   r  r  r  r  r   r  r  r  r  r  r  r   r  r   r  Sequencer   r   r  r   rU  rX  r   r   r  rb  r  r  r  r   r   r   r  r  r>  rA  r  r  r  r   r  r   r)  r0  r4  r   r9  r=  rF  rN  r   rK   rI   r'   r'     s   
GFOOO< 
G
N6??7#; 
N
PV__W%= 
PV V0D V"
LFOOC$8 
L
J# 
J
J# 
J
J$ 
J
K4 
K
K4 
K
J$ 
J
I 
I
J$ 
J EI2
2
%+__V[[%A2
	2
j 48
 //%0
	
< .2*./3'+'+7
 ??OOG$VWX
7
 //(+7
 '7
 t,7
 t$7
 t$7
 
7
| .2(,FJ,0*.'+/3'+F
 ??OOG$VWX
F
 //(+F
 u%F
 (A BCF
 __S)F
 'F
 t$F
 t,F
 t$F
 
F
Z .2(,FJ*.'+/3'+A
 ??OOG$VWX
A
 //(+A
 u%A
 (A BCA
 'A
 t$A
 t,A
 t$A
 
A
J KOJ
 KOJN *.'+/3J
v||C1E,EFGJ
 v||C1E,EFG	J

 v||C1E,EFGJ
 LL&///*JJK
J
 'J
 t$J
 t,J
 
S	J
b .2*.'+/3'+9
 ??OOG$VWX
9
 //(+9
 '9
 t$9
 t,9
 t$9
 
9
~ +//3'+&
&
 '	&

 t,&
 t$&
 
&
V (,*.	
 t$
 '	

 

8 FJ 
FOOE,B 
c 
D +//3'
||LLOOFLLgll):;<OOK(	*
'
 ''
 t,'
 
'
RE )-*./3#
#
 u%	#

 '#
 t,#
 
#
R )-*./34
4
 u%	4

 '4
 t,4
 
4
t /3*.'+/3'+5
5
 //(+	5

 '5
 t$5
 t,5
 t$5
 
5
t /3*.'+/3'+2
 //(+2
 '	2

 t$2
 t,2
 t$2
 
2
n /3*.'+/3'+2
 //(+2
 '	2

 t$2
 t,2
 t$2
 
2
hOFOOI$> OB +/8<AE(,15DH=A;?<@+/&*X
 'X
 oogm45	X

 oofll3+<=>X
 %X
  .X
 OOG,?$@AX
 w'89:X
 w78X
 oofooi89X
 OOC(X
 s#X
 
X
t
S 
V___5U 
(
 
_9U 
* RV(
(
),(
39??6::3N(
	(
V RV.
.
),.
39??6::3N.
	.
l +/$
L
$
 '$
 
$
X *.(,;
;
 ?@
	;
 ';
 %;
 
	);
rK   r'   c                       e Zd Zddddej                  e   dej                  d   dej                  ej                     fdZy)r   N)interesting_onlyrootrQ  rR  r'   rA   c                   K   t        j                  | j                  j                  |t        j                  |             d{         S 7 w)a  Accessibility.snapshot

        Captures the current state of the accessibility tree. The returned object represents the root accessible node of
        the page.

        **NOTE** The Chromium accessibility tree contains nodes that go unused on most platforms and by most screen
        readers. Playwright will discard them as well for an easier to process tree, unless `interestingOnly` is set to
        `false`.

        **Usage**

        An example of dumping the entire accessibility tree:

        ```py
        snapshot = await page.accessibility.snapshot()
        print(snapshot)
        ```

        An example of logging the focused node's name:

        ```py
        def find_focused_node(node):
            if node.get("focused"):
                return node
            for child in (node.get("children") or []):
                found_node = find_focused_node(child)
                if found_node:
                    return found_node
            return None

        snapshot = await page.accessibility.snapshot()
        node = find_focused_node(snapshot)
        if node:
            print(node["name"])
        ```

        Parameters
        ----------
        interesting_only : Union[bool, None]
            Prune uninteresting nodes from the tree. Defaults to `true`.
        root : Union[ElementHandle, None]
            The root DOM element for the snapshot. Defaults to the whole page.

        Returns
        -------
        Union[Dict, None]
        )interestingOnlyrR  N)r   rD   rE   snapshotr   )rH   rQ  rR  s      rI   rU  zAccessibility.snapshot  sK     l &&..)) 0wt7L *  
 	
rk  )r   r   r   r   r   r   r   rU  r   rK   rI   r   r     sL    
 3715	:
 !//$/:
 ooo.	:

 
	%:
rK   r   c            
       .   e Zd Zedd       Zedd       ZdefdZddddej                  e
ej                  eej                  ej                  e
ej                  f      ej                  e   f   dej                  e   d	ej                  e   ddfd
Zy)r,   rA   c                 T    t        j                  | j                  j                        S )z{FileChooser.page

        Returns page this file chooser belongs to.

        Returns
        -------
        Page
        r   rY   rE   pagerG   s    rI   rY  zFileChooser.pageS         !4!455rK   c                 T    t        j                  | j                  j                        S )zFileChooser.element

        Returns input element associated with this file chooser.

        Returns
        -------
        ElementHandle
        )r   rY   rE   r  rG   s    rI   r  zFileChooser.element_  r   rK   c                 \    t        j                  | j                  j                               S )zFileChooser.is_multiple

        Returns whether this file chooser accepts multiple files.

        Returns
        -------
        bool
        )r   rD   rE   is_multiplerG   s    rI   r]  zFileChooser.is_multiplek  "     &&t~~'A'A'CDDrK   Nr  r  r   r  c                   K   t        j                  | j                  j                  t        j                  |      ||       d{         S 7 w)a  FileChooser.set_files

        Sets the value of the file input this chooser is associated with. If some of the `filePaths` are relative paths,
        then they are resolved relative to the current working directory. For empty array, clears the selected files.

        Parameters
        ----------
        files : Union[Sequence[Union[pathlib.Path, str]], Sequence[{name: str, mimeType: str, buffer: bytes}], pathlib.Path, str, {name: str, mimeType: str, buffer: bytes}]
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        r  N)r   rD   rE   	set_filesr   r  s       rI   r`  zFileChooser.set_filesw  sL     : &&..**ooe,g= +  
 	
r  rA   r9   rA   r'   )r   r   r   r   rY  r  r   r]  r   r   r   r   r   r   rO  r   r   r`  r   rK   rI   r,   r,   Q  s    	6 	6 	9 	9
ET 
E, +//3!
||LLOOFLLgll):;<OOK(	*
!
 '!
 t,!
 
!
rK   r,   c                   T   e Zd Zedd       Zedefd       Zedefd       Zedej                  d    fd       Z
edej                  d    fd       Zddddd	ed
ej                  e   dej                  ed      dej                  e   dej                  d   f
dZddddd	ej                  ej                   eej"                  e   ej$                  egef   f      dej                  ed      d
ej                  e   ded   fdZdddd	ej                   eej"                  e   ej$                  egef   f   dej                  ed      d
ej                  e   ddfdZ	 ddddej                  ed      d
ej                  e   ddfdZddZ	 ddedej                  ej2                     dej2                  fdZ	 ddedej                  ej2                     ddfdZddd ed!ej                  e   dej                  d   fd"Zd edej                  d   fd#Zdddd$d ed!ej                  e   d
ej                  e   dej                  ed%      dej                  d   f
d&Zddd'd ed!ej                  e   d
ej                  e   defd(Zddd'd ed!ej                  e   d
ej                  e   defd)Z ddd'd ed!ej                  e   d
ej                  e   defd*Z!ddd'd ed!ej                  e   d
ej                  e   defd+Z"ddd'd ed!ej                  e   d
ej                  e   defd,Z#ddd'd ed!ej                  e   d
ej                  e   defd-Z$	 dddd'd ed.ed/ej                  ejJ                     d!ej                  e   d
ej                  e   ddfd0Z&	 dddd ededej                  ej2                     d!ej                  e   dej2                  f
d1Z'	 dd ededej                  ej2                     dej2                  fd2Z(defd3Z)ddd4d5ed
ej                  e   dej                  ed      ddfd6Z*defd7Z+ddddd8d	ej                  e   d9ej                  ej                   ee,jZ                  f      d:ej                  e   d.ej                  e   ddf
d;Z.dddd<d	ej                  e   d9ej                  ej                   ee,jZ                  f      d:ej                  e   ddfd=Z/ddddddddddd>
d ed?ej                  ej`                  ed@         dAej                  e1   dBej                  e   dCej                  edD      dEej                  e2   d
ej                  e   dFej                  e   dGej                  e   d!ej                  e   dHej                  e   ddfdIZ3ddddddddddJ	d ed?ej                  ej`                  ed@         dAej                  e1   dBej                  e   dCej                  edD      d
ej                  e   dFej                  e   dGej                  e   d!ej                  e   dHej                  e   ddfdKZ4ddddddddLd ed?ej                  ej`                  ed@         dAej                  e1   d
ej                  e   dFej                  e   dGej                  e   d!ej                  e   dHej                  e   ddfdMZ5dddddNd edOed
ej                  e   dGej                  e   d!ej                  e   dFej                  e   ddfdPZ6dddddQd edRej                  ej                   eej"                  e   f      dSej                  ej                   eej"                  e   f      dTej                  dU   dVej                  dU   ddUfdWZ7ddXdYej                   eej"                  e   f   dZej                  e   ddUfd[Z8ddXdYej                   eej"                  e   f   dZej                  e   ddUfd\Z9ddXdYej                   eej"                  e   f   dZej                  e   ddUfd]Z:dddddddddd^	d_ed`   daej                  e   dbej                  e   dcej                  e   ddej                  e   deej                  e2   dfej                  ej                   eej"                  e   f      dgej                  e   dhej                  e   dZej                  e   ddUfdiZ;djej                   eej"                  e   f   ddUfdkZ<ddXdYej                   eej"                  e   f   dZej                  e   ddUfdlZ=ddXdYej                   eej"                  e   f   dZej                  e   ddUfdmZ>d eddnfdoZ?ddd'd ed!ej                  e   d
ej                  e   ddfdpZ@ddd'd ed!ej                  e   d
ej                  e   dej                  e   fdqZAddd'd ed!ej                  e   d
ej                  e   defdrZBddd'd ed!ej                  e   d
ej                  e   defdsZCddd'd edfed!ej                  e   d
ej                  e   dej                  e   f
dtZDddddddddud ed?ej                  ej`                  ed@         dAej                  e1   d
ej                  e   dGej                  e   dFej                  e   d!ej                  e   dHej                  e   ddfdvZEddddddddwdxedyedzej                  e1   d{ej                  e1   dFej                  e   dGej                  e   d!ej                  e   d
ej                  e   dHej                  e   ddfd|ZF	 ddddddddd}d edOej                  ej                   eej`                  e   f      d~ej                  ej                   e2ej`                  e2   f      dej                  ej                   eej`                  e   f      dej                  ej                   dej`                  d   f      d
ej                  e   dGej                  e   d!ej                  e   dFej                  e   dej                  e   fdZGddd'd ed!ej                  e   d
ej                  e   defdZHddddd edej                   ee,jZ                  eIej`                  ej                   ee,jZ                  f      ej`                  eI   f   d!ej                  e   d
ej                  e   dGej                  e   ddfdZJdddddd edYedBej                  e   d!ej                  e   d
ej                  e   dGej                  e   ddfdZKdddddd ededBej                  e   d!ej                  e   d
ej                  e   dGej                  e   ddfdZLdddddddd edAej                  e1   d
ej                  e   dFej                  e   dGej                  e   d!ej                  e   dHej                  e   ddfdZMdddddddd edAej                  e1   d
ej                  e   dFej                  e   dGej                  e   d!ej                  e   dHej                  e   ddfdZNd
eddfdZOdddddedej                  ej2                     d
ej                  e   dej                  ej                   eed   f      ddf
dZPdefdZQdddddddd edaedAej                  e1   d
ej                  e   dFej                  e   dGej                  e   d!ej                  e   dHej                  e   ddfdZRy)r-   rA   c                 T    t        j                  | j                  j                        S )zrFrame.page

        Returns the page containing this frame.

        Returns
        -------
        Page
        rX  rG   s    rI   rY  z
Frame.page  rZ  rK   c                 T    t        j                  | j                  j                        S )aL  Frame.name

        Returns frame's name attribute as specified in the tag.

        If the name is empty, returns the id attribute instead.

        **NOTE** This value is calculated once when the frame is created, and will not update if the attribute is changed
        later.

        Returns
        -------
        str
        r   rD   rE   ry   rG   s    rI   ry   z
Frame.name  s     &&t~~':':;;rK   c                 T    t        j                  | j                  j                        S )z]Frame.url

        Returns frame's url.

        Returns
        -------
        str
        rC   rG   s    rI   rF   z	Frame.url  rJ   rK   c                 T    t        j                  | j                  j                        S )zFrame.parent_frame

        Parent frame, if any. Detached frames and main frames return `null`.

        Returns
        -------
        Union[Frame, None]
        )r   r\   rE   parent_framerG   s    rI   ri  zFrame.parent_frame  s     ))$..*E*EFFrK   c                 T    t        j                  | j                  j                        S )zPFrame.child_frames

        Returns
        -------
        List[Frame]
        )r   rv   rE   child_framesrG   s    rI   rk  zFrame.child_frames  s     %%dnn&A&ABBrK   Nr   
wait_untilrefererrF   r   rm  commitdomcontentloadedloadnetworkidlern  r5   c                   K   t        j                  | j                  j                  ||||       d{         S 7 w)a
  Frame.goto

        Returns the main resource response. In case of multiple redirects, the navigation will resolve with the response of
        the last redirect.

        The method will throw an error if:
        - there's an SSL error (e.g. in case of self-signed certificates).
        - target URL is invalid.
        - the `timeout` is exceeded during navigation.
        - the remote server does not respond or is unreachable.
        - the main resource failed to load.

        The method will not throw an error when any valid HTTP status code is returned by the remote server, including 404
        "Not Found" and 500 "Internal Server Error".  The status code for such responses can be retrieved by calling
        `response.status()`.

        **NOTE** The method either throws an error or returns a main resource response. The only exceptions are navigation
        to `about:blank` or navigation to the same URL with a different hash, which would succeed and return `null`.

        **NOTE** Headless mode doesn't support navigation to a PDF document. See the
        [upstream issue](https://bugs.chromium.org/p/chromium/issues/detail?id=761295).

        Parameters
        ----------
        url : str
            URL to navigate frame to. The url should include scheme, e.g. `https://`.
        timeout : Union[float, None]
            Maximum operation 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_navigation_timeout()`,
            `browser_context.set_default_timeout()`, `page.set_default_navigation_timeout()` or
            `page.set_default_timeout()` methods.
        wait_until : Union["commit", "domcontentloaded", "load", "networkidle", None]
            When to consider operation succeeded, defaults to `load`. Events can be either:
            - `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.
            - `'load'` - consider operation to be finished when the `load` event is fired.
            - `'networkidle'` - **DISCOURAGED** consider operation to be finished when there are no network connections for
              at least `500` ms. Don't use this method for testing, rely on web assertions to assess readiness instead.
            - `'commit'` - consider operation to be finished when network response is received and the document started
              loading.
        referer : Union[str, None]
            Referer header value. If provided it will take preference over the referer header value set by
            `page.set_extra_http_headers()`.

        Returns
        -------
        Union[Response, None]
        rF   r   	waitUntilrn  Nr   r\   rE   gotorH   rF   r   rm  rn  s        rI   rx  z
Frame.goto  sF     t ))..%%J &  
 	
rY  rF   rm  r   c                    t        | j                  j                  | j                  |      ||      j                        S )a
  Frame.expect_navigation

        Waits for the frame navigation and returns the main resource response. In case of multiple redirects, the
        navigation will resolve with the response of the last redirect. In case of navigation to a different anchor or
        navigation due to History API usage, the navigation will resolve with `null`.

        **Usage**

        This method waits for the frame to navigate to a new URL. It is useful for when you run code which will indirectly
        cause the frame to navigate. Consider this example:

        ```py
        async with frame.expect_navigation():
            await frame.click("a.delayed-navigation") # clicking the link will indirectly cause a navigation
        # Resolves after navigation has finished
        ```

        **NOTE** Usage of the [History API](https://developer.mozilla.org/en-US/docs/Web/API/History_API) to change the URL
        is considered a navigation.

        Parameters
        ----------
        url : Union[Callable[[str], bool], Pattern[str], str, None]
            A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if
            the parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly
            equal to the string.
        wait_until : Union["commit", "domcontentloaded", "load", "networkidle", None]
            When to consider operation succeeded, defaults to `load`. Events can be either:
            - `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.
            - `'load'` - consider operation to be finished when the `load` event is fired.
            - `'networkidle'` - **DISCOURAGED** consider operation to be finished when there are no network connections for
              at least `500` ms. Don't use this method for testing, rely on web assertions to assess readiness instead.
            - `'commit'` - consider operation to be finished when network response is received and the document started
              loading.
        timeout : Union[float, None]
            Maximum operation 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_navigation_timeout()`,
            `browser_context.set_default_timeout()`, `page.set_default_navigation_timeout()` or
            `page.set_default_timeout()` methods.

        Returns
        -------
        EventContextManager[Response]
        rF   rv  r   r   rE   expect_navigationr
  r  rH   rF   rm  r   s       rI   r~  zFrame.expect_navigation  s@    p (NN,,&&s+z7 - f
 	
rK   rm  r   c                   K   t        j                  | j                  j                  | j	                  |      ||       d{         S 7 w)a4  Frame.wait_for_url

        Waits for the frame to navigate to the given URL.

        **Usage**

        ```py
        await frame.click("a.delayed-navigation") # clicking the link will indirectly cause a navigation
        await frame.wait_for_url("**/target.html")
        ```

        Parameters
        ----------
        url : Union[Callable[[str], bool], Pattern[str], str]
            A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if
            the parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly
            equal to the string.
        wait_until : Union["commit", "domcontentloaded", "load", "networkidle", None]
            When to consider operation succeeded, defaults to `load`. Events can be either:
            - `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.
            - `'load'` - consider operation to be finished when the `load` event is fired.
            - `'networkidle'` - **DISCOURAGED** consider operation to be finished when there are no network connections for
              at least `500` ms. Don't use this method for testing, rely on web assertions to assess readiness instead.
            - `'commit'` - consider operation to be finished when network response is received and the document started
              loading.
        timeout : Union[float, None]
            Maximum operation 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_navigation_timeout()`,
            `browser_context.set_default_timeout()`, `page.set_default_navigation_timeout()` or
            `page.set_default_timeout()` methods.
        r|  Nr   rD   rE   wait_for_urlr
  r  s       rI   r  zFrame.wait_for_url]  O     R &&..--&&s+z7 .  
 	
r  r  r>  rq  rr  rs  c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)a  Frame.wait_for_load_state

        Waits for the required load state to be reached.

        This returns when the frame reaches a required load state, `load` by default. The navigation must have been
        committed when this method is called. If current document has already reached the required state, resolves
        immediately.

        **NOTE** Most of the time, this method is not needed because Playwright
        [auto-waits before every action](https://playwright.dev/python/docs/actionability).

        **Usage**

        ```py
        await frame.click("button") # click triggers navigation.
        await frame.wait_for_load_state() # the promise resolves after "load" event.
        ```

        Parameters
        ----------
        state : Union["domcontentloaded", "load", "networkidle", None]
            Optional load state to wait for, defaults to `load`. If the state has been already reached while loading current
            document, the method resolves immediately. Can be one of:
            - `'load'` - wait for the `load` event to be fired.
            - `'domcontentloaded'` - wait for the `DOMContentLoaded` event to be fired.
            - `'networkidle'` - **DISCOURAGED** wait until there are no network connections for at least `500` ms. Don't use
              this method for testing, rely on web assertions to assess readiness instead.
        timeout : Union[float, None]
            Maximum operation 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_navigation_timeout()`,
            `browser_context.set_default_timeout()`, `page.set_default_navigation_timeout()` or
            `page.set_default_timeout()` methods.
        rE  Nr   rD   rE   wait_for_load_staterG  s      rI   r  zFrame.wait_for_load_state  s9     T &&..445'4RR
 	
Rr"  r'   c                 x   K   t        j                  | j                  j                          d{         S 7 w)a^  Frame.frame_element

        Returns the `frame` or `iframe` element handle which corresponds to this frame.

        This is an inverse of `element_handle.content_frame()`. Note that returned handle actually belongs to the
        parent frame.

        This method throws an error if the frame has been detached before `frameElement()` returns.

        **Usage**

        ```py
        frame_element = await frame.frame_element()
        content_frame = await frame_element.content_frame()
        assert frame == content_frame
        ```

        Returns
        -------
        ElementHandle
        N)r   rY   rE   frame_elementrG   s    rI   r  zFrame.frame_element  s,     .   t~~'C'C'E!EFF!Erk   rd  re  c                    K   t        j                  | j                  j                  |t        j                  |             d{         S 7 w)aK  Frame.evaluate

        Returns the return value of `expression`.

        If the function passed to the `frame.evaluate()` returns a [Promise], then `frame.evaluate()` would
        wait for the promise to resolve and return its value.

        If the function passed to the `frame.evaluate()` returns a non-[Serializable] value, then
        `frame.evaluate()` returns `undefined`. Playwright also supports transferring some additional values that
        are not serializable by `JSON`: `-0`, `NaN`, `Infinity`, `-Infinity`.

        **Usage**

        ```py
        result = await frame.evaluate("([x, y]) => Promise.resolve(x * y)", [7, 8])
        print(result) # prints "56"
        ```

        A string can also be passed in instead of a function.

        ```py
        print(await frame.evaluate("1 + 2")) # prints "3"
        x = 10
        print(await frame.evaluate(f"1 + {x}")) # prints "11"
        ```

        `ElementHandle` instances can be passed as an argument to the `frame.evaluate()`:

        ```py
        body_handle = await frame.evaluate("document.body")
        html = await frame.evaluate("([body, suffix]) => body.innerHTML + suffix", [body_handle, "hello"])
        await body_handle.dispose()
        ```

        Parameters
        ----------
        expression : str
            JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the
            function is automatically invoked.
        arg : Union[Any, None]
            Optional argument to pass to `expression`.

        Returns
        -------
        Any
        rg  Nrh  rj  s      rI   ri  zFrame.evaluate  sK     d &&..))%7??3+? *  
 	
rk  r1   c                    K   t        j                  | j                  j                  |t        j                  |             d{         S 7 w)a  Frame.evaluate_handle

        Returns the return value of `expression` as a `JSHandle`.

        The only difference between `frame.evaluate()` and `frame.evaluate_handle()` is that
        `frame.evaluate_handle()` returns `JSHandle`.

        If the function, passed to the `frame.evaluate_handle()`, returns a [Promise], then
        `frame.evaluate_handle()` would wait for the promise to resolve and return its value.

        **Usage**

        ```py
        a_window_handle = await frame.evaluate_handle("Promise.resolve(window)")
        a_window_handle # handle for the window object.
        ```

        A string can also be passed in instead of a function.

        ```py
        a_handle = await page.evaluate_handle("document") # handle for the "document"
        ```

        `JSHandle` instances can be passed as an argument to the `frame.evaluate_handle()`:

        ```py
        a_handle = await page.evaluate_handle("document.body")
        result_handle = await page.evaluate_handle("body => body.innerHTML", a_handle)
        print(await result_handle.json_value())
        await result_handle.dispose()
        ```

        Parameters
        ----------
        expression : str
            JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the
            function is automatically invoked.
        arg : Union[Any, None]
            Optional argument to pass to `expression`.

        Returns
        -------
        JSHandle
        rg  Nrm  rj  s      rI   rn  zFrame.evaluate_handle  K     `   ..00%7??3+? 1  
 	
rk  rH  r,  rH  c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)a  Frame.query_selector

        Returns the ElementHandle pointing to the frame element.

        **NOTE** The use of `ElementHandle` is discouraged, use `Locator` objects and web-first assertions instead.

        The method finds an element matching the specified selector within the frame. If no elements match the selector,
        returns `null`.

        Parameters
        ----------
        selector : str
            A selector to query for.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.

        Returns
        -------
        Union[ElementHandle, None]
        r,  rH  Nr/  rH   r,  rH  s      rI   r0  zFrame.query_selectorA  s8     2 ))..//&/QQ
 	
Qr"  c                 |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Frame.query_selector_all

        Returns the ElementHandles pointing to the frame elements.

        **NOTE** The use of `ElementHandle` is discouraged, use `Locator` objects instead.

        The method finds all elements matching the specified selector within the frame. If no elements match the selector,
        returns empty array.

        Parameters
        ----------
        selector : str
            A selector to query for.

        Returns
        -------
        List[ElementHandle]
        r.  Nr3  r1  s     rI   r4  zFrame.query_selector_all^  s6     ( %%..33X3FF
 	
Fr   )rH  r   r>  rI  c                   K   t        j                  | j                  j                  ||||       d{         S 7 w)au  Frame.wait_for_selector

        Returns when element specified by selector satisfies `state` option. Returns `null` if waiting for `hidden` or
        `detached`.

        **NOTE** Playwright automatically waits for element to be ready before performing an action. Using `Locator`
        objects and web-first assertions make the code wait-for-selector-free.

        Wait for the `selector` to satisfy `state` option (either appear/disappear from dom, or become visible/hidden). If
        at the moment of calling the method `selector` already satisfies the condition, the method will return immediately.
        If the selector doesn't satisfy the condition for the `timeout` milliseconds, the function will throw.

        **Usage**

        This method works across navigations:

        ```py
        import asyncio
        from playwright.async_api import async_playwright, Playwright

        async def run(playwright: Playwright):
            chromium = playwright.chromium
            browser = await chromium.launch()
            page = await browser.new_page()
            for current_url in ["https://google.com", "https://bbc.com"]:
                await page.goto(current_url, wait_until="domcontentloaded")
                element = await page.main_frame.wait_for_selector("img")
                print("Loaded image: " + str(await element.get_attribute("src")))
            await browser.close()

        async def main():
            async with async_playwright() as playwright:
                await run(playwright)
        asyncio.run(main())
        ```

        Parameters
        ----------
        selector : str
            A selector to query for.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        state : Union["attached", "detached", "hidden", "visible", None]
            Defaults to `'visible'`. Can be either:
            - `'attached'` - wait for element to be present in DOM.
            - `'detached'` - wait for element to not be present in DOM.
            - `'visible'` - wait for element to have non-empty bounding box and no `visibility:hidden`. Note that element
              without any content or with `display:none` has an empty bounding box and is not considered visible.
            - `'hidden'` - wait for element to be either detached from DOM, or have an empty bounding box or
              `visibility:hidden`. This is opposite to the `'visible'` option.

        Returns
        -------
        Union[ElementHandle, None]
        )r,  rH  r   r>  NrM  )rH   r,  rH  r   r>  s        rI   rN  zFrame.wait_for_selectorv  sF     L ))..22!&' 3  
 	
rY  rH  r   c                   K   t        j                  | j                  j                  |||       d{         S 7 w)ah  Frame.is_checked

        Returns whether the element is checked. Throws if the element is not a checkbox or radio input.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        bool
        r,  rH  r   Nr  rH   r,  rH  r   s       rI   r  zFrame.is_checked  C     8 &&..++!&' ,  
 	
rH  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)a  Frame.is_disabled

        Returns whether the element is disabled, the opposite of [enabled](https://playwright.dev/python/docs/actionability#enabled).

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        bool
        r  Nr  r  s       rI   r  zFrame.is_disabled  C     8 &&..,,!&' -  
 	
rH  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)ao  Frame.is_editable

        Returns whether the element is [editable](https://playwright.dev/python/docs/actionability#editable).

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        bool
        r  Nr  r  s       rI   r  zFrame.is_editable  r  rH  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)al  Frame.is_enabled

        Returns whether the element is [enabled](https://playwright.dev/python/docs/actionability#enabled).

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        bool
        r  Nr  r  s       rI   r  zFrame.is_enabled(  r  rH  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)af  Frame.is_hidden

        Returns whether the element is hidden, the opposite of [visible](https://playwright.dev/python/docs/actionability#visible).  `selector` that
        does not match any elements is considered hidden.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Deprecated: This option is ignored. `frame.is_hidden()` does not wait for the element to become hidden and returns immediately.

        Returns
        -------
        bool
        r  Nr  r  s       rI   r  zFrame.is_hiddenJ  C     8 &&..**!&' +  
 	
rH  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)aU  Frame.is_visible

        Returns whether the element is [visible](https://playwright.dev/python/docs/actionability#visible). `selector` that does not match any elements
        is considered not visible.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Deprecated: This option is ignored. `frame.is_visible()` does not wait for the element to become visible and returns immediately.

        Returns
        -------
        bool
        r  Nr  r  s       rI   r  zFrame.is_visiblel  r  rH  r>  r  c          	         K   t        j                  | j                  j                  ||t        j                  |      ||       d{         S 7 w)a  Frame.dispatch_event

        The snippet below dispatches the `click` event on the element. Regardless of the visibility state of the element,
        `click` is dispatched. This is equivalent to calling
        [element.click()](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/click).

        **Usage**

        ```py
        await frame.dispatch_event("button#submit", "click")
        ```

        Under the hood, it creates an instance of an event based on the given `type`, initializes it with `eventInit`
        properties and dispatches it on the element. Events are `composed`, `cancelable` and bubble by default.

        Since `eventInit` is event-specific, please refer to the events documentation for the lists of initial properties:
        - [DeviceMotionEvent](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/DeviceMotionEvent)
        - [DeviceOrientationEvent](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/DeviceOrientationEvent)
        - [DragEvent](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/DragEvent)
        - [Event](https://developer.mozilla.org/en-US/docs/Web/API/Event/Event)
        - [FocusEvent](https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent/FocusEvent)
        - [KeyboardEvent](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/KeyboardEvent)
        - [MouseEvent](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent)
        - [PointerEvent](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/PointerEvent)
        - [TouchEvent](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/TouchEvent)
        - [WheelEvent](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/WheelEvent)

        You can also specify `JSHandle` as the property value if you want live objects to be passed into the event:

        ```py
        # note you can only create data_transfer in chromium and firefox
        data_transfer = await frame.evaluate_handle("new DataTransfer()")
        await frame.dispatch_event("#source", "dragstart", { "dataTransfer": data_transfer })
        ```

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        type : str
            DOM event type: `"click"`, `"dragstart"`, etc.
        event_init : Union[Dict, None]
            Optional event-specific initialization properties.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        )r,  r>  r  rH  r   Nr  )rH   r,  r>  r  rH  r   s         rI   r  zFrame.dispatch_event  sU     z &&..//!!//*5 0  
 	
   AAA		Ac          	         K   t        j                  | j                  j                  ||t        j                  |      |       d{         S 7 w)aw  Frame.eval_on_selector

        Returns the return value of `expression`.

        The method finds an element matching the specified selector within the frame and passes it as a first argument to
        `expression`. If no elements match the selector, the method throws an error.

        If `expression` returns a [Promise], then `frame.eval_on_selector()` would wait for the promise to resolve
        and return its value.

        **Usage**

        ```py
        search_value = await frame.eval_on_selector("#search", "el => el.value")
        preload_href = await frame.eval_on_selector("link[rel=preload]", "el => el.href")
        html = await frame.eval_on_selector(".main-container", "(e, suffix) => e.outerHTML + suffix", "hello")
        ```

        Parameters
        ----------
        selector : str
            A selector to query for.
        expression : str
            JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the
            function is automatically invoked.
        arg : Union[Any, None]
            Optional argument to pass to `expression`.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.

        Returns
        -------
        Any
        r,  rd  re  rH  Nr8  rH   r,  rd  re  rH  s        rI   r9  zFrame.eval_on_selector  sR     X &&..11!%OOC(	 2  
 	
   AAA	Ac           	         K   t        j                  | j                  j                  ||t        j                  |             d{         S 7 w)a  Frame.eval_on_selector_all

        Returns the return value of `expression`.

        The method finds all elements matching the specified selector within the frame and passes an array of matched
        elements as a first argument to `expression`.

        If `expression` returns a [Promise], then `frame.eval_on_selector_all()` would wait for the promise to resolve
        and return its value.

        **Usage**

        ```py
        divs_counts = await frame.eval_on_selector_all("div", "(divs, min) => divs.length >= min", 10)
        ```

        Parameters
        ----------
        selector : str
            A selector to query for.
        expression : str
            JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the
            function is automatically invoked.
        arg : Union[Any, None]
            Optional argument to pass to `expression`.

        Returns
        -------
        Any
        r7  Nr<  r:  s       rI   r=  zFrame.eval_on_selector_all
  sM     D &&..55!jgooc>R 6  
 	
r  c                 x   K   t        j                  | j                  j                          d{         S 7 w)zFrame.content

        Gets the full HTML contents of the frame, including the doctype.

        Returns
        -------
        str
        Nr   rD   rE   contentrG   s    rI   r  zFrame.content2  ,      &&T^^-C-C-E'EFF'Erk   r   rm  htmlc                   K   t        j                  | j                  j                  |||       d{         S 7 w)a  Frame.set_content

        This method internally calls [document.write()](https://developer.mozilla.org/en-US/docs/Web/API/Document/write),
        inheriting all its specific characteristics and behaviors.

        Parameters
        ----------
        html : str
            HTML markup to assign to the page.
        timeout : Union[float, None]
            Maximum operation 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_navigation_timeout()`,
            `browser_context.set_default_timeout()`, `page.set_default_navigation_timeout()` or
            `page.set_default_timeout()` methods.
        wait_until : Union["commit", "domcontentloaded", "load", "networkidle", None]
            When to consider operation succeeded, defaults to `load`. Events can be either:
            - `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.
            - `'load'` - consider operation to be finished when the `load` event is fired.
            - `'networkidle'` - **DISCOURAGED** consider operation to be finished when there are no network connections for
              at least `500` ms. Don't use this method for testing, rely on web assertions to assess readiness instead.
            - `'commit'` - consider operation to be finished when network response is received and the document started
              loading.
        r  r   rv  Nr   rD   rE   set_contentrH   r  r   rm  s       rI   r  zFrame.set_content>  D     B &&..,,7j -  
 	
rH  c                 \    t        j                  | j                  j                               S )zFrame.is_detached

        Returns `true` if the frame has been detached, or `false` otherwise.

        Returns
        -------
        bool
        )r   rD   rE   is_detachedrG   s    rI   r  zFrame.is_detachede  r^  rK   rF   r   r  r>  r   r  c                   K   t        j                  | j                  j                  ||||       d{         S 7 w)a  Frame.add_script_tag

        Returns the added tag when the script's onload fires or when the script content was injected into frame.

        Adds a `<script>` tag into the page with the desired url or content.

        Parameters
        ----------
        url : Union[str, None]
            URL of a script to be added.
        path : Union[pathlib.Path, str, None]
            Path to the JavaScript file to be injected into frame. If `path` is a relative path, then it is resolved relative
            to the current working directory.
        content : Union[str, None]
            Raw JavaScript content to be injected into frame.
        type : Union[str, None]
            Script type. Use 'module' in order to load a JavaScript ES6 module. See
            [script](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script) for more details.

        Returns
        -------
        ElementHandle
        r  Nr   rY   rE   add_script_tagrH   rF   r   r  r>  s        rI   r  zFrame.add_script_tagq  sF     @   ..//dG$ 0  
 	
rY  rF   r   r  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)a  Frame.add_style_tag

        Returns the added tag when the stylesheet's onload fires or when the CSS content was injected into frame.

        Adds a `<link rel="stylesheet">` tag into the page with the desired url or a `<style type="text/css">` tag with the
        content.

        Parameters
        ----------
        url : Union[str, None]
            URL of the `<link>` tag.
        path : Union[pathlib.Path, str, None]
            Path to the CSS file to be injected into frame. If `path` is a relative path, then it is resolved relative to the
            current working directory.
        content : Union[str, None]
            Raw CSS content to be injected into frame.

        Returns
        -------
        ElementHandle
        r  Nr   rY   rE   add_style_tagrH   rF   r   r  s       rI   r  zFrame.add_style_tag  s:     :   ....3T7.SS
 	
SrH  )
r  r  r;  rI  rJ  r   r  r  rH  r  r  r  r  r;  rI  rK  rJ  r  r  r  c       
            K   t        j                  | j                  j                  |t        j                  |      |||||||	|
|       d{         S 7 w)a  Frame.click

        This method clicks an element matching `selector` by performing the following steps:
        1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the matched element, unless `force` option is set. If
           the element is detached during the checks, the whole action is retried.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to click in the center of the element, or the specified `position`.
        1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        modifiers : Union[Sequence[Union["Alt", "Control", "ControlOrMeta", "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. "ControlOrMeta" resolves to
            "Control" on Windows and Linux and to "Meta" on macOS.
        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, None]
            Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0.
        button : Union["left", "middle", "right", None]
            Defaults to `left`.
        click_count : Union[int, None]
            defaults to 1. See [UIEvent.detail].
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        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`.
            Deprecated: This option will default to `true` in the future.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        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. Note that keyboard
            `modifiers` will be pressed regardless of `trial` to allow testing elements which are only visible when those keys
            are pressed.
        )r,  r  r  r;  rI  rQ  r   r  r  rH  r  Nr  )rH   r,  r  r  r;  rI  rJ  r   r  r  rH  r  s               rI   rU  zFrame.click  sg     H &&..&&!!//)4!&) '  
 	
r+  	r  r  r;  rI  r   r  r  rH  r  c       	            K   t        j                  | j                  j                  |t        j                  |      |||||||	|

       d{         S 7 w)a  Frame.dblclick

        This method double clicks an element matching `selector` by performing the following steps:
        1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the matched element, unless `force` option is set. If
           the element is detached during the checks, the whole action is retried.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to double click in the center of the element, or the specified `position`. if
           the first click of the `dblclick()` triggers a navigation event, this method will throw.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        **NOTE** `frame.dblclick()` dispatches two `click` events and a single `dblclick` event.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        modifiers : Union[Sequence[Union["Alt", "Control", "ControlOrMeta", "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. "ControlOrMeta" resolves to
            "Control" on Windows and Linux and to "Meta" on macOS.
        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, None]
            Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0.
        button : Union["left", "middle", "right", None]
            Defaults to `left`.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        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. Note that keyboard
            `modifiers` will be pressed regardless of `trial` to allow testing elements which are only visible when those keys
            are pressed.
        
r,  r  r  r;  rI  r   r  r  rH  r  Nr  rH   r,  r  r  r;  rI  r   r  r  rH  r  s              rI   rX  zFrame.dblclick  sd     B &&..))!!//)4!) *  
 	
   AAA	Ar  r  r   r  r  rH  r  c                   K   t        j                  | j                  j                  |t        j                  |      ||||||       d{         S 7 w)aP  Frame.tap

        This method taps an element matching `selector` by performing the following steps:
        1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the matched element, unless `force` option is set. If
           the element is detached during the checks, the whole action is retried.
        1. Scroll the element into view if needed.
        1. Use `page.touchscreen` to tap the center of the element, or the specified `position`.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        **NOTE** `frame.tap()` requires that the `hasTouch` option of the browser context be set to true.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        modifiers : Union[Sequence[Union["Alt", "Control", "ControlOrMeta", "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. "ControlOrMeta" resolves to
            "Control" on Windows and Linux and to "Meta" on macOS.
        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, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        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. Note that keyboard
            `modifiers` will be pressed regardless of `trial` to allow testing elements which are only visible when those keys
            are pressed.
        r,  r  r  r   r  r  rH  r  Nr  	rH   r,  r  r  r   r  r  rH  r  s	            rI   rb  z	Frame.tap\  ^     t &&..$$!!//)4!) % 	 	
 	
	r  r   r  rH  r  r  c          
         K   t        j                  | j                  j                  ||||||       d{         S 7 w)a$  Frame.fill

        This method waits for an element matching `selector`, waits for [actionability](https://playwright.dev/python/docs/actionability) checks,
        focuses the element, fills it and triggers an `input` event after filling. Note that you can pass an empty string
        to clear the input field.

        If the target element is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an
        error. However, if the element is inside the `<label>` element that has an associated
        [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be filled
        instead.

        To send fine-grained keyboard events, use `locator.press_sequentially()`.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        value : str
            Value to fill for the `<input>`, `<textarea>` or `[contenteditable]` element.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        r,  r  r   r  rH  r  Nr  rH   r,  r  r   r  rH  r  s          rI   r  z
Frame.fill  O     V &&..%%!) &  	
 		
r  has_texthas_not_texthashas_notr  r  r  r3   r  c          	          t        j                  | j                  j                  ||||r|j                  nd|r|j                              S d            S )aB
  Frame.locator

        The method returns an element locator that can be used to perform actions on this page / frame. Locator is resolved
        to the element immediately before performing an action, so a series of actions on the same locator can in fact be
        performed on different DOM elements. That would happen if the DOM structure between those actions has changed.

        [Learn more about locators](https://playwright.dev/python/docs/locators).

        [Learn more about locators](https://playwright.dev/python/docs/locators).

        Parameters
        ----------
        selector : str
            A selector to use when resolving DOM element.
        has_text : Union[Pattern[str], str, None]
            Matches elements containing specified text somewhere inside, possibly in a child or a descendant element. When
            passed a [string], matching is case-insensitive and searches for a substring. For example, `"Playwright"` matches
            `<article><div>Playwright</div></article>`.
        has_not_text : Union[Pattern[str], str, None]
            Matches elements that do not contain specified text somewhere inside, possibly in a child or a descendant element.
            When passed a [string], matching is case-insensitive and searches for a substring.
        has : Union[Locator, None]
            Narrows down the results of the method to those which contain elements matching this relative locator. For example,
            `article` that has `text=Playwright` matches `<article><div>Playwright</div></article>`.

            Inner locator **must be relative** to the outer locator and is queried starting with the outer locator match, not
            the document root. For example, you can find `content` that has `div` in
            `<article><content><div>Playwright</div></content></article>`. However, looking for `content` that has `article
            div` will fail, because the inner locator must be relative and should not use any elements outside the `content`.

            Note that outer and inner locators must belong to the same frame. Inner locator must not contain `FrameLocator`s.
        has_not : Union[Locator, None]
            Matches elements that do not contain an element that matches an inner locator. Inner locator is queried against the
            outer one. For example, `article` that does not have `div` matches `<article><span>Playwright</span></article>`.

            Note that outer and inner locators must belong to the same frame. Inner locator must not contain `FrameLocator`s.

        Returns
        -------
        Locator
        Nr,  hasText
hasNotTextr  hasNotr   rY   rE   locatorrH   r,  r  r  r  r  s         rI   r  zFrame.locator  sg    f   NN""! '%(CMMd,3w(( # 
 	
 :> # 
 	
rK   exactr   r  c                b    t        j                  | j                  j                  ||            S )a  Frame.get_by_alt_text

        Allows locating elements by their alt text.

        **Usage**

        For example, this method will find the image by alt text "Playwright logo":

        ```html
        <img alt='Playwright logo'>
        ```

        ```py
        await page.get_by_alt_text("Playwright logo").click()
        ```

        Parameters
        ----------
        text : Union[Pattern[str], str]
            Text to locate the element for.
        exact : Union[bool, None]
            Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        r   r  r   rY   rE   get_by_alt_textrH   r   r  s      rI   r  zFrame.get_by_alt_text  +    F   !?!?TQV!?!WXXrK   c                b    t        j                  | j                  j                  ||            S )a  Frame.get_by_label

        Allows locating input elements by the text of the associated `<label>` or `aria-labelledby` element, or by the
        `aria-label` attribute.

        **Usage**

        For example, this method will find inputs by label "Username" and "Password" in the following DOM:

        ```html
        <input aria-label="Username">
        <label for="password-input">Password:</label>
        <input id="password-input">
        ```

        ```py
        await page.get_by_label("Username").fill("john")
        await page.get_by_label("Password").fill("secret")
        ```

        Parameters
        ----------
        text : Union[Pattern[str], str]
            Text to locate the element for.
        exact : Union[bool, None]
            Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        r  r   rY   rE   get_by_labelr  s      rI   r  zFrame.get_by_label;  *    N   !<!<$e!<!TUUrK   c                b    t        j                  | j                  j                  ||            S )ac  Frame.get_by_placeholder

        Allows locating input elements by the placeholder text.

        **Usage**

        For example, consider the following DOM structure.

        ```html
        <input type="email" placeholder="name@example.com" />
        ```

        You can fill the input after locating it by the placeholder text:

        ```py
        await page.get_by_placeholder("name@example.com").fill("playwright@microsoft.com")
        ```

        Parameters
        ----------
        text : Union[Pattern[str], str]
            Text to locate the element for.
        exact : Union[bool, None]
            Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        r  r   rY   rE   get_by_placeholderr  s      rI   r  zFrame.get_by_placeholderd  /    J   NN--4u-E
 	
rK   	r  r  expandedinclude_hiddenlevelry   pressedselectedr  roleRalertalertdialogapplicationarticlebanner
blockquoterI  captioncellcheckboxr  columnheadercomboboxcomplementarycontentinfo
definitiondeletiondialog	directorydocumentemphasisfeedfigureformgenericgridgridcellgroupheadingimg	insertionlinklistlistboxlistitemlogmainmarqueemathmenumenubarmenuitemmenuitemcheckboxmenuitemradiometer
navigationnonenoteoption	paragraphpresentationprogressbarradio
radiogroupregionrowrowgroup	rowheader	scrollbarsearch	searchbox	separatorslider
spinbuttonr   strong	subscriptsuperscriptswitchtabtabletablisttabpaneltermtextboxtimetimertoolbartooltiptreetreegridtreeitemr  r  r  r  r  ry   r  r  c       	         r    t        j                  | j                  j                  |||||||||	|

            S )aQ  Frame.get_by_role

        Allows locating elements by their [ARIA role](https://www.w3.org/TR/wai-aria-1.2/#roles),
        [ARIA attributes](https://www.w3.org/TR/wai-aria-1.2/#aria-attributes) and
        [accessible name](https://w3c.github.io/accname/#dfn-accessible-name).

        **Usage**

        Consider the following DOM structure.

        ```html
        <h3>Sign up</h3>
        <label>
          <input type="checkbox" /> Subscribe
        </label>
        <br/>
        <button>Submit</button>
        ```

        You can locate each element by it's implicit role:

        ```py
        await expect(page.get_by_role("heading", name="Sign up")).to_be_visible()

        await page.get_by_role("checkbox", name="Subscribe").check()

        await page.get_by_role("button", name=re.compile("submit", re.IGNORECASE)).click()
        ```

        **Details**

        Role selector **does not replace** accessibility audits and conformance tests, but rather gives early feedback
        about the ARIA guidelines.

        Many html elements have an implicitly [defined role](https://w3c.github.io/html-aam/#html-element-role-mappings)
        that is recognized by the role selector. You can find all the
        [supported roles here](https://www.w3.org/TR/wai-aria-1.2/#role_definitions). ARIA guidelines **do not recommend**
        duplicating implicit roles and attributes by setting `role` and/or `aria-*` attributes to default values.

        Parameters
        ----------
        role : Union["alert", "alertdialog", "application", "article", "banner", "blockquote", "button", "caption", "cell", "checkbox", "code", "columnheader", "combobox", "complementary", "contentinfo", "definition", "deletion", "dialog", "directory", "document", "emphasis", "feed", "figure", "form", "generic", "grid", "gridcell", "group", "heading", "img", "insertion", "link", "list", "listbox", "listitem", "log", "main", "marquee", "math", "menu", "menubar", "menuitem", "menuitemcheckbox", "menuitemradio", "meter", "navigation", "none", "note", "option", "paragraph", "presentation", "progressbar", "radio", "radiogroup", "region", "row", "rowgroup", "rowheader", "scrollbar", "search", "searchbox", "separator", "slider", "spinbutton", "status", "strong", "subscript", "superscript", "switch", "tab", "table", "tablist", "tabpanel", "term", "textbox", "time", "timer", "toolbar", "tooltip", "tree", "treegrid", "treeitem"]
            Required aria role.
        checked : Union[bool, None]
            An attribute that is usually set by `aria-checked` or native `<input type=checkbox>` controls.

            Learn more about [`aria-checked`](https://www.w3.org/TR/wai-aria-1.2/#aria-checked).
        disabled : Union[bool, None]
            An attribute that is usually set by `aria-disabled` or `disabled`.

            **NOTE** Unlike most other attributes, `disabled` is inherited through the DOM hierarchy. Learn more about
            [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.2/#aria-disabled).

        expanded : Union[bool, None]
            An attribute that is usually set by `aria-expanded`.

            Learn more about [`aria-expanded`](https://www.w3.org/TR/wai-aria-1.2/#aria-expanded).
        include_hidden : Union[bool, None]
            Option that controls whether hidden elements are matched. By default, only non-hidden elements, as
            [defined by ARIA](https://www.w3.org/TR/wai-aria-1.2/#tree_exclusion), are matched by role selector.

            Learn more about [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.2/#aria-hidden).
        level : Union[int, None]
            A number attribute that is usually present for roles `heading`, `listitem`, `row`, `treeitem`, with default values
            for `<h1>-<h6>` elements.

            Learn more about [`aria-level`](https://www.w3.org/TR/wai-aria-1.2/#aria-level).
        name : Union[Pattern[str], str, None]
            Option to match the [accessible name](https://w3c.github.io/accname/#dfn-accessible-name). By default, matching is
            case-insensitive and searches for a substring, use `exact` to control this behavior.

            Learn more about [accessible name](https://w3c.github.io/accname/#dfn-accessible-name).
        pressed : Union[bool, None]
            An attribute that is usually set by `aria-pressed`.

            Learn more about [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.2/#aria-pressed).
        selected : Union[bool, None]
            An attribute that is usually set by `aria-selected`.

            Learn more about [`aria-selected`](https://www.w3.org/TR/wai-aria-1.2/#aria-selected).
        exact : Union[bool, None]
            Whether `name` is matched exactly: case-sensitive and whole-string. Defaults to false. Ignored when `name` is a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        
r  r  r  r  includeHiddenr  ry   r  r  r  r   rY   rE   get_by_rolerH   r  r  r  r  r  r  ry   r  r  r  s              rI   rG  zFrame.get_by_role  M    t   NN&&!!,! ' 
 	
rK   test_idc                 `    t        j                  | j                  j                  |            S )u  Frame.get_by_test_id

        Locate element by the test id.

        **Usage**

        Consider the following DOM structure.

        ```html
        <button data-testid="directions">Itinéraire</button>
        ```

        You can locate the element by it's test id:

        ```py
        await page.get_by_test_id("directions").click()
        ```

        **Details**

        By default, the `data-testid` attribute is used as a test id. Use `selectors.set_test_id_attribute()` to
        configure a different test id attribute if necessary.

        Parameters
        ----------
        test_id : Union[Pattern[str], str]
            Id to locate the element by.

        Returns
        -------
        Locator
        testIdr   rY   rE   get_by_test_idrH   rJ  s     rI   rO  zFrame.get_by_test_idV  (    H   !>!>g!>!NOOrK   c                b    t        j                  | j                  j                  ||            S )a  Frame.get_by_text

        Allows locating elements that contain given text.

        See also `locator.filter()` that allows to match by another criteria, like an accessible role, and then
        filter by the text content.

        **Usage**

        Consider the following DOM structure:

        ```html
        <div>Hello <span>world</span></div>
        <div>Hello</div>
        ```

        You can locate by text substring, exact string, or a regular expression:

        ```py
        # Matches <span>
        page.get_by_text("world")

        # Matches first <div>
        page.get_by_text("Hello world")

        # Matches second <div>
        page.get_by_text("Hello", exact=True)

        # Matches both <div>s
        page.get_by_text(re.compile("Hello"))

        # Matches second <div>
        page.get_by_text(re.compile("^hello$", re.IGNORECASE))
        ```

        **Details**

        Matching by text always normalizes whitespace, even with exact match. For example, it turns multiple spaces into
        one, turns line breaks into spaces and ignores leading and trailing whitespace.

        Input elements of the type `button` and `submit` are matched by their `value` instead of the text content. For
        example, locating by text `"Log in"` matches `<input type=button value="Log in">`.

        Parameters
        ----------
        text : Union[Pattern[str], str]
            Text to locate the element for.
        exact : Union[bool, None]
            Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        r  r   rY   rE   get_by_textr  s      rI   rT  zFrame.get_by_text|  *    |   !;!;U!;!STTrK   c                b    t        j                  | j                  j                  ||            S )a:  Frame.get_by_title

        Allows locating elements by their title attribute.

        **Usage**

        Consider the following DOM structure.

        ```html
        <span title='Issues count'>25 issues</span>
        ```

        You can check the issues count after locating it by the title text:

        ```py
        await expect(page.get_by_title("Issues count")).to_have_text("25 issues")
        ```

        Parameters
        ----------
        text : Union[Pattern[str], str]
            Text to locate the element for.
        exact : Union[bool, None]
            Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        r  r   rY   rE   get_by_titler  s      rI   rX  zFrame.get_by_title  *    J   !<!<$e!<!TUUrK   r2   c                 `    t        j                  | j                  j                  |            S )az  Frame.frame_locator

        When working with iframes, you can create a frame locator that will enter the iframe and allow selecting elements
        in that iframe.

        **Usage**

        Following snippet locates element with text "Submit" in the iframe with id `my-frame`, like `<iframe
        id="my-frame">`:

        ```py
        locator = frame.frame_locator("#my-iframe").get_by_text("Submit")
        await locator.click()
        ```

        Parameters
        ----------
        selector : str
            A selector to use when resolving DOM element.

        Returns
        -------
        FrameLocator
        r.  r   rY   rE   frame_locatorr1  s     rI   r\  zFrame.frame_locator  '    4   !=!=x!=!PQQrK   c                   K   t        j                  | j                  j                  |||       d{         S 7 w)a  Frame.focus

        This method fetches an element with `selector` and focuses it. If there's no element matching `selector`, the
        method waits until a matching element appears in the DOM.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        r  Nr  r  s       rI   r  zFrame.focus  C     2 &&..&&!&' '  
 	
rH  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)a5  Frame.text_content

        Returns `element.textContent`.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        Union[str, None]
        r  Nr  r  s       rI   r  zFrame.text_content  C     8 &&..--!&' .  
 	
rH  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)a$  Frame.inner_text

        Returns `element.innerText`.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        str
        r  Nr  r  s       rI   r  zFrame.inner_text@  r  rH  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)a$  Frame.inner_html

        Returns `element.innerHTML`.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        str
        r  Nr  r  s       rI   r  zFrame.inner_htmlb  r  rH  c                   K   t        j                  | j                  j                  ||||       d{         S 7 w)a|  Frame.get_attribute

        Returns element attribute value.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        name : str
            Attribute name to get the value for.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        Union[str, None]
        r,  ry   rH  r   Nr  rH   r,  ry   rH  r   s        rI   r  zFrame.get_attribute  E     > &&....!VW /  
 	
rY  r  r  r   r  r  rH  r  c                   K   t        j                  | j                  j                  |t        j                  |      ||||||       d{         S 7 w)a
  Frame.hover

        This method hovers over an element matching `selector` by performing the following steps:
        1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the matched element, unless `force` option is set. If
           the element is detached during the checks, the whole action is retried.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to hover over the center of the element, or the specified `position`.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        modifiers : Union[Sequence[Union["Alt", "Control", "ControlOrMeta", "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. "ControlOrMeta" resolves to
            "Control" on Windows and Linux and to "Meta" on macOS.
        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, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        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. Note that keyboard
            `modifiers` will be pressed regardless of `trial` to allow testing elements which are only visible when those keys
            are pressed.
        r,  r  r  r   r  r  rH  r  Nr  	rH   r,  r  r  r   r  r  rH  r  s	            rI   r  zFrame.hover  ^     p &&..&&!!//)4!) ' 	 	
 	
	r  )source_positiontarget_positionr  r  rH  r   r  sourcetargetrm  rn  c                   K   t        j                  | j                  j                  |||||||||		       d{         S 7 w)a  Frame.drag_and_drop

        Parameters
        ----------
        source : str
            A selector to search for an element to drag. If there are multiple elements satisfying the selector, the first will
            be used.
        target : str
            A selector to search for an element to drop onto. If there are multiple elements satisfying the selector, the first
            will be used.
        source_position : Union[{x: float, y: float}, None]
            Clicks on the source element at this point relative to the top-left corner of the element's padding box. If not
            specified, some visible point of the element is used.
        target_position : Union[{x: float, y: float}, None]
            Drops on the target element at this point relative to the top-left corner of the element's padding box. If not
            specified, some visible point of the element is used.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        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.
        )	ro  rp  sourcePositiontargetPositionr  r  rH  r   r  Nr   rD   rE   drag_and_drop)
rH   ro  rp  rm  rn  r  r  rH  r   r  s
             rI   ru  zFrame.drag_and_drop  sX     Z &&......) / 
 

 	

   7AA	A)r  r  r  r   r  rH  r  r  r  r  c                $  K   t        j                  | j                  j                  |t        j                  |      t        j                  |      t        j                  |      t        j                  |      ||||		       d{         S 7 w)a  Frame.select_option

        This method waits for an element matching `selector`, waits for [actionability](https://playwright.dev/python/docs/actionability) checks, waits
        until all specified options are present in the `<select>` element and selects these options.

        If the target element is not a `<select>` element, this method throws an error. However, if the element is inside
        the `<label>` element that has an associated
        [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be used
        instead.

        Returns the array of option values that have been successfully selected.

        Triggers a `change` and `input` event once all the provided options have been selected.

        **Usage**

        ```py
        # Single selection matching the value or label
        await frame.select_option("select#colors", "blue")
        # single selection matching the label
        await frame.select_option("select#colors", label="blue")
        # multiple selection
        await frame.select_option("select#colors", value=["red", "green", "blue"])
        ```

        Parameters
        ----------
        selector : str
            A selector to query for.
        value : Union[Sequence[str], str, None]
            Options to select by value. If the `<select>` has the `multiple` attribute, all given options are selected,
            otherwise only the first option matching one of the passed options is selected. Optional.
        index : Union[Sequence[int], int, None]
            Options to select by index. Optional.
        label : Union[Sequence[str], str, None]
            Options to select by label. If the `<select>` 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, Sequence[ElementHandle], None]
            Option elements to select. Optional.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.

        Returns
        -------
        List[str]
        )	r,  r  r  r  r  r   r  rH  r  Nr  )
rH   r,  r  r  r  r  r   r  rH  r  s
             rI   r  zFrame.select_option)  s|     N &&....!ooe,ooe,ooe,0) / 
 

 	

   BBB	Bc                   K   t        j                  | j                  j                  |||       d{         S 7 w)a_  Frame.input_value

        Returns `input.value` for the selected `<input>` or `<textarea>` or `<select>` element.

        Throws for non-input elements. However, if the element is inside the `<label>` element that has an associated
        [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), returns the value of the
        control.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        str
        r  Nr  r  s       rI   r  zFrame.input_value~  D     @ &&..,,!&' -  
 	
rH  )rH  r   r  r  c          	         K   t        j                  | j                  j                  |t        j                  |      |||       d{         S 7 w)aW  Frame.set_input_files

        Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then
        they are resolved relative to the current working directory. For empty array, clears the selected files.

        This method expects `selector` to point to an
        [input element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input). However, if the element is inside
        the `<label>` element that has an associated
        [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), targets the control instead.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        files : Union[Sequence[Union[pathlib.Path, str]], Sequence[{name: str, mimeType: str, buffer: bytes}], pathlib.Path, str, {name: str, mimeType: str, buffer: bytes}]
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        )r,  r  rH  r   r  Nr  )rH   r,  r  rH  r   r  s         rI   r  zFrame.set_input_files  sU     T &&..00!ooe,) 1  
 	
r  )r;  rH  r   r  c          
         K   t        j                  | j                  j                  ||||||       d{         S 7 w)aL  Frame.type

        Sends a `keydown`, `keypress`/`input`, and `keyup` event for each character in the text. `frame.type` can be used
        to send fine-grained keyboard events. To fill values in form fields, use `frame.fill()`.

        To press a special key, like `Control` or `ArrowDown`, use `keyboard.press()`.

        **Usage**

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        text : str
            A text to type into a focused element.
        delay : Union[float, None]
            Time to wait between key presses in milliseconds. Defaults to 0.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        )r,  r   r;  rH  r   r  Nr=  )rH   r,  r   r;  rH  r   r  s          rI   r>  z
Frame.type  sO     N &&..%%!) &  	
 		
r  r0  c          
         K   t        j                  | j                  j                  ||||||       d{         S 7 w)a
  Frame.press

        `key` can specify the intended
        [keyboardEvent.key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) value or a single character
        to generate the text for. A superset of the `key` values can be found
        [here](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values). Examples of the keys are:

        `F1` - `F12`, `Digit0`- `Digit9`, `KeyA`- `KeyZ`, `Backquote`, `Minus`, `Equal`, `Backslash`, `Backspace`, `Tab`,
        `Delete`, `Escape`, `ArrowDown`, `End`, `Enter`, `Home`, `Insert`, `PageDown`, `PageUp`, `ArrowRight`, `ArrowUp`,
        etc.

        Following modification shortcuts are also supported: `Shift`, `Control`, `Alt`, `Meta`, `ShiftLeft`,
        `ControlOrMeta`. `ControlOrMeta` resolves to `Control` on Windows and Linux and to `Meta` on macOS.

        Holding down `Shift` will type the text that corresponds to the `key` in the upper case.

        If `key` is a single character, it is case-sensitive, so the values `a` and `A` will generate different respective
        texts.

        Shortcuts such as `key: "Control+o"`, `key: "Control++` or `key: "Control+Shift+T"` are supported as well. When
        specified with the modifier, modifier is pressed and being held while the subsequent key is being pressed.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        key : str
            Name of the key to press or a character to generate, such as `ArrowLeft` or `a`.
        delay : Union[float, None]
            Time to wait between `keydown` and `keyup` in milliseconds. Defaults to 0.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        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`.
            Deprecated: This option will default to `true` in the future.
        )r,  r0  r;  rH  r   r  Nr@  )rH   r,  r0  r;  rH  r   r  s          rI   rA  zFrame.press
  sO     l &&..&&!) '  	
 		
r  r  r   r  r  rH  r  c                   K   t        j                  | j                  j                  |||||||       d{         S 7 w)a	  Frame.check

        This method checks an element matching `selector` by performing the following steps:
        1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
        1. Ensure that matched element is a checkbox or a radio input. If not, this method throws. If the element is
           already checked, this method returns immediately.
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the matched element, unless `force` option is set. If
           the element is detached during the checks, the whole action is retried.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to click in the center of the element.
        1. Ensure that the element is now checked. If not, this method throws.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        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, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        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.
        r,  r  r   r  r  rH  r  Nr  rH   r,  r  r   r  r  rH  r  s           rI   r  zFrame.checkK  R     d &&..&&!!) '  

 
	
   5AA 	Ac                   K   t        j                  | j                  j                  |||||||       d{         S 7 w)a	  Frame.uncheck

        This method checks an element matching `selector` by performing the following steps:
        1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
        1. Ensure that matched element is a checkbox or a radio input. If not, this method throws. If the element is
           already unchecked, this method returns immediately.
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the matched element, unless `force` option is set. If
           the element is detached during the checks, the whole action is retried.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to click in the center of the element.
        1. Ensure that the element is now unchecked. If not, this method throws.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        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, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        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.
        r  Nr
  r  s           rI   r  zFrame.uncheck  R     d &&..((!!) )  

 
	
r  c                 |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Frame.wait_for_timeout

        Waits for the given `timeout` in milliseconds.

        Note that `frame.waitForTimeout()` should only be used for debugging. Tests using the timer in production are going
        to be flaky. Use signals such as network events, selectors becoming visible and others instead.

        Parameters
        ----------
        timeout : float
            A timeout to wait for
        r  Nr   rD   rE   wait_for_timeoutr  s     rI   r  zFrame.wait_for_timeout  s6      &&..11'1BB
 	
Br   re  r   pollingr  rafc                   K   t        j                  | j                  j                  |t        j                  |      ||       d{         S 7 w)a,  Frame.wait_for_function

        Returns when the `expression` returns a truthy value, returns that value.

        **Usage**

        The `frame.wait_for_function()` can be used to observe viewport size change:

        ```py
        import asyncio
        from playwright.async_api import async_playwright, Playwright

        async def run(playwright: Playwright):
            webkit = playwright.webkit
            browser = await webkit.launch()
            page = await browser.new_page()
            await page.evaluate("window.x = 0; setTimeout(() => { window.x = 100 }, 1000);")
            await page.main_frame.wait_for_function("() => window.x > 0")
            await browser.close()

        async def main():
            async with async_playwright() as playwright:
                await run(playwright)
        asyncio.run(main())
        ```

        To pass an argument to the predicate of `frame.waitForFunction` function:

        ```py
        selector = ".foo"
        await frame.wait_for_function("selector => !!document.querySelector(selector)", selector)
        ```

        Parameters
        ----------
        expression : str
            JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the
            function is automatically invoked.
        arg : Union[Any, None]
            Optional argument to pass to `expression`.
        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()` or
            `page.set_default_timeout()` methods.
        polling : Union["raf", float, None]
            If `polling` is `'raf'`, then `expression` is constantly executed in `requestAnimationFrame` callback. If `polling`
            is a number, then it is treated as an interval in milliseconds at which the function would be executed. Defaults to
            `raf`.

        Returns
        -------
        JSHandle
        rd  re  r   r  Nr   rY   rE   wait_for_functionr   rH   rd  re  r   r  s        rI   r  zFrame.wait_for_function  R     |   ..22%OOC(	 3  
 	
r  c                 x   K   t        j                  | j                  j                          d{         S 7 w)zbFrame.title

        Returns the page title.

        Returns
        -------
        str
        Nr   rD   rE   titlerG   s    rI   r  zFrame.title   ,      &&T^^-A-A-C'CDD'Crk   c                   K   t        j                  | j                  j                  ||||||||       d{         S 7 w)a
  Frame.set_checked

        This method checks or unchecks an element matching `selector` by performing the following steps:
        1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
        1. Ensure that matched element is a checkbox or a radio input. If not, this method throws.
        1. If the element already has the right checked state, this method returns immediately.
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the matched element, unless `force` option is set. If
           the element is detached during the checks, the whole action is retried.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to click in the center of the element.
        1. Ensure that the element is now checked or unchecked. If not, this method throws.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        checked : bool
            Whether to check or uncheck the checkbox.
        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, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        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.
        r,  r  r  r   r  r  rH  r  Nr   	rH   r,  r  r  r   r  r  rH  r  s	            rI   r  zFrame.set_checked,  U     j &&..,,!!) - 	 	
 	
	   6AA	Ara  r   rb  )Sr   r   r   r   rY  r   ry   rF   r   r   ri  r   rk  r   r   rx  r   Patternr  r   r   r~  r  r  r  r   ri  rn  r0  r4  rN  r  r  r  r  r  r  r   r  r9  r=  r  r  r  r   r   r  r  rO  r   r   rU  rX  rb  r  r  r  r  r  rG  rO  rT  rX  r\  r  r  r  r  r  r  ru  r  r  r   r  r>  rA  r  r  r  r  r  r  r   rK   rI   r-   r-     sF   	6 	6 <c < <  	;S 	; 	; 	Gfoog6 	G 	G Cfkk'2 C C +/ (,>
>
 '	>

 OOGH
>
 %>
 
	$>
J  *.<
 __LLfnnS16??C5$;3OOP
<
 OOGH
<
 '<
 
"*	-<
H *.-
\\#v~~c2FOOSE4K4PPQ-
 OOGH
	-
 '-
 
-
f 	,
 +/,
=>
,
 ',
 
,
\G4 CG6
6
$*OOFJJ$?6
	6
r CG4
4
$*OOFJJ$?4
	4
n AE

(.(=
		)
:
 
_9U 
8 )-*. J
J
 %	J

 'J
 ?@
J
 
	)J
` )-*. 
 
 %	 

 ' 
 
 
L )-*. 
 
 %	 

 ' 
 
 
L )-*. 
 
 %	 

 ' 
 
 
L )-*. 
 
 %	 

 ' 
 
 
L )-*. 
 
 %	 

 ' 
 
 
L )-*. 
 
 %	 

 ' 
 
 
L 48	E
 )-*.E
E
 E
 OOFKK0	E
 %E
 'E
 
E
V ,0	3
 )-3
3
 3
 __VZZ(	3
 %3
 
3
l RV&
&
),&
39??6::3N&
	&
P
Gs 
G  +/ %
%
 '	%

 OOGH
%
 
%
N
ET 
E %)AE(,%)$
 __S!$
 oofll3+<=>	$

 %$
 ooc"$
 
$
R %)AE(,
 __S!
 oofll3+<=>	

 %
 

N .2(,FJ,0*.'+/3(,'+R
R
 ??OOG$VWX
	R
 //(+R
 u%R
 (A BCR
 __S)R
 'R
 t$R
 t,R
 %R
 t$R
  
!R
t .2(,FJ*.'+/3(,'+N
N
 ??OOG$VWX
	N
 //(+N
 u%N
 (A BCN
 'N
 t$N
 t,N
 %N
 t$N
 
N
l .2*.'+/3(,'+E
E
 ??OOG$VWX
	E
 //(+E
 'E
 t$E
 t,E
 %E
 t$E
 
E
X +//3(,'+4
4
 4

 '4
 t,4
 %4
 t$4
 
4
t MQPT*..2;
;
 //&,,sFNN34G/G"HI	;

 oofll3s8K3K&LM;
 __Y';
 +;
 
;
B (,	#Yll3s 334#Y t$	#Y
 
#YR (,	'Vll3s 334'V t$	'V
 
'VZ (,	'
ll3s 334'
 t$	'

 
'
@ *.*.*.04&*HL)-*.'+G
QS
G
n &oG
p //$'qG
r //$'sG
t -uG
v s#wG
x oofll3s0C+CDEyG
z &{G
| //$'}G
~ t$G
@ 
AG
R$P||C)<$<=$P	$PT (,	>Ull3s 334>U t$	>U
 
>UH (,	%Vll3s 334%V t$	%V
 
%VNRc Rn R@ )-*.

 %	

 '
 

F )-*. 
 
 %	 

 ' 
 
	 
L )-*. 
 
 %	 

 ' 
 
 
L )-*. 
 
 %	 

 ' 
 
 
N )-*.#
#
 #

 %#
 '#
 
	#
V .2*./3'+(,'+C
C
 ??OOG$VWX
	C
 //(+C
 'C
 t,C
 t$C
 %C
 t$C
 
C
T 6:59'+/3(,*.'+9
9
 9

  29
  29
 t$9
 t,9
 %9
 '9
 t$9
 
9
| KOS

 KOJN *./3(,'+S
S
 v||C1E,EFGS

 v||C1E,EFGS
 v||C1E,EFGS
 LL&///*JJK
S
 'S
 t,S
 %S
 t$S
 
S	S
r )-*.$
$
 %	$

 '$
 
$
b )-*./32
2
 ||LLOOFLLgll):;<OOK(	*
2
 %2
 '2
 t,2
 
2
r )-(,*./30
0
 0

 u%0
 %0
 '0
 t,0
 
0
n )-(,*./3?
?
 ?

 u%?
 %?
 '?
 t,?
 
?
J /3*.'+/3(,'+<
<
 //(+	<

 '<
 t$<
 t,<
 %<
 t$<
 
<
D /3*.'+/3(,'+<
<
 //(+	<

 '<
 t$<
 t,<
 %<
 t$<
 
<
|
e 
 
, ,0*.HLE
E
 __VZZ(	E

 'E
 eWU^.C!DEE
 
E
N
ES 
E" /3*.'+/3(,'+@
@
 @

 //(+@
 '@
 t$@
 t,@
 %@
 t$@
 
@
rK   r-   c                   Z   e Zd Zed(d       Zed(d       Zed)d       Zddddddej                  de	f   d	ej                  ej                  e	ej                  e	   f      d
ej                  ej                  e	ej                  e	   f      dej                  d   dej                  d   ddfdZdddej                  e	ej                  e	   f   dej                  e   ddfdZdddej                  e	ej                  e	   f   dej                  e   ddfdZdddej                  e	ej                  e	   f   dej                  e   ddfdZdddddddddd	ded   dej                  e   dej                  e   dej                  e   dej                  e   dej                  e   dej                  ej                  e	ej                  e	   f      dej                  e   dej                  e   dej                  e   ddfdZd ej                  e	ej                  e	   f   ddfd!Zdddej                  e	ej                  e	   f   dej                  e   ddfd"Zdddej                  e	ej                  e	   f   dej                  e   ddfd#Zd$e	dd fd%Zd&edd fd'Zy)*r2   rA   c                 T    t        j                  | j                  j                        S )zFrameLocator.first

        Returns locator to the first matching frame.

        Returns
        -------
        FrameLocator
        r   rY   rE   firstrG   s    rI   r  zFrameLocator.firstt  r   rK   c                 T    t        j                  | j                  j                        S )zFrameLocator.last

        Returns locator to the last matching frame.

        Returns
        -------
        FrameLocator
        r   rY   rE   lastrG   s    rI   r  zFrameLocator.last  rZ  rK   r3   c                 T    t        j                  | j                  j                        S )aW  FrameLocator.owner

        Returns a `Locator` object pointing to the same `iframe` as this frame locator.

        Useful when you have a `FrameLocator` object obtained somewhere, and later on would like to interact with the
        `iframe` element.

        For a reverse operation, use `locator.content_frame()`.

        **Usage**

        ```py
        frame_locator = page.locator("iframe[name=\"embedded\"]").content_frame
        # ...
        locator = frame_locator.owner
        await expect(locator).to_be_visible()
        ```

        Returns
        -------
        Locator
        )r   rY   rE   ownerrG   s    rI   r  zFrameLocator.owner  s    0   !5!566rK   Nr  selector_or_locatorr  r  r  r  c          	          t        j                  | j                  j                  ||||r|j                  nd|r|j                              S d            S )a[	  FrameLocator.locator

        The method finds an element matching the specified selector in the locator's subtree. It also accepts filter
        options, similar to `locator.filter()` method.

        [Learn more about locators](https://playwright.dev/python/docs/locators).

        Parameters
        ----------
        selector_or_locator : Union[Locator, str]
            A selector or locator to use when resolving DOM element.
        has_text : Union[Pattern[str], str, None]
            Matches elements containing specified text somewhere inside, possibly in a child or a descendant element. When
            passed a [string], matching is case-insensitive and searches for a substring. For example, `"Playwright"` matches
            `<article><div>Playwright</div></article>`.
        has_not_text : Union[Pattern[str], str, None]
            Matches elements that do not contain specified text somewhere inside, possibly in a child or a descendant element.
            When passed a [string], matching is case-insensitive and searches for a substring.
        has : Union[Locator, None]
            Narrows down the results of the method to those which contain elements matching this relative locator. For example,
            `article` that has `text=Playwright` matches `<article><div>Playwright</div></article>`.

            Inner locator **must be relative** to the outer locator and is queried starting with the outer locator match, not
            the document root. For example, you can find `content` that has `div` in
            `<article><content><div>Playwright</div></content></article>`. However, looking for `content` that has `article
            div` will fail, because the inner locator must be relative and should not use any elements outside the `content`.

            Note that outer and inner locators must belong to the same frame. Inner locator must not contain `FrameLocator`s.
        has_not : Union[Locator, None]
            Matches elements that do not contain an element that matches an inner locator. Inner locator is queried against the
            outer one. For example, `article` that does not have `div` matches `<article><span>Playwright</span></article>`.

            Note that outer and inner locators must belong to the same frame. Inner locator must not contain `FrameLocator`s.

        Returns
        -------
        Locator
        NselectorOrLocatorr  r  r  r  r  rH   r  r  r  r  r  s         rI   r  zFrameLocator.locator  g    `   NN"""5 '%(CMMd,3w(( # 
 	
 :> # 
 	
rK   r  r   r  c                b    t        j                  | j                  j                  ||            S )a  FrameLocator.get_by_alt_text

        Allows locating elements by their alt text.

        **Usage**

        For example, this method will find the image by alt text "Playwright logo":

        ```html
        <img alt='Playwright logo'>
        ```

        ```py
        await page.get_by_alt_text("Playwright logo").click()
        ```

        Parameters
        ----------
        text : Union[Pattern[str], str]
            Text to locate the element for.
        exact : Union[bool, None]
            Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        r  r  r  s      rI   r  zFrameLocator.get_by_alt_text  r  rK   c                b    t        j                  | j                  j                  ||            S )a  FrameLocator.get_by_label

        Allows locating input elements by the text of the associated `<label>` or `aria-labelledby` element, or by the
        `aria-label` attribute.

        **Usage**

        For example, this method will find inputs by label "Username" and "Password" in the following DOM:

        ```html
        <input aria-label="Username">
        <label for="password-input">Password:</label>
        <input id="password-input">
        ```

        ```py
        await page.get_by_label("Username").fill("john")
        await page.get_by_label("Password").fill("secret")
        ```

        Parameters
        ----------
        text : Union[Pattern[str], str]
            Text to locate the element for.
        exact : Union[bool, None]
            Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        r  r  r  s      rI   r  zFrameLocator.get_by_label  r  rK   c                b    t        j                  | j                  j                  ||            S )aj  FrameLocator.get_by_placeholder

        Allows locating input elements by the placeholder text.

        **Usage**

        For example, consider the following DOM structure.

        ```html
        <input type="email" placeholder="name@example.com" />
        ```

        You can fill the input after locating it by the placeholder text:

        ```py
        await page.get_by_placeholder("name@example.com").fill("playwright@microsoft.com")
        ```

        Parameters
        ----------
        text : Union[Pattern[str], str]
            Text to locate the element for.
        exact : Union[bool, None]
            Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        r  r  r  s      rI   r  zFrameLocator.get_by_placeholder.  r  rK   r  r  r  r  r  r  r  r  ry   r  r  c       	         r    t        j                  | j                  j                  |||||||||	|

            S )aX  FrameLocator.get_by_role

        Allows locating elements by their [ARIA role](https://www.w3.org/TR/wai-aria-1.2/#roles),
        [ARIA attributes](https://www.w3.org/TR/wai-aria-1.2/#aria-attributes) and
        [accessible name](https://w3c.github.io/accname/#dfn-accessible-name).

        **Usage**

        Consider the following DOM structure.

        ```html
        <h3>Sign up</h3>
        <label>
          <input type="checkbox" /> Subscribe
        </label>
        <br/>
        <button>Submit</button>
        ```

        You can locate each element by it's implicit role:

        ```py
        await expect(page.get_by_role("heading", name="Sign up")).to_be_visible()

        await page.get_by_role("checkbox", name="Subscribe").check()

        await page.get_by_role("button", name=re.compile("submit", re.IGNORECASE)).click()
        ```

        **Details**

        Role selector **does not replace** accessibility audits and conformance tests, but rather gives early feedback
        about the ARIA guidelines.

        Many html elements have an implicitly [defined role](https://w3c.github.io/html-aam/#html-element-role-mappings)
        that is recognized by the role selector. You can find all the
        [supported roles here](https://www.w3.org/TR/wai-aria-1.2/#role_definitions). ARIA guidelines **do not recommend**
        duplicating implicit roles and attributes by setting `role` and/or `aria-*` attributes to default values.

        Parameters
        ----------
        role : Union["alert", "alertdialog", "application", "article", "banner", "blockquote", "button", "caption", "cell", "checkbox", "code", "columnheader", "combobox", "complementary", "contentinfo", "definition", "deletion", "dialog", "directory", "document", "emphasis", "feed", "figure", "form", "generic", "grid", "gridcell", "group", "heading", "img", "insertion", "link", "list", "listbox", "listitem", "log", "main", "marquee", "math", "menu", "menubar", "menuitem", "menuitemcheckbox", "menuitemradio", "meter", "navigation", "none", "note", "option", "paragraph", "presentation", "progressbar", "radio", "radiogroup", "region", "row", "rowgroup", "rowheader", "scrollbar", "search", "searchbox", "separator", "slider", "spinbutton", "status", "strong", "subscript", "superscript", "switch", "tab", "table", "tablist", "tabpanel", "term", "textbox", "time", "timer", "toolbar", "tooltip", "tree", "treegrid", "treeitem"]
            Required aria role.
        checked : Union[bool, None]
            An attribute that is usually set by `aria-checked` or native `<input type=checkbox>` controls.

            Learn more about [`aria-checked`](https://www.w3.org/TR/wai-aria-1.2/#aria-checked).
        disabled : Union[bool, None]
            An attribute that is usually set by `aria-disabled` or `disabled`.

            **NOTE** Unlike most other attributes, `disabled` is inherited through the DOM hierarchy. Learn more about
            [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.2/#aria-disabled).

        expanded : Union[bool, None]
            An attribute that is usually set by `aria-expanded`.

            Learn more about [`aria-expanded`](https://www.w3.org/TR/wai-aria-1.2/#aria-expanded).
        include_hidden : Union[bool, None]
            Option that controls whether hidden elements are matched. By default, only non-hidden elements, as
            [defined by ARIA](https://www.w3.org/TR/wai-aria-1.2/#tree_exclusion), are matched by role selector.

            Learn more about [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.2/#aria-hidden).
        level : Union[int, None]
            A number attribute that is usually present for roles `heading`, `listitem`, `row`, `treeitem`, with default values
            for `<h1>-<h6>` elements.

            Learn more about [`aria-level`](https://www.w3.org/TR/wai-aria-1.2/#aria-level).
        name : Union[Pattern[str], str, None]
            Option to match the [accessible name](https://w3c.github.io/accname/#dfn-accessible-name). By default, matching is
            case-insensitive and searches for a substring, use `exact` to control this behavior.

            Learn more about [accessible name](https://w3c.github.io/accname/#dfn-accessible-name).
        pressed : Union[bool, None]
            An attribute that is usually set by `aria-pressed`.

            Learn more about [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.2/#aria-pressed).
        selected : Union[bool, None]
            An attribute that is usually set by `aria-selected`.

            Learn more about [`aria-selected`](https://www.w3.org/TR/wai-aria-1.2/#aria-selected).
        exact : Union[bool, None]
            Whether `name` is matched exactly: case-sensitive and whole-string. Defaults to false. Ignored when `name` is a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        rD  rF  rH  s              rI   rG  zFrameLocator.get_by_roleW  rI  rK   rJ  c                 `    t        j                  | j                  j                  |            S )u  FrameLocator.get_by_test_id

        Locate element by the test id.

        **Usage**

        Consider the following DOM structure.

        ```html
        <button data-testid="directions">Itinéraire</button>
        ```

        You can locate the element by it's test id:

        ```py
        await page.get_by_test_id("directions").click()
        ```

        **Details**

        By default, the `data-testid` attribute is used as a test id. Use `selectors.set_test_id_attribute()` to
        configure a different test id attribute if necessary.

        Parameters
        ----------
        test_id : Union[Pattern[str], str]
            Id to locate the element by.

        Returns
        -------
        Locator
        rL  rN  rP  s     rI   rO  zFrameLocator.get_by_test_id   rQ  rK   c                b    t        j                  | j                  j                  ||            S )a  FrameLocator.get_by_text

        Allows locating elements that contain given text.

        See also `locator.filter()` that allows to match by another criteria, like an accessible role, and then
        filter by the text content.

        **Usage**

        Consider the following DOM structure:

        ```html
        <div>Hello <span>world</span></div>
        <div>Hello</div>
        ```

        You can locate by text substring, exact string, or a regular expression:

        ```py
        # Matches <span>
        page.get_by_text("world")

        # Matches first <div>
        page.get_by_text("Hello world")

        # Matches second <div>
        page.get_by_text("Hello", exact=True)

        # Matches both <div>s
        page.get_by_text(re.compile("Hello"))

        # Matches second <div>
        page.get_by_text(re.compile("^hello$", re.IGNORECASE))
        ```

        **Details**

        Matching by text always normalizes whitespace, even with exact match. For example, it turns multiple spaces into
        one, turns line breaks into spaces and ignores leading and trailing whitespace.

        Input elements of the type `button` and `submit` are matched by their `value` instead of the text content. For
        example, locating by text `"Log in"` matches `<input type=button value="Log in">`.

        Parameters
        ----------
        text : Union[Pattern[str], str]
            Text to locate the element for.
        exact : Union[bool, None]
            Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        r  rS  r  s      rI   rT  zFrameLocator.get_by_textF  rU  rK   c                b    t        j                  | j                  j                  ||            S )aA  FrameLocator.get_by_title

        Allows locating elements by their title attribute.

        **Usage**

        Consider the following DOM structure.

        ```html
        <span title='Issues count'>25 issues</span>
        ```

        You can check the issues count after locating it by the title text:

        ```py
        await expect(page.get_by_title("Issues count")).to_have_text("25 issues")
        ```

        Parameters
        ----------
        text : Union[Pattern[str], str]
            Text to locate the element for.
        exact : Union[bool, None]
            Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        r  rW  r  s      rI   rX  zFrameLocator.get_by_title  rY  rK   r,  c                 `    t        j                  | j                  j                  |            S )ad  FrameLocator.frame_locator

        When working with iframes, you can create a frame locator that will enter the iframe and allow selecting elements
        in that iframe.

        Parameters
        ----------
        selector : str
            A selector to use when resolving DOM element.

        Returns
        -------
        FrameLocator
        r.  r[  r1  s     rI   r\  zFrameLocator.frame_locator  s'        !=!=x!=!PQQrK   r  c                 `    t        j                  | j                  j                  |            S )zFrameLocator.nth

        Returns locator to the n-th matching frame. It's zero based, `nth(0)` selects the first frame.

        Parameters
        ----------
        index : int

        Returns
        -------
        FrameLocator
        r  r   rY   rE   nthrH   r  s     rI   r  zFrameLocator.nth  s'       !3!3%!3!@AArK   rA   r2   rA   r3   )r   r   r   r   r  r  r  r   r   r   r   r  r  r   r  r  r  r   r   rG  rO  rT  rX  r\  r  r   rK   rI   r2   r2   r  s   	7 	7 	6 	6 7 7: MQPT*..28
#\\)S.98
 //&,,sFNN34G/G"HI	8

 oofll3s8K3K&LM8
 __Y'8
 +8
 
8
| (,	#Yll3s 334#Y t$	#Y
 
#YR (,	'Vll3s 334'V t$	'V
 
'VZ (,	'
ll3s 334'
 t$	'

 
'
@ *.*.*.04&*HL)-*.'+G
QS
G
n &oG
p //$'qG
r //$'sG
t -uG
v s#wG
x oofll3s0C+CDEyG
z &{G
| //$'}G
~ t$G
@ 
AG
R$P||C)<$<=$P	$PT (,	>Ull3s 334>U t$	>U
 
>UH (,	%Vll3s 334%V t$	%V
 
%VNRc Rn R$B B BrK   r2   c                   F    e Zd Zded   dej
                  d gdf   ddf fdZded   dej
                  d gdf   ddf fdZede	fd	       Z
	 dd
e	dej                  ej                     dej                  fdZ	 dd
e	dej                  ej                     ddfdZ xZS )r:   r   r   r   r   rA   Nc                 &    t         |   ||      S z
        Emitted when this dedicated [WebWorker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) is
        terminated.r   r   r   s      rI   r   z	Worker.on  s     wzz++rK   c                 &    t         |   ||      S r  r  r   s      rI   r   zWorker.once  s     w|%1|--rK   c                 T    t        j                  | j                  j                        S )z@Worker.url

        Returns
        -------
        str
        rC   rG   s    rI   rF   z
Worker.url       &&t~~'9'9::rK   rd  re  c                    K   t        j                  | j                  j                  |t        j                  |             d{         S 7 w)a  Worker.evaluate

        Returns the return value of `expression`.

        If the function passed to the `worker.evaluate()` returns a [Promise], then `worker.evaluate()`
        would wait for the promise to resolve and return its value.

        If the function passed to the `worker.evaluate()` returns a non-[Serializable] value, then
        `worker.evaluate()` returns `undefined`. Playwright also supports transferring some additional values that
        are not serializable by `JSON`: `-0`, `NaN`, `Infinity`, `-Infinity`.

        Parameters
        ----------
        expression : str
            JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the
            function is automatically invoked.
        arg : Union[Any, None]
            Optional argument to pass to `expression`.

        Returns
        -------
        Any
        rg  Nrh  rj  s      rI   ri  zWorker.evaluate  sJ     6 &&..))%7??3+? *  
 	
rk  r1   c                    K   t        j                  | j                  j                  |t        j                  |             d{         S 7 w)a$  Worker.evaluate_handle

        Returns the return value of `expression` as a `JSHandle`.

        The only difference between `worker.evaluate()` and `worker.evaluate_handle()` is that
        `worker.evaluate_handle()` returns `JSHandle`.

        If the function passed to the `worker.evaluate_handle()` returns a [Promise], then
        `worker.evaluate_handle()` would wait for the promise to resolve and return its value.

        Parameters
        ----------
        expression : str
            JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the
            function is automatically invoked.
        arg : Union[Any, None]
            Optional argument to pass to `expression`.

        Returns
        -------
        JSHandle
        rg  Nrm  rj  s      rI   rn  zWorker.evaluate_handle  sJ     4   ..00%7??3+? 1  
 	
rk  r   )r   r   r   r   r   r  r   r   r   r   rF   r   r   ri  rn  r  r  s   @rI   r:   r:     s    ,w, ??H:'SST, 
	,.w. ??H:'SST. 
	. ;S ; ; CG

$*OOFJJ$?
	
D CG

$*OOFJJ$?
	
rK   r:   c                       e Zd Z	 dddddedej
                  e   dej
                  ej                  eej                  f      dej
                  e	   ddf
dZ
d	eddfd
Zy)r<   N)r   content_scriptry   scriptr   r  rA   c                   K   t        j                  | j                  j                  ||||       d{         S 7 w)ar
  Selectors.register

        Selectors must be registered before creating the page.

        **Usage**

        An example of registering selector engine that queries elements based on a tag name:

        ```py
        import asyncio
        from playwright.async_api import async_playwright, Playwright

        async def run(playwright: Playwright):
            tag_selector = """
              {
                  // Returns the first element matching given selector in the root's subtree.
                  query(root, selector) {
                      return root.querySelector(selector);
                  },
                  // Returns all elements matching given selector in the root's subtree.
                  queryAll(root, selector) {
                      return Array.from(root.querySelectorAll(selector));
                  }
              }"""

            # Register the engine. Selectors will be prefixed with "tag=".
            await playwright.selectors.register("tag", tag_selector)
            browser = await playwright.chromium.launch()
            page = await browser.new_page()
            await page.set_content('<div><button>Click me</button></div>')

            # Use the selector prefixed with its name.
            button = await page.query_selector('tag=button')
            # Combine it with built-in locators.
            await page.locator('tag=div').get_by_text('Click me').click()
            # Can use it in any methods supporting selectors.
            button_count = await page.locator('tag=button').count()
            print(button_count)
            await browser.close()

        async def main():
            async with async_playwright() as playwright:
                await run(playwright)

        asyncio.run(main())
        ```

        Parameters
        ----------
        name : str
            Name that is used in selectors as a prefix, e.g. `{name: 'foo'}` enables `foo=myselectorbody` selectors. May only
            contain `[a-zA-Z0-9_]` characters.
        script : Union[str, None]
            Raw script content.
        path : Union[pathlib.Path, str, None]
            Path to the JavaScript file. If `path` is a relative path, then it is resolved relative to the current working
            directory.
        content_script : Union[bool, None]
            Whether to run this selector engine in isolated JavaScript environment. This environment has access to the same
            DOM, but not any JavaScript objects from the frame's scripts. Defaults to `false`. Note that running as a content
            script is not guaranteed when this engine is used together with other registered engines.
        )ry   r  r   contentScriptN)r   rD   rE   register)rH   ry   r  r   r  s        rI   r  zSelectors.register:  sF     N &&..))&t> *  
 	
rY  attribute_namec                 `    t        j                  | j                  j                  |            S )a   Selectors.set_test_id_attribute

        Defines custom attribute name to be used in `page.get_by_test_id()`. `data-testid` is used by default.

        Parameters
        ----------
        attribute_name : str
            Test id attribute name.
        )attributeName)r   rD   rE   set_test_id_attribute)rH   r  s     rI   r  zSelectors.set_test_id_attribute  s,     &&NN00~0N
 	
rK   r   )r   r   r   r   r   r   r   r   r   r   r  r  r   rK   rI   r<   r<   8  s    
 (,K

 BF04K
K
 $K

 oofll3+<=>K
 -K
 
K
Z
C 
D 
rK   r<   c                      e Zd Zdddej                  ej
                  eeej                  f      ddfdZ	dej
                  e
ef   ddfdZdej
                  eeej                  f   ddfdZdd	Zdej
                  e
ef   ddfd
Zdej
                  eeej                  f   ddfdZdej
                  eeej                  f   ddfdZy)r#   Nr<  r<  rA   c                |   K   t        j                  | j                  j                  |       d{         S 7 w)a   Clock.install

        Install fake implementations for the following time-related functions:
        - `Date`
        - `setTimeout`
        - `clearTimeout`
        - `setInterval`
        - `clearInterval`
        - `requestAnimationFrame`
        - `cancelAnimationFrame`
        - `requestIdleCallback`
        - `cancelIdleCallback`
        - `performance`

        Fake timers are used to manually control the flow of time in tests. They allow you to advance time, fire timers,
        and control the behavior of time-dependent functions. See `clock.run_for()` and
        `clock.fast_forward()` for more information.

        Parameters
        ----------
        time : Union[datetime.datetime, float, str, None]
            Time to initialize with, current system time by default.
        r  N)r   rD   rE   installrH   r<  s     rI   r  zClock.install  s1     : &&T^^-C-C-C-N'NOO'Nr   ticksc                 |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Clock.fast_forward

        Advance the clock by jumping forward in time. Only fires due timers at most once. This is equivalent to user
        closing the laptop lid for a while and reopening it later, after given time.

        **Usage**

        ```py
        await page.clock.fast_forward(1000)
        await page.clock.fast_forward("30:00")
        ```

        Parameters
        ----------
        ticks : Union[int, str]
            Time may be the number of milliseconds to advance the clock by or a human-readable string. Valid string formats are
            "08" for eight seconds, "01:00" for one minute and "02:34:10" for two hours, 34 minutes and ten seconds.
        r  N)r   rD   rE   fast_forwardrH   r  s     rI   r  zClock.fast_forward  s1     ( &&T^^-H-Hu-H-U'UVV'Ur   c                 |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Clock.pause_at

        Advance the clock by jumping forward in time and pause the time. Once this method is called, no timers are fired
        unless `clock.run_for()`, `clock.fast_forward()`, `clock.pause_at()` or
        `clock.resume()` is called.

        Only fires due timers at most once. This is equivalent to user closing the laptop lid for a while and reopening it
        at the specified time and pausing.

        **Usage**

        ```py
        await page.clock.pause_at(datetime.datetime(2020, 2, 2))
        await page.clock.pause_at("2020-02-02")
        ```

        For best results, install the clock before navigating the page and set it to a time slightly before the intended
        test time. This ensures that all timers run normally during page loading, preventing the page from getting stuck.
        Once the page has fully loaded, you can safely use `clock.pause_at()` to pause the clock.

        ```py
        # Initialize clock with some time before the test time and let the page load
        # naturally. `Date.now` will progress as the timers fire.
        await page.clock.install(time=datetime.datetime(2024, 12, 10, 8, 0, 0))
        await page.goto("http://localhost:3333")
        await page.clock.pause_at(datetime.datetime(2024, 12, 10, 10, 0, 0))
        ```

        Parameters
        ----------
        time : Union[datetime.datetime, float, str]
            Time to pause at.
        r  N)r   rD   rE   pause_atr  s     rI   r  zClock.pause_at  s2     F &&T^^-D-D$-D-O'OPP'Or   c                 x   K   t        j                  | j                  j                          d{         S 7 w)z{Clock.resume

        Resumes timers. Once this method is called, time resumes flowing, timers are fired as usual.
        N)r   rD   rE   resumerG   s    rI   r  zClock.resume  ,      &&T^^-B-B-D'DEE'Drk   c                 |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Clock.run_for

        Advance the clock, firing all the time-related callbacks.

        **Usage**

        ```py
        await page.clock.run_for(1000);
        await page.clock.run_for("30:00")
        ```

        Parameters
        ----------
        ticks : Union[int, str]
            Time may be the number of milliseconds to advance the clock by or a human-readable string. Valid string formats are
            "08" for eight seconds, "01:00" for one minute and "02:34:10" for two hours, 34 minutes and ten seconds.
        r  N)r   rD   rE   run_forr  s     rI   r  zClock.run_for  s1     & &&T^^-C-C%-C-P'PQQ'Pr   c                 |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Clock.set_fixed_time

        Makes `Date.now` and `new Date()` return fixed fake time at all times, keeps all the timers running.

        Use this method for simple scenarios where you only need to test with a predefined time. For more advanced
        scenarios, use `clock.install()` instead. Read docs on [clock emulation](https://playwright.dev/python/docs/clock) to learn more.

        **Usage**

        ```py
        await page.clock.set_fixed_time(datetime.datetime.now())
        await page.clock.set_fixed_time(datetime.datetime(2020, 2, 2))
        await page.clock.set_fixed_time("2020-02-02")
        ```

        Parameters
        ----------
        time : Union[datetime.datetime, float, str]
            Time to be set.
        r  N)r   rD   rE   set_fixed_timer  s     rI   r  zClock.set_fixed_time  s2     0 &&T^^-J-JPT-J-U'UVV'Ur   c                 |   K   t        j                  | j                  j                  |       d{         S 7 w)aL  Clock.set_system_time

        Sets system time, but does not trigger any timers. Use this to test how the web page reacts to a time shift, for
        example switching from summer to winter time, or changing time zones.

        **Usage**

        ```py
        await page.clock.set_system_time(datetime.datetime.now())
        await page.clock.set_system_time(datetime.datetime(2020, 2, 2))
        await page.clock.set_system_time("2020-02-02")
        ```

        Parameters
        ----------
        time : Union[datetime.datetime, float, str]
            Time to be set.
        r  N)r   rD   rE   set_system_timer  s     rI   r  zClock.set_system_time-  s2     , &&T^^-K-KQU-K-V'VWW'Vr   r   )r   r   r   r   r   r   r   r   datetimer  r   r  r  r  r  r  r  r   rK   rI   r#   r#     s   
 NRP oofll5#x7H7H+HIJP 
	P>WS#X(> W4 W,#Q6<<sH<M<M0M#N #QSW #QJFR6<<S#9 Rd R*WLLX->->!>?W	W4XLLX->->!>?X	XrK   r#   c                       e Zd Zedefd       Zedefd       Zedej                  d   fd       Z	ede
fd       Zedej                  d   fd       Zy	)
r$   rA   c                 T    t        j                  | j                  j                        S )ac  ConsoleMessage.type

        One of the following values: `'log'`, `'debug'`, `'info'`, `'error'`, `'warning'`, `'dir'`, `'dirxml'`, `'table'`,
        `'trace'`, `'clear'`, `'startGroup'`, `'startGroupCollapsed'`, `'endGroup'`, `'assert'`, `'profile'`,
        `'profileEnd'`, `'count'`, `'timeEnd'`.

        Returns
        -------
        str
        r=  rG   s    rI   r>  zConsoleMessage.typeK  s     &&t~~':':;;rK   c                 T    t        j                  | j                  j                        S )zsConsoleMessage.text

        The text of the console message.

        Returns
        -------
        str
        r   rG   s    rI   r   zConsoleMessage.textY       &&t~~':':;;rK   r1   c                 T    t        j                  | j                  j                        S )zConsoleMessage.args

        List of arguments passed to a `console` function call. See also `page.on('console')`.

        Returns
        -------
        List[JSHandle]
        )r   rv   rE   argsrG   s    rI   r  zConsoleMessage.argse  s     %%dnn&9&9::rK   c                 T    t        j                  | j                  j                        S )zxConsoleMessage.location

        Returns
        -------
        {url: str, lineNumber: int, columnNumber: int}
        )r   rY   rE   locationrG   s    rI   r  zConsoleMessage.locationq         !8!899rK   r9   c                 T    t        j                  | j                  j                        S )zConsoleMessage.page

        The page that produced this console message, if any.

        Returns
        -------
        Union[Page, None]
        r   r\   rE   rY  rG   s    rI   rY  zConsoleMessage.page{       ))$..*=*=>>rK   N)r   r   r   r   r   r>  r   r   r   r  r   r  r   rY  r   rK   rI   r$   r$   I  s    <c < < 	<c 	< 	< 	;fkk*- 	; 	; :. : : 	?foof- 	? 	?rK   r$   c                       e Zd Zedefd       Zedefd       Zedefd       Zedej                  d   fd       Z
ddej                  e   ddfd	Zdd
Zy)r%   rA   c                 T    t        j                  | j                  j                        S )zDialog.type

        Returns dialog's type, can be one of `alert`, `beforeunload`, `confirm` or `prompt`.

        Returns
        -------
        str
        r=  rG   s    rI   r>  zDialog.type  r  rK   c                 T    t        j                  | j                  j                        S )zpDialog.message

        A message displayed in the dialog.

        Returns
        -------
        str
        )r   rD   rE   r%  rG   s    rI   r%  zDialog.message       &&t~~'='=>>rK   c                 T    t        j                  | j                  j                        S )zDialog.default_value

        If dialog is prompt, returns default prompt value. Otherwise, returns empty string.

        Returns
        -------
        str
        )r   rD   rE   default_valuerG   s    rI   r  zDialog.default_value  s     &&t~~'C'CDDrK   r9   c                 T    t        j                  | j                  j                        S )zDialog.page

        The page that initiated this dialog, if available.

        Returns
        -------
        Union[Page, None]
        r  rG   s    rI   rY  zDialog.page  r  rK   Nprompt_textc                 |   K   t        j                  | j                  j                  |       d{         S 7 w)a
  Dialog.accept

        Returns when the dialog has been accepted.

        Parameters
        ----------
        prompt_text : Union[str, None]
            A text to enter in prompt. Does not cause any effects if the dialog's `type` is not prompt. Optional.
        )
promptTextN)r   rD   rE   accept)rH   r  s     rI   r  zDialog.accept  s6      &&..'';'??
 	
?r   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zLDialog.dismiss

        Returns when the dialog has been dismissed.
        N)r   rD   rE   dismissrG   s    rI   r  zDialog.dismiss  r}  rk   r   r   )r   r   r   r   r   r>  r%  r  r   r   rY  r  r  r   rK   rI   r%   r%     s    	<c 	< 	< 	? 	? 	? 	Es 	E 	E 	?foof- 	? 	?
(< 
 
GrK   r%   c                       e Zd Zedd       Zedefd       Zedefd       ZddZde	j                  e   fdZdej                  fdZd	e	j                  eej                  f   ddfd
ZddZy)r&   rA   c                 T    t        j                  | j                  j                        S )zxDownload.page

        Get the page that the download belongs to.

        Returns
        -------
        Page
        rX  rG   s    rI   rY  zDownload.page  rZ  rK   c                 T    t        j                  | j                  j                        S )zcDownload.url

        Returns downloaded url.

        Returns
        -------
        str
        rC   rG   s    rI   rF   zDownload.url  rJ   rK   c                 T    t        j                  | j                  j                        S )a  Download.suggested_filename

        Returns suggested filename for this download. It is typically computed by the browser from the
        [`Content-Disposition`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition) response
        header or the `download` attribute. See the spec on [whatwg](https://html.spec.whatwg.org/#downloading-resources).
        Different browsers can use different logic for computing it.

        Returns
        -------
        str
        )r   rD   rE   suggested_filenamerG   s    rI   r  zDownload.suggested_filename  s     &&t~~'H'HIIrK   Nc                 x   K   t        j                  | j                  j                          d{         S 7 w)zqDownload.delete

        Deletes the downloaded file. Will wait for the download to finish if necessary.
        Nr   rD   rE   deleterG   s    rI   r  zDownload.delete  r  rk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zDownload.failure

        Returns download error if any. Will wait for the download to finish if necessary.

        Returns
        -------
        Union[str, None]
        Nra   rG   s    rI   rb   zDownload.failure	  r  rk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)a  Download.path

        Returns path to the downloaded file for a successful download, or throws for a failed/canceled download. The method
        will wait for the download to finish if necessary. The method throws when connected remotely.

        Note that the download's file name is a random GUID, use `download.suggested_filename()` to get suggested
        file name.

        Returns
        -------
        pathlib.Path
        Nr   rD   rE   r   rG   s    rI   r   zDownload.path  s,      &&T^^-@-@-B'BCC'Brk   r   c                 |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Download.save_as

        Copy the download to a user-specified path. It is safe to call this method while the download is still in progress.
        Will wait for the download to finish if necessary.

        **Usage**

        ```py
        await download.save_as("/path/to/save/at/" + download.suggested_filename)
        ```

        Parameters
        ----------
        path : Union[pathlib.Path, str]
            Path where the download should be copied.
        r   Nr   rD   rE   save_asrH   r   s     rI   r	  zDownload.save_as%  s1     $ &&T^^-C-C-C-N'NOO'Nr   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zDownload.cancel

        Cancels a download. Will not fail if the download is already finished or canceled. Upon successful cancellations,
        `download.failure()` would resolve to `'canceled'`.
        N)r   rD   rE   cancelrG   s    rI   r  zDownload.cancel9  ,      &&T^^-B-B-D'DEE'Drk   ra  r   )r   r   r   r   rY  r   rF   r  r  r   r   rb   r   r   r   r   r	  r  r   rK   rI   r&   r&     s    	6 	6 	;S 	; 	; JC J JF
Gvs3 
GDGLL D P&,,sGLL/@"A Pd P(FrK   r&   c                   v    e Zd Zdej                  fdZdej                  eej                  f   ddfdZ	ddZ
y)r>   rA   c                 x   K   t        j                  | j                  j                          d{         S 7 w)a  Video.path

        Returns the file system path this video will be recorded to. The video is guaranteed to be written to the
        filesystem upon closing the browser context. This method throws when connected remotely.

        Returns
        -------
        pathlib.Path
        Nr  rG   s    rI   r   z
Video.pathH  s,      &&T^^-@-@-B'BCC'Brk   r   Nc                 |   K   t        j                  | j                  j                  |       d{         S 7 w)a~  Video.save_as

        Saves the video to a user-specified path. It is safe to call this method while the video is still in progress, or
        after the page has closed. This method waits until the page is closed and the video is fully saved.

        Parameters
        ----------
        path : Union[pathlib.Path, str]
            Path where the video should be saved.
        r  Nr  r
  s     rI   r	  zVideo.save_asU  s1      &&T^^-C-C-C-N'NOO'Nr   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zfVideo.delete

        Deletes the video file. Will wait for the video to finish if necessary.
        Nr  rG   s    rI   r  zVideo.deletec  r  rk   r   )r   r   r   r   r   r   r   r   r   r	  r  r   rK   rI   r>   r>   F  sB    DGLL DP&,,sGLL/@"A Pd PFrK   r>   c            !       tB    e Zd Zej                  ded   dej                  d gdf   ddfd       Zej                  ded   dej                  d	gdf   ddfd
       Zej                  ded   dej                  d gdf   ddfd       Zej                  ded   dej                  dgdf   ddfd       Zej                  ded   dej                  d gdf   ddfd       Zej                  ded   dej                  dgdf   ddfd       Zej                  ded   dej                  dgdf   ddfd       Zej                  ded   dej                  dgdf   ddfd       Zej                  ded   dej                  dgdf   ddfd       Zej                  ded   dej                  dgdf   ddfd       Zej                  ded   dej                  d gdf   ddfd        Zej                  ded!   dej                  d"gdf   ddfd#       Zej                  ded$   dej                  d gdf   ddfd%       Zej                  ded&   dej                  d'gdf   ddfd(       Zej                  ded)   dej                  d'gdf   ddfd*       Zej                  ded+   dej                  d'gdf   ddfd,       Zej                  ded-   dej                  d.gdf   ddfd/       Zej                  ded0   dej                  d1gdf   ddfd2       Zej                  ded3   dej                  d4gdf   ddfd5       Zdedej                  d6ej                  ej                  d   df   f   ddf fd7Zej                  ded   dej                  d gdf   ddfd8       Zej                  ded   dej                  d	gdf   ddfd9       Zej                  ded   dej                  d gdf   ddfd:       Zej                  ded   dej                  dgdf   ddfd;       Zej                  ded   dej                  d gdf   ddfd<       Zej                  ded   dej                  dgdf   ddfd=       Zej                  ded   dej                  dgdf   ddfd>       Zej                  ded   dej                  dgdf   ddfd?       Zej                  ded   dej                  dgdf   ddfd@       Zej                  ded   dej                  dgdf   ddfdA       Zej                  ded   dej                  d gdf   ddfdB       Zej                  ded!   dej                  d"gdf   ddfdC       Zej                  ded$   dej                  d gdf   ddfdD       Zej                  ded&   dej                  d'gdf   ddfdE       Zej                  ded)   dej                  d'gdf   ddfdF       Zej                  ded+   dej                  d'gdf   ddfdG       Zej                  ded-   dej                  d.gdf   ddfdH       Zej                  ded0   dej                  d1gdf   ddfdI       Zej                  ded3   dej                  d4gdf   ddfdJ       Zdedej                  d6ej                  ej                  d   df   f   ddf fdKZedPdL       ZedQdM       ZedRdN       ZedSdO       ZedTdP       ZedUdQ       ZedVdR       Zedej(                  d   fdS       ZedefdT       Zedej.                  e   fdU       Zedej(                  d4   fdV       ZedWdW       Zedej.                  dX   fdY       Zdej.                  d    fdZZ	 dXdd[d\ej.                  e   d]ej.                  ej                  eej<                  e   ej                  egef   f      dej.                  d   fd^Z d_e!ddfd`Z"d_e!ddfdaZ#ddbdceddej.                  e   dej.                  de   fdfZ$dcedej(                  de   fdgZ%ddddhdced_ej.                  e!   diej.                  edj      ddej.                  e   dej.                  de   f
dkZ&dddldceddej.                  e   d_ej.                  e!   defdmZ'dddldceddej.                  e   d_ej.                  e!   defdnZ(dddldceddej.                  e   d_ej.                  e!   defdoZ)dddldceddej.                  e   d_ej.                  e!   defdpZ*dddldceddej.                  e   d_ej.                  e!   defdqZ+dddldceddej.                  e   d_ej.                  e!   defdrZ,	 dXdddsdcedteduej.                  ejZ                     d_ej.                  e!   ddej.                  e   ddfdvZ.	 dXdwedxej.                  ej^                     dej^                  fdyZ0	 dXdwedxej.                  ej^                     ddzfd{Z1	 dXddbdcedwedxej.                  ej^                     ddej.                  e   dej^                  f
d|Z2	 dXdcedwedxej.                  ej^                     dej^                  fd}Z3ddddd~d]ej.                  e   dej.                  ej                  ee4jj                  f      dej.                  e   dtej.                  e   ddef
dZ6ddddd]ej.                  e   dej.                  ej                  ee4jj                  f      dej.                  e   ddefdZ7d\edej                  ddfdZ8ddd\edej                  dej.                  e   ddfdZ9dejZ                  eef   ddfdZ:defdZ;dddded_ej.                  e!   dej.                  ed      ddfdZ<ddddd]ed_ej.                  e!   dej.                  ed      dej.                  e   dej.                  d.   f
dZ=dddd_ej.                  e!   dej.                  ed      dej.                  d.   fdZ>	 dXdddiej.                  ed      d_ej.                  e!   ddfdZ?dddd]ej                  eej<                  e   ej                  egef   f   dej.                  ed      d_ej.                  e!   ddfdZ@	 dXdddedej.                  ej                     d_ej.                  e!   dej^                  fdZAdddd_ej.                  e!   dej.                  ed      dej.                  d.   fdZBdddd_ej.                  e!   dej.                  ed      dej.                  d.   fdZCdYdZDddddddej.                  ed      dej.                  ed      dej.                  ed      dej.                  ed      ddf
dZEdeddfdZFdYdZG	 dXdddej.                  e   dej.                  ej                  ee4jj                  f      ddfdZHddd]ej                  eej<                  e   ej                  egef   f   dej                  ej                  dgej^                  f   ej                  dd'gej^                  f   f   dej.                  eI   ddfdZJ	 dXd]ej                  eej<                  e   ej                  egef   f   dej.                  ej                  ej                  dgej^                  f   ej                  dd'gej^                  f   f      ddfdZKd]ej                  eej<                  e   ej                  egef   f   dej                  dgej^                  f   ddfdZLdddej.                  ed      ddfdZMdddddddej                  e4jj                  ef   d]ej.                  ej                  eej<                  e   f      dej.                  ed      dej.                  e   dej.                  ed      dej.                  ed      ddfdĄZNddddddddddddddŜd_ej.                  e!   dtej.                  ed      dej.                  ej                  ee4jj                  f      dej.                  eI   dej.                  e   dej.                  e   dej.                  eO   dej.                  ed      dej.                  ed      dej.                  ed      dej.                  ej                  d      dej.                  e   dej.                  e   deQfdՄZRdefdքZSdddלdej.                  e   dej.                  e   ddfdڄZTdefdۄZUdddddddddddܜ
dcedej.                  ej                  ed         dej.                  eV   dej.                  e!   dej.                  ed      dej.                  eI   d_ej.                  e!   dej.                  e   dej.                  e   dej.                  e   ddej.                  e   ddfdZWdddddddddd	dcedej.                  ej                  ed         dej.                  eV   dej.                  e!   dej.                  ed      d_ej.                  e!   dej.                  e   dej.                  e   ddej.                  e   dej.                  e   ddfdZXdddddddddcedej.                  ej                  ed         dej.                  eV   d_ej.                  e!   dej.                  e   dej.                  e   ddej.                  e   dej.                  e   ddfdZYddddddceded_ej.                  e!   dej.                  e   ddej.                  e   dej.                  e   ddfdZZddddddcedej.                  ej                  eej<                  e   f      dej.                  ej                  eej<                  e   f      dej.                  d   dej.                  d   ddfdZ[dddej                  eej<                  e   f   dej.                  e   ddfdZ\dddej                  eej<                  e   f   dej.                  e   ddfdZ]dddej                  eej<                  e   f   dej.                  e   ddfdZ^dddddddddd	ded   dej.                  e   dej.                  e   d ej.                  e   dej.                  e   dej.                  eI   d\ej.                  ej                  eej<                  e   f      dej.                  e   dej.                  e   dej.                  e   ddfdZ_dej                  eej<                  e   f   ddfdZ`dddej                  eej<                  e   f   dej.                  e   ddfdZadddej                  eej<                  e   f   dej.                  e   ddfd	Zbdcedd
fdZcdddldceddej.                  e   d_ej.                  e!   ddfdZddddldceddej.                  e   d_ej.                  e!   dej.                  e   fdZedddldceddej.                  e   d_ej.                  e!   defdZfdddldceddej.                  e   d_ej.                  e!   defdZgdddldced\eddej.                  e   d_ej.                  e!   dej.                  e   f
dZhdddddddddcedej.                  ej                  ed         dej.                  eV   d_ej.                  e!   dej.                  e   dej.                  e   ddej.                  e   dej.                  e   ddfdZidddddddddededej.                  eV   dej.                  eV   dej.                  e   dej.                  e   d_ej.                  e!   ddej.                  e   dej.                  e   ddfdZj	 dXdddddddddcedej.                  ej                  eej                  e   f      dej.                  ej                  eIej                  eI   f      dej.                  ej                  eej                  e   f      dej.                  ej                  deej                  de   f      d_ej.                  e!   dej.                  e   dej.                  e   ddej.                  e   dej(                  e   fdZkdddldceddej.                  e   d_ej.                  e!   defdZldddddced ej                  ee4jj                  emej                  ej                  ee4jj                  f      ej                  em   f   d_ej.                  e!   ddej.                  e   dej.                  e   ddfd!Znddddd"dcededej.                  e!   d_ej.                  e!   dej.                  e   ddej.                  e   ddfd#Zoddddd"dced$edej.                  e!   d_ej.                  e!   dej.                  e   ddej.                  e   ddfd%Zpddddddd&dcedej.                  eV   d_ej.                  e!   dej.                  e   dej.                  e   ddej.                  e   dej.                  e   ddfd'Zqddddddd&dcedej.                  eV   d_ej.                  e!   dej.                  e   dej.                  e   ddej.                  e   dej.                  e   ddfd(Zrd_e!ddfd)Zsdddd*dwedxej.                  ej^                     d_ej.                  e!   d+ej.                  ej                  e!ed,   f      ddzf
d-ZtdYd.Zudddddddddddddddd/dej.                  e!   d0ej.                  e   d1ej.                  e   d2ej.                  e   d3ej.                  e   d4ej.                  e   d5ej.                  e   d6ej.                  e   d7ej.                  ej                  ee!f      d8ej.                  ej                  ee!f      d9ej.                  e   d:ej.                  ev   dej.                  ej                  ee4jj                  f      d;ej.                  e   d<ej.                  e   deQf d=Zw	 dXdddedej.                  ej                     d_ej.                  e!   dexfd>Zy	 dXdddej.                  ej                  d	gef      d_ej.                  e!   dexd	   fd?Zz	 dXdddej.                  ej                  dgef      d_ej.                  e!   dexd   fd@Z{	 dXdddej.                  ej                  dgef      d_ej.                  e!   dexd   fdAZ|ddddBd]ej.                  ej                  eej<                  e   ej                  egef   f      dej.                  ed      d_ej.                  e!   dexd.   fdCZ}	 dXdddej.                  ej                  d gef      d_ej.                  e!   dexd    fdDZ~dddEej                  eej<                  e   ej                  d'gef   f   d_ej.                  e!   dexd'   fdFZ	 dXdddej.                  ej                  d'gef      d_ej.                  e!   dexd'   fdGZdddEej                  eej<                  e   ej                  d.gef   f   d_ej.                  e!   dexd.   fdHZ	 dXdddej.                  ej                  d1gef      d_ej.                  e!   dexd1   fdIZ	 dXdddej.                  ej                  d4gef      d_ej.                  e!   dexd4   fdJZddddddd&dcededej.                  eV   d_ej.                  e!   dej.                  e   dej.                  e   ddej.                  e   dej.                  e   ddfdKZdddLdMddej                  ej                  dgej^                  f   ej                  g ej^                  f   f   dej.                  e   dej.                  eI   ddf
dNZdZdOZ xZS ([  r9   r   r   r   r   rA   Nc                      yz&
        Emitted when the page closes.Nr   r   s      rI   r   zPage.onq  r   rK   consoler$   c                      ya/  
        Emitted when JavaScript within the page calls one of console API methods, e.g. `console.log` or `console.dir`.

        The arguments passed into `console.log` are available on the `ConsoleMessage` event handler argument.

        **Usage**

        ```py
        async def print_args(msg):
            values = []
            for arg in msg.args:
                values.append(await arg.json_value())
            print(values)

        page.on("console", print_args)
        await page.evaluate("console.log('hello', 5, { foo: 'bar' })")
        ```Nr   r   s      rI   r   zPage.onz  r   rK   crashc                      yaT  
        Emitted when the page crashes. Browser pages might crash if they try to allocate too much memory. When the page
        crashes, ongoing and subsequent operations will throw.

        The most common way to deal with crashes is to catch an exception:

        ```py
        try:
            # crash might happen during a click.
            await page.click("button")
            # or while waiting for an event.
            await page.wait_for_event("popup")
        except Error as e:
            pass
            # when the page crashes, exception message contains "crash".
        ```Nr   r   s      rI   r   zPage.on  r   rK   r  r%   c                      ya  
        Emitted when a JavaScript dialog appears, such as `alert`, `prompt`, `confirm` or `beforeunload`. Listener **must**
        either `dialog.accept()` or `dialog.dismiss()` the dialog - otherwise the page will
        [freeze](https://developer.mozilla.org/en-US/docs/Web/JavaScript/EventLoop#never_blocking) waiting for the dialog,
        and actions like click will never finish.

        **Usage**

        ```python
        page.on("dialog", lambda dialog: dialog.accept())
        ```

        **NOTE** When no `page.on('dialog')` or `browser_context.on('dialog')` listeners are present, all dialogs are
        automatically dismissed.Nr   r   s      rI   r   zPage.on  r   rK   rq  c                      yz
        Emitted when the JavaScript
        [`DOMContentLoaded`](https://developer.mozilla.org/en-US/docs/Web/Events/DOMContentLoaded) event is dispatched.
        Nr   r   s      rI   r   zPage.on  r   rK   downloadr&   c                      yz
        Emitted when attachment download started. User can access basic file operations on downloaded content via the
        passed `Download` instance.Nr   r   s      rI   r   zPage.on  r   rK   filechooserr,   c                      yai  
        Emitted when a file chooser is supposed to appear, such as after clicking the  `<input type=file>`. Playwright can
        respond to it via setting the input files using `file_chooser.set_files()` that can be uploaded after that.

        ```py
        page.on("filechooser", lambda file_chooser: file_chooser.set_files("/tmp/myfile.pdf"))
        ```Nr   r   s      rI   r   zPage.on  r   rK   frameattachedr-   c                      yz*
        Emitted when a frame is attached.Nr   r   s      rI   r   zPage.on  r   rK   framedetachedc                      yz*
        Emitted when a frame is detached.Nr   r   s      rI   r   zPage.on  r   rK   framenavigatedc                      yz8
        Emitted when a frame is navigated to a new url.Nr   r   s      rI   r   zPage.on  r   rK   rr  c                      yz
        Emitted when the JavaScript [`load`](https://developer.mozilla.org/en-US/docs/Web/Events/load) event is dispatched.
        Nr   r   s      rI   r   zPage.on   r   rK   	pageerrorr(   c                      yac  
        Emitted when an uncaught exception happens within the page.

        ```py
        # Log all uncaught errors to the terminal
        page.on("pageerror", lambda exc: print(f"uncaught exception: {exc}"))

        # Navigate to a page with an exception.
        await page.goto("data:text/html,<script>throw new Error('test')</script>")
        ```Nr   r   s      rI   r   zPage.on
  r   rK   popupc                      ya9  
        Emitted when the page opens a new tab or window. This event is emitted in addition to the
        `browser_context.on('page')`, but only for popups relevant to this page.

        The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a
        popup with `window.open('http://example.com')`, this event will fire when the network request to
        "http://example.com" is done and its response has started loading in the popup. If you would like to route/listen
        to this network request, use `browser_context.route()` and `browser_context.on('request')` respectively
        instead of similar methods on the `Page`.

        ```py
        async with page.expect_event("popup") as page_info:
            await page.get_by_text("open the popup").click()
        popup = await page_info.value
        print(await popup.evaluate("location.href"))
        ```

        **NOTE** Use `page.wait_for_load_state()` to wait until the page gets to a particular state (you should not
        need it in most cases).Nr   r   s      rI   r   zPage.on  r   rK   r   r4   c                      yz
        Emitted when a page issues a request. The [request] object is read-only. In order to intercept and mutate requests,
        see `page.route()` or `browser_context.route()`.Nr   r   s      rI   r   zPage.on5  r   rK   requestfailedc                      yaN  
        Emitted when a request fails, for example by timing out.

        ```python
        page.on("requestfailed", lambda request: print(request.url + " " + request.failure.error_text))
        ```

        **NOTE** HTTP Error responses, such as 404 or 503, are still successful responses from HTTP standpoint, so request
        will complete with `page.on('request_finished')` event and not with `page.on('request_failed')`. A request will
        only be considered failed when the client cannot get an HTTP response from the server, e.g. due to network error
        net::ERR_FAILED.Nr   r   s      rI   r   zPage.on?  r   rK   requestfinishedc                      yz
        Emitted when a request finishes successfully after downloading the response body. For a successful response, the
        sequence of events is `request`, `response` and `requestfinished`.Nr   r   s      rI   r   zPage.onQ  r   rK   rm   r5   c                      yz
        Emitted when [response] status and headers are received for a request. For a successful response, the sequence of
        events is `request`, `response` and `requestfinished`.Nr   r   s      rI   r   zPage.on[  r   rK   	websocketr7   c                      yz2
        Emitted when `WebSocket` request is sent.Nr   r   s      rI   r   zPage.one  r   rK   workerr:   c                      yz
        Emitted when a dedicated [WebWorker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) is spawned
        by the page.Nr   r   s      rI   r   zPage.onn  r   rK   .c                 &    t         |   ||      S r   r   r   s      rI   r   zPage.onx  r   rK   c                      yr  r   r   s      rI   r   z	Page.once  r   rK   c                      yr  r   r   s      rI   r   z	Page.once  r   rK   c                      yr  r   r   s      rI   r   z	Page.once  r   rK   c                      yr  r   r   s      rI   r   z	Page.once  r   rK   c                      yr  r   r   s      rI   r   z	Page.once  r   rK   c                      yr!  r   r   s      rI   r   z	Page.once  r   rK   c                      yr$  r   r   s      rI   r   z	Page.once  r   rK   c                      yr'  r   r   s      rI   r   z	Page.once  r   rK   c                      yr*  r   r   s      rI   r   z	Page.once  r   rK   c                      yr-  r   r   s      rI   r   z	Page.once  r   rK   c                      yr/  r   r   s      rI   r   z	Page.once  r   rK   c                      yr2  r   r   s      rI   r   z	Page.once  r   rK   c                      yr5  r   r   s      rI   r   z	Page.once)  r   rK   c                      yr7  r   r   s      rI   r   z	Page.onceC  r   rK   c                      yr:  r   r   s      rI   r   z	Page.onceM  r   rK   c                      yr=  r   r   s      rI   r   z	Page.once_  r   rK   c                      yr?  r   r   s      rI   r   z	Page.oncei  r   rK   c                      yrB  r   r   s      rI   r   z	Page.onces  r   rK   c                      yrE  r   r   s      rI   r   z	Page.once|  r   rK   c                 &    t         |   ||      S r   r  r   s      rI   r   z	Page.once  r  rK   c                 T    t        j                  | j                  j                        S )zRPage.accessibility

        Returns
        -------
        Accessibility
        )r   rY   rE   accessibilityrG   s    rI   r\  zPage.accessibility  s       !=!=>>rK   c                 T    t        j                  | j                  j                        S )zHPage.keyboard

        Returns
        -------
        Keyboard
        )r   rY   rE   keyboardrG   s    rI   r^  zPage.keyboard  r  rK   c                 T    t        j                  | j                  j                        S )zBPage.mouse

        Returns
        -------
        Mouse
        )r   rY   rE   mouserG   s    rI   r`  z
Page.mouse  s       !5!566rK   c                 T    t        j                  | j                  j                        S )zNPage.touchscreen

        Returns
        -------
        Touchscreen
        )r   rY   rE   touchscreenrG   s    rI   rb  zPage.touchscreen  s       !;!;<<rK   c                 T    t        j                  | j                  j                        S )zPage.context

        Get the browser context that the page belongs to.

        Returns
        -------
        BrowserContext
        )r   rY   rE   contextrG   s    rI   rd  zPage.context  r   rK   c                 T    t        j                  | j                  j                        S )zPage.clock

        Playwright has ability to mock clock and passage of time.

        Returns
        -------
        Clock
        r   rY   rE   clockrG   s    rI   rg  z
Page.clock  r   rK   c                 T    t        j                  | j                  j                        S )zPage.main_frame

        The page's main frame. Page is guaranteed to have a main frame which persists during navigations.

        Returns
        -------
        Frame
        )r   rY   rE   
main_framerG   s    rI   ri  zPage.main_frame  s       !:!:;;rK   c                 T    t        j                  | j                  j                        S )zPage.frames

        An array of all frames attached to the page.

        Returns
        -------
        List[Frame]
        )r   rv   rE   framesrG   s    rI   rk  zPage.frames  s     %%dnn&;&;<<rK   c                 T    t        j                  | j                  j                        S )z>Page.url

        Returns
        -------
        str
        rC   rG   s    rI   rF   zPage.url  r  rK   c                 T    t        j                  | j                  j                        S )zkPage.viewport_size

        Returns
        -------
        Union[{width: int, height: int}, None]
        )r   r\   rE   viewport_sizerG   s    rI   rn  zPage.viewport_size  s     ))$..*F*FGGrK   c                 T    t        j                  | j                  j                        S )a%  Page.workers

        This method returns all of the dedicated
        [WebWorkers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) associated with the page.

        **NOTE** This does not contain ServiceWorkers

        Returns
        -------
        List[Worker]
        )r   rv   rE   workersrG   s    rI   rp  zPage.workers  s     %%dnn&<&<==rK   c                 T    t        j                  | j                  j                        S )a!  Page.request

        API testing helper associated with this page. This method returns the same instance as
        `browser_context.request` on the page's context. See `browser_context.request` for more
        details.

        Returns
        -------
        APIRequestContext
        r   rG   s    rI   r   zPage.request  s       !7!788rK   r>   c                 T    t        j                  | j                  j                        S )zPage.video

        Video object associated with this page.

        Returns
        -------
        Union[Video, None]
        )r   r\   rE   videorG   s    rI   rs  z
Page.video  s     ))$..*>*>??rK   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zPage.opener

        Returns the opener for popup pages and `null` for others. If the opener has been closed already the returns `null`.

        Returns
        -------
        Union[Page, None]
        N)r   r\   rE   openerrG   s    rI   ru  zPage.opener"  s,      ))0E0E0G*GHH*Grk   )rF   ry   rF   c                    t        j                  | j                  j                  || j	                  |                  S )aS  Page.frame

        Returns frame matching the specified criteria. Either `name` or `url` must be specified.

        **Usage**

        ```py
        frame = page.frame(name="frame-name")
        ```

        Parameters
        ----------
        name : Union[str, None]
            Frame name specified in the `iframe`'s `name` attribute. Optional.
        url : Union[Callable[[str], bool], Pattern[str], str, None]
            A glob pattern, regex pattern or predicate receiving frame's `url` as a [URL] object. Optional.

        Returns
        -------
        Union[Frame, None]
        )ry   rF   )r   r\   rE   rZ   r
  )rH   ry   rF   s      rI   rZ   z
Page.frame.  s9    < ))NN  d0B0B30G H
 	
rK   r   c                 `    t        j                  | j                  j                  |            S )a  Page.set_default_navigation_timeout

        This setting will change the default maximum navigation time for the following methods and related shortcuts:
        - `page.go_back()`
        - `page.go_forward()`
        - `page.goto()`
        - `page.reload()`
        - `page.set_content()`
        - `page.expect_navigation()`
        - `page.wait_for_url()`

        **NOTE** `page.set_default_navigation_timeout()` takes priority over `page.set_default_timeout()`,
        `browser_context.set_default_timeout()` and `browser_context.set_default_navigation_timeout()`.

        Parameters
        ----------
        timeout : float
            Maximum navigation time in milliseconds
        r  r   rD   rE   set_default_navigation_timeoutr  s     rI   ry  z#Page.set_default_navigation_timeoutP  s,    * &&NN99'9J
 	
rK   c                 `    t        j                  | j                  j                  |            S )a~  Page.set_default_timeout

        This setting will change the default maximum time for all the methods accepting `timeout` option.

        **NOTE** `page.set_default_navigation_timeout()` takes priority over `page.set_default_timeout()`.

        Parameters
        ----------
        timeout : float
            Maximum time in milliseconds. Pass `0` to disable timeout.
        r  r   rD   rE   set_default_timeoutr  s     rI   r|  zPage.set_default_timeouti  s,     &&NN..w.?
 	
rK   r  r,  rH  r'   c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)a{  Page.query_selector

        The method finds an element matching the specified selector within the page. If no elements match the selector, the
        return value resolves to `null`. To wait for an element on the page, use `locator.wait_for()`.

        Parameters
        ----------
        selector : str
            A selector to query for.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.

        Returns
        -------
        Union[ElementHandle, None]
        r  Nr/  r  s      rI   r0  zPage.query_selectorz  s8     * ))..//&/QQ
 	
Qr"  c                 |   K   t        j                  | j                  j                  |       d{         S 7 w)af  Page.query_selector_all

        The method finds all elements matching the specified selector within the page. If no elements match the selector,
        the return value resolves to `[]`.

        Parameters
        ----------
        selector : str
            A selector to query for.

        Returns
        -------
        List[ElementHandle]
        r.  Nr3  r1  s     rI   r4  zPage.query_selector_all  r5  r   )r   r>  rH  r>  rI  c                   K   t        j                  | j                  j                  ||||       d{         S 7 w)aj  Page.wait_for_selector

        Returns when element specified by selector satisfies `state` option. Returns `null` if waiting for `hidden` or
        `detached`.

        **NOTE** Playwright automatically waits for element to be ready before performing an action. Using `Locator`
        objects and web-first assertions makes the code wait-for-selector-free.

        Wait for the `selector` to satisfy `state` option (either appear/disappear from dom, or become visible/hidden). If
        at the moment of calling the method `selector` already satisfies the condition, the method will return immediately.
        If the selector doesn't satisfy the condition for the `timeout` milliseconds, the function will throw.

        **Usage**

        This method works across navigations:

        ```py
        import asyncio
        from playwright.async_api import async_playwright, Playwright

        async def run(playwright: Playwright):
            chromium = playwright.chromium
            browser = await chromium.launch()
            page = await browser.new_page()
            for current_url in ["https://google.com", "https://bbc.com"]:
                await page.goto(current_url, wait_until="domcontentloaded")
                element = await page.wait_for_selector("img")
                print("Loaded image: " + str(await element.get_attribute("src")))
            await browser.close()

        async def main():
            async with async_playwright() as playwright:
                await run(playwright)
        asyncio.run(main())
        ```

        Parameters
        ----------
        selector : str
            A selector to query for.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        state : Union["attached", "detached", "hidden", "visible", None]
            Defaults to `'visible'`. Can be either:
            - `'attached'` - wait for element to be present in DOM.
            - `'detached'` - wait for element to not be present in DOM.
            - `'visible'` - wait for element to have non-empty bounding box and no `visibility:hidden`. Note that element
              without any content or with `display:none` has an empty bounding box and is not considered visible.
            - `'hidden'` - wait for element to be either detached from DOM, or have an empty bounding box or
              `visibility:hidden`. This is opposite to the `'visible'` option.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.

        Returns
        -------
        Union[ElementHandle, None]
        )r,  r   r>  rH  NrM  )rH   r,  r   r>  rH  s        rI   rN  zPage.wait_for_selector  sF     L ))..22!7% 3  
 	
rY  r  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)ag  Page.is_checked

        Returns whether the element is checked. Throws if the element is not a checkbox or radio input.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        bool
        r  Nr  r  s       rI   r  zPage.is_checked  r  rH  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)a  Page.is_disabled

        Returns whether the element is disabled, the opposite of [enabled](https://playwright.dev/python/docs/actionability#enabled).

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        bool
        r  Nr  r  s       rI   r  zPage.is_disabled   r  rH  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)an  Page.is_editable

        Returns whether the element is [editable](https://playwright.dev/python/docs/actionability#editable).

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        bool
        r  Nr  r  s       rI   r  zPage.is_editable7   r  rH  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)ak  Page.is_enabled

        Returns whether the element is [enabled](https://playwright.dev/python/docs/actionability#enabled).

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        bool
        r  Nr  r  s       rI   r  zPage.is_enabledY   r  rH  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)uf  Page.is_hidden

        Returns whether the element is hidden, the opposite of [visible](https://playwright.dev/python/docs/actionability#visible).  `selector` that
        does not match any elements is considered hidden.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Deprecated: This option is ignored. `page.is_hidden()` does not wait for the↵element to become hidden and returns immediately.

        Returns
        -------
        bool
        r  Nr  r  s       rI   r  zPage.is_hidden{   r  rH  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)uU  Page.is_visible

        Returns whether the element is [visible](https://playwright.dev/python/docs/actionability#visible). `selector` that does not match any elements
        is considered not visible.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Deprecated: This option is ignored. `page.is_visible()` does not wait↵for the element to become visible and returns immediately.

        Returns
        -------
        bool
        r  Nr  r  s       rI   r  zPage.is_visible   r  rH  )r   rH  r>  r  c          	         K   t        j                  | j                  j                  ||t        j                  |      ||       d{         S 7 w)a  Page.dispatch_event

        The snippet below dispatches the `click` event on the element. Regardless of the visibility state of the element,
        `click` is dispatched. This is equivalent to calling
        [element.click()](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/click).

        **Usage**

        ```py
        await page.dispatch_event("button#submit", "click")
        ```

        Under the hood, it creates an instance of an event based on the given `type`, initializes it with `eventInit`
        properties and dispatches it on the element. Events are `composed`, `cancelable` and bubble by default.

        Since `eventInit` is event-specific, please refer to the events documentation for the lists of initial properties:
        - [DeviceMotionEvent](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/DeviceMotionEvent)
        - [DeviceOrientationEvent](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/DeviceOrientationEvent)
        - [DragEvent](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/DragEvent)
        - [Event](https://developer.mozilla.org/en-US/docs/Web/API/Event/Event)
        - [FocusEvent](https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent/FocusEvent)
        - [KeyboardEvent](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/KeyboardEvent)
        - [MouseEvent](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent)
        - [PointerEvent](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/PointerEvent)
        - [TouchEvent](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/TouchEvent)
        - [WheelEvent](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/WheelEvent)

        You can also specify `JSHandle` as the property value if you want live objects to be passed into the event:

        ```py
        # note you can only create data_transfer in chromium and firefox
        data_transfer = await page.evaluate_handle("new DataTransfer()")
        await page.dispatch_event("#source", "dragstart", { "dataTransfer": data_transfer })
        ```

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        type : str
            DOM event type: `"click"`, `"dragstart"`, etc.
        event_init : Union[Dict, None]
            Optional event-specific initialization properties.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        )r,  r>  r  r   rH  Nr  )rH   r,  r>  r  r   rH  s         rI   r  zPage.dispatch_event   sU     z &&..//!!//*5 0  
 	
r  rd  re  c                    K   t        j                  | j                  j                  |t        j                  |             d{         S 7 w)aw  Page.evaluate

        Returns the value of the `expression` invocation.

        If the function passed to the `page.evaluate()` returns a [Promise], then `page.evaluate()` would
        wait for the promise to resolve and return its value.

        If the function passed to the `page.evaluate()` returns a non-[Serializable] value, then
        `page.evaluate()` resolves to `undefined`. Playwright also supports transferring some additional values
        that are not serializable by `JSON`: `-0`, `NaN`, `Infinity`, `-Infinity`.

        **Usage**

        Passing argument to `expression`:

        ```py
        result = await page.evaluate("([x, y]) => Promise.resolve(x * y)", [7, 8])
        print(result) # prints "56"
        ```

        A string can also be passed in instead of a function:

        ```py
        print(await page.evaluate("1 + 2")) # prints "3"
        x = 10
        print(await page.evaluate(f"1 + {x}")) # prints "11"
        ```

        `ElementHandle` instances can be passed as an argument to the `page.evaluate()`:

        ```py
        body_handle = await page.evaluate("document.body")
        html = await page.evaluate("([body, suffix]) => body.innerHTML + suffix", [body_handle, "hello"])
        await body_handle.dispose()
        ```

        Parameters
        ----------
        expression : str
            JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the
            function is automatically invoked.
        arg : Union[Any, None]
            Optional argument to pass to `expression`.

        Returns
        -------
        Any
        rg  Nrh  rj  s      rI   ri  zPage.evaluate!  sK     h &&..))%7??3+? *  
 	
rk  r1   c                    K   t        j                  | j                  j                  |t        j                  |             d{         S 7 w)a  Page.evaluate_handle

        Returns the value of the `expression` invocation as a `JSHandle`.

        The only difference between `page.evaluate()` and `page.evaluate_handle()` is that
        `page.evaluate_handle()` returns `JSHandle`.

        If the function passed to the `page.evaluate_handle()` returns a [Promise], then
        `page.evaluate_handle()` would wait for the promise to resolve and return its value.

        **Usage**

        ```py
        a_window_handle = await page.evaluate_handle("Promise.resolve(window)")
        a_window_handle # handle for the window object.
        ```

        A string can also be passed in instead of a function:

        ```py
        a_handle = await page.evaluate_handle("document") # handle for the "document"
        ```

        `JSHandle` instances can be passed as an argument to the `page.evaluate_handle()`:

        ```py
        a_handle = await page.evaluate_handle("document.body")
        result_handle = await page.evaluate_handle("body => body.innerHTML", a_handle)
        print(await result_handle.json_value())
        await result_handle.dispose()
        ```

        Parameters
        ----------
        expression : str
            JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the
            function is automatically invoked.
        arg : Union[Any, None]
            Optional argument to pass to `expression`.

        Returns
        -------
        JSHandle
        rg  Nrm  rj  s      rI   rn  zPage.evaluate_handle@!  r  rk  c          	         K   t        j                  | j                  j                  ||t        j                  |      |       d{         S 7 w)ab  Page.eval_on_selector

        The method finds an element matching the specified selector within the page and passes it as a first argument to
        `expression`. If no elements match the selector, the method throws an error. Returns the value of `expression`.

        If `expression` returns a [Promise], then `page.eval_on_selector()` would wait for the promise to resolve and
        return its value.

        **Usage**

        ```py
        search_value = await page.eval_on_selector("#search", "el => el.value")
        preload_href = await page.eval_on_selector("link[rel=preload]", "el => el.href")
        html = await page.eval_on_selector(".main-container", "(e, suffix) => e.outer_html + suffix", "hello")
        ```

        Parameters
        ----------
        selector : str
            A selector to query for.
        expression : str
            JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the
            function is automatically invoked.
        arg : Union[Any, None]
            Optional argument to pass to `expression`.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.

        Returns
        -------
        Any
        r  Nr8  r  s        rI   r9  zPage.eval_on_selectorv!  sR     T &&..11!%OOC(	 2  
 	
r  c           	         K   t        j                  | j                  j                  ||t        j                  |             d{         S 7 w)a  Page.eval_on_selector_all

        The method finds all elements matching the specified selector within the page and passes an array of matched
        elements as a first argument to `expression`. Returns the result of `expression` invocation.

        If `expression` returns a [Promise], then `page.eval_on_selector_all()` would wait for the promise to resolve
        and return its value.

        **Usage**

        ```py
        div_counts = await page.eval_on_selector_all("div", "(divs, min) => divs.length >= min", 10)
        ```

        Parameters
        ----------
        selector : str
            A selector to query for.
        expression : str
            JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the
            function is automatically invoked.
        arg : Union[Any, None]
            Optional argument to pass to `expression`.

        Returns
        -------
        Any
        r7  Nr<  r:  s       rI   r=  zPage.eval_on_selector_all!  sM     @ &&..55!jgooc>R 6  
 	
r  r  r   r  c                   K   t        j                  | j                  j                  ||||       d{         S 7 w)a  Page.add_script_tag

        Adds a `<script>` tag into the page with the desired url or content. Returns the added tag when the script's onload
        fires or when the script content was injected into frame.

        Parameters
        ----------
        url : Union[str, None]
            URL of a script to be added.
        path : Union[pathlib.Path, str, None]
            Path to the JavaScript file to be injected into frame. If `path` is a relative path, then it is resolved relative
            to the current working directory.
        content : Union[str, None]
            Raw JavaScript content to be injected into frame.
        type : Union[str, None]
            Script type. Use 'module' in order to load a JavaScript ES6 module. See
            [script](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script) for more details.

        Returns
        -------
        ElementHandle
        r  Nr  r  s        rI   r  zPage.add_script_tag!  sE     >   ..//dG$ 0  
 	
rY  r  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)a  Page.add_style_tag

        Adds a `<link rel="stylesheet">` tag into the page with the desired url or a `<style type="text/css">` tag with the
        content. Returns the added tag when the stylesheet's onload fires or when the CSS content was injected into frame.

        Parameters
        ----------
        url : Union[str, None]
            URL of the `<link>` tag.
        path : Union[pathlib.Path, str, None]
            Path to the CSS file to be injected into frame. If `path` is a relative path, then it is resolved relative to the
            current working directory.
        content : Union[str, None]
            Raw CSS content to be injected into frame.

        Returns
        -------
        ElementHandle
        r  Nr  r  s       rI   r  zPage.add_style_tag!  s:     6   ....3T7.SS
 	
SrH  callbackc                    K   t        j                  | j                  j                  || j	                  |             d{         S 7 w)aN  Page.expose_function

        The method adds a function called `name` on the `window` object of every frame in the page. When called, the
        function executes `callback` and returns a [Promise] which resolves to the return value of `callback`.

        If the `callback` returns a [Promise], it will be awaited.

        See `browser_context.expose_function()` for context-wide exposed function.

        **NOTE** Functions installed via `page.expose_function()` survive navigations.

        **Usage**

        An example of adding a `sha256` function to the page:

        ```py
        import asyncio
        import hashlib
        from playwright.async_api import async_playwright, Playwright

        def sha256(text):
            m = hashlib.sha256()
            m.update(bytes(text, "utf8"))
            return m.hexdigest()

        async def run(playwright: Playwright):
            webkit = playwright.webkit
            browser = await webkit.launch(headless=False)
            page = await browser.new_page()
            await page.expose_function("sha256", sha256)
            await page.set_content("""
                <script>
                  async function onClick() {
                    document.querySelector('div').textContent = await window.sha256('PLAYWRIGHT');
                  }
                </script>
                <button onclick="onClick()">Click me</button>
                <div></div>
            """)
            await page.click("button")

        async def main():
            async with async_playwright() as playwright:
                await run(playwright)
        asyncio.run(main())
        ```

        Parameters
        ----------
        name : str
            Name of the function on the window object
        callback : Callable
            Callback function which will be called in Playwright's context.
        ry   r  Nr   rD   rE   expose_functionr
  rH   ry   r  s      rI   r  zPage.expose_function"  sM     p &&..00D$6$6x$@ 1  
 	
   ?AA
	Ahandler  c                   K   t        j                  | j                  j                  || j	                  |      |       d{         S 7 w)a  Page.expose_binding

        The method adds a function called `name` on the `window` object of every frame in this page. When called, the
        function executes `callback` and returns a [Promise] which resolves to the return value of `callback`. If the
        `callback` returns a [Promise], it will be awaited.

        The first argument of the `callback` function contains information about the caller: `{ browserContext:
        BrowserContext, page: Page, frame: Frame }`.

        See `browser_context.expose_binding()` for the context-wide version.

        **NOTE** Functions installed via `page.expose_binding()` survive navigations.

        **Usage**

        An example of exposing page URL to all frames in a page:

        ```py
        import asyncio
        from playwright.async_api import async_playwright, Playwright

        async def run(playwright: Playwright):
            webkit = playwright.webkit
            browser = await webkit.launch(headless=False)
            context = await browser.new_context()
            page = await context.new_page()
            await page.expose_binding("pageURL", lambda source: source["page"].url)
            await page.set_content("""
            <script>
              async function onClick() {
                document.querySelector('div').textContent = await window.pageURL();
              }
            </script>
            <button onclick="onClick()">Click me</button>
            <div></div>
            """)
            await page.click("button")

        async def main():
            async with async_playwright() as playwright:
                await run(playwright)
        asyncio.run(main())
        ```

        Parameters
        ----------
        name : str
            Name of the function on the window object.
        callback : Callable
            Callback function that will be called in the Playwright's context.
        handle : Union[bool, None]
            Whether to pass the argument as a handle, instead of passing by value. When passing a handle, only one argument is
            supported. When passing by value, multiple arguments are supported.
            Deprecated: This option will be removed in the future.
        ry   r  r  Nr   rD   rE   expose_bindingr
  rH   ry   r  r  s       rI   r  zPage.expose_bindingQ"  sO     ~ &&..//D$6$6x$@ 0  
 	
r  rg   c                    K   t        j                  | j                  j                  t        j                  |             d{         S 7 w)a  Page.set_extra_http_headers

        The extra HTTP headers will be sent with every request the page initiates.

        **NOTE** `page.set_extra_http_headers()` does not guarantee the order of headers in the outgoing requests.

        Parameters
        ----------
        headers : Dict[str, str]
            An object containing additional HTTP headers to be sent with every request. All header values must be strings.
        rg   Nr   rD   rE   set_extra_http_headersr   rH   rg   s     rI   r  zPage.set_extra_http_headers"  sH      &&..770 8  
 	
   AAA	Ac                 x   K   t        j                  | j                  j                          d{         S 7 w)zPage.content

        Gets the full HTML contents of the page, including the doctype.

        Returns
        -------
        str
        Nr  rG   s    rI   r  zPage.content"  r  rk   r  r  rm  ro  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)a  Page.set_content

        This method internally calls [document.write()](https://developer.mozilla.org/en-US/docs/Web/API/Document/write),
        inheriting all its specific characteristics and behaviors.

        Parameters
        ----------
        html : str
            HTML markup to assign to the page.
        timeout : Union[float, None]
            Maximum operation 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_navigation_timeout()`,
            `browser_context.set_default_timeout()`, `page.set_default_navigation_timeout()` or
            `page.set_default_timeout()` methods.
        wait_until : Union["commit", "domcontentloaded", "load", "networkidle", None]
            When to consider operation succeeded, defaults to `load`. Events can be either:
            - `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.
            - `'load'` - consider operation to be finished when the `load` event is fired.
            - `'networkidle'` - **DISCOURAGED** consider operation to be finished when there are no network connections for
              at least `500` ms. Don't use this method for testing, rely on web assertions to assess readiness instead.
            - `'commit'` - consider operation to be finished when network response is received and the document started
              loading.
        r  Nr  r  s       rI   r  zPage.set_content"  r  rH  rl  rn  c                   K   t        j                  | j                  j                  ||||       d{         S 7 w)a  Page.goto

        Returns the main resource response. In case of multiple redirects, the navigation will resolve with the first
        non-redirect response.

        The method will throw an error if:
        - there's an SSL error (e.g. in case of self-signed certificates).
        - target URL is invalid.
        - the `timeout` is exceeded during navigation.
        - the remote server does not respond or is unreachable.
        - the main resource failed to load.

        The method will not throw an error when any valid HTTP status code is returned by the remote server, including 404
        "Not Found" and 500 "Internal Server Error".  The status code for such responses can be retrieved by calling
        `response.status()`.

        **NOTE** The method either throws an error or returns a main resource response. The only exceptions are navigation
        to `about:blank` or navigation to the same URL with a different hash, which would succeed and return `null`.

        **NOTE** Headless mode doesn't support navigation to a PDF document. See the
        [upstream issue](https://bugs.chromium.org/p/chromium/issues/detail?id=761295).

        Parameters
        ----------
        url : str
            URL to navigate page to. The url should include scheme, e.g. `https://`. When a `baseURL` via the context options
            was provided and the passed URL is a path, it gets merged via the
            [`new URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor.
        timeout : Union[float, None]
            Maximum operation 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_navigation_timeout()`,
            `browser_context.set_default_timeout()`, `page.set_default_navigation_timeout()` or
            `page.set_default_timeout()` methods.
        wait_until : Union["commit", "domcontentloaded", "load", "networkidle", None]
            When to consider operation succeeded, defaults to `load`. Events can be either:
            - `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.
            - `'load'` - consider operation to be finished when the `load` event is fired.
            - `'networkidle'` - **DISCOURAGED** consider operation to be finished when there are no network connections for
              at least `500` ms. Don't use this method for testing, rely on web assertions to assess readiness instead.
            - `'commit'` - consider operation to be finished when network response is received and the document started
              loading.
        referer : Union[str, None]
            Referer header value. If provided it will take preference over the referer header value set by
            `page.set_extra_http_headers()`.

        Returns
        -------
        Union[Response, None]
        ru  Nrw  ry  s        rI   rx  z	Page.goto"  sF     x ))..%%J &  
 	
rY  c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)a  Page.reload

        This method reloads the current page, in the same way as if the user had triggered a browser refresh. Returns the
        main resource response. In case of multiple redirects, the navigation will resolve with the response of the last
        redirect.

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum operation 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_navigation_timeout()`,
            `browser_context.set_default_timeout()`, `page.set_default_navigation_timeout()` or
            `page.set_default_timeout()` methods.
        wait_until : Union["commit", "domcontentloaded", "load", "networkidle", None]
            When to consider operation succeeded, defaults to `load`. Events can be either:
            - `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.
            - `'load'` - consider operation to be finished when the `load` event is fired.
            - `'networkidle'` - **DISCOURAGED** consider operation to be finished when there are no network connections for
              at least `500` ms. Don't use this method for testing, rely on web assertions to assess readiness instead.
            - `'commit'` - consider operation to be finished when network response is received and the document started
              loading.

        Returns
        -------
        Union[Response, None]
        r   rv  N)r   r\   rE   reloadrH   r   rm  s      rI   r  zPage.reload#  s9     F ))..'':'NN
 	
Nr"  r  r  c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)ax  Page.wait_for_load_state

        Returns when the required load state has been reached.

        This resolves when the page reaches a required load state, `load` by default. The navigation must have been
        committed when this method is called. If current document has already reached the required state, resolves
        immediately.

        **NOTE** Most of the time, this method is not needed because Playwright
        [auto-waits before every action](https://playwright.dev/python/docs/actionability).

        **Usage**

        ```py
        await page.get_by_role("button").click() # click triggers navigation.
        await page.wait_for_load_state() # the promise resolves after "load" event.
        ```

        ```py
        async with page.expect_popup() as page_info:
            await page.get_by_role("button").click() # click triggers a popup.
        popup = await page_info.value
        # Wait for the "DOMContentLoaded" event.
        await popup.wait_for_load_state("domcontentloaded")
        print(await popup.title()) # popup is ready to use.
        ```

        Parameters
        ----------
        state : Union["domcontentloaded", "load", "networkidle", None]
            Optional load state to wait for, defaults to `load`. If the state has been already reached while loading current
            document, the method resolves immediately. Can be one of:
            - `'load'` - wait for the `load` event to be fired.
            - `'domcontentloaded'` - wait for the `DOMContentLoaded` event to be fired.
            - `'networkidle'` - **DISCOURAGED** wait until there are no network connections for at least `500` ms. Don't use
              this method for testing, rely on web assertions to assess readiness instead.
        timeout : Union[float, None]
            Maximum operation 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_navigation_timeout()`,
            `browser_context.set_default_timeout()`, `page.set_default_navigation_timeout()` or
            `page.set_default_timeout()` methods.
        rE  Nr  rG  s      rI   r  zPage.wait_for_load_stateE#  s9     f &&..445'4RR
 	
Rr"  r  c                   K   t        j                  | j                  j                  | j	                  |      ||       d{         S 7 w)a6  Page.wait_for_url

        Waits for the main frame to navigate to the given URL.

        **Usage**

        ```py
        await page.click("a.delayed-navigation") # clicking the link will indirectly cause a navigation
        await page.wait_for_url("**/target.html")
        ```

        Parameters
        ----------
        url : Union[Callable[[str], bool], Pattern[str], str]
            A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if
            the parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly
            equal to the string.
        wait_until : Union["commit", "domcontentloaded", "load", "networkidle", None]
            When to consider operation succeeded, defaults to `load`. Events can be either:
            - `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.
            - `'load'` - consider operation to be finished when the `load` event is fired.
            - `'networkidle'` - **DISCOURAGED** consider operation to be finished when there are no network connections for
              at least `500` ms. Don't use this method for testing, rely on web assertions to assess readiness instead.
            - `'commit'` - consider operation to be finished when network response is received and the document started
              loading.
        timeout : Union[float, None]
            Maximum operation 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_navigation_timeout()`,
            `browser_context.set_default_timeout()`, `page.set_default_navigation_timeout()` or
            `page.set_default_timeout()` methods.
        r|  Nr  r  s       rI   r  zPage.wait_for_url|#  r  r  r  c                   K   t        j                  | j                  j                  || j	                  |      |       d{         S 7 w)a  Page.wait_for_event

        **NOTE** In most cases, you should use `page.expect_event()`.

        Waits for given `event` to fire. If predicate is provided, it passes event's value into the `predicate` function
        and waits for `predicate(event)` to return a truthy value. Will throw an error if the page is closed before the
        `event` is fired.

        Parameters
        ----------
        event : str
            Event name, same one typically passed into `*.on(event)`.
        predicate : Union[Callable, None]
            Receives the event data and resolves to truthy value when the waiting should resolve.
        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()`.

        Returns
        -------
        Any
        r  Nr  r  s       rI   r  zPage.wait_for_event#  r  r  c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)a  Page.go_back

        Returns the main resource response. In case of multiple redirects, the navigation will resolve with the response of
        the last redirect. If cannot go back, returns `null`.

        Navigate to the previous page in history.

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum operation 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_navigation_timeout()`,
            `browser_context.set_default_timeout()`, `page.set_default_navigation_timeout()` or
            `page.set_default_timeout()` methods.
        wait_until : Union["commit", "domcontentloaded", "load", "networkidle", None]
            When to consider operation succeeded, defaults to `load`. Events can be either:
            - `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.
            - `'load'` - consider operation to be finished when the `load` event is fired.
            - `'networkidle'` - **DISCOURAGED** consider operation to be finished when there are no network connections for
              at least `500` ms. Don't use this method for testing, rely on web assertions to assess readiness instead.
            - `'commit'` - consider operation to be finished when network response is received and the document started
              loading.

        Returns
        -------
        Union[Response, None]
        r  N)r   r\   rE   go_backr  s      rI   r  zPage.go_back#  s9     H ))..((J(OO
 	
Or"  c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)a  Page.go_forward

        Returns the main resource response. In case of multiple redirects, the navigation will resolve with the response of
        the last redirect. If cannot go forward, returns `null`.

        Navigate to the next page in history.

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum operation 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_navigation_timeout()`,
            `browser_context.set_default_timeout()`, `page.set_default_navigation_timeout()` or
            `page.set_default_timeout()` methods.
        wait_until : Union["commit", "domcontentloaded", "load", "networkidle", None]
            When to consider operation succeeded, defaults to `load`. Events can be either:
            - `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.
            - `'load'` - consider operation to be finished when the `load` event is fired.
            - `'networkidle'` - **DISCOURAGED** consider operation to be finished when there are no network connections for
              at least `500` ms. Don't use this method for testing, rely on web assertions to assess readiness instead.
            - `'commit'` - consider operation to be finished when network response is received and the document started
              loading.

        Returns
        -------
        Union[Response, None]
        r  N)r   r\   rE   
go_forwardr  s      rI   r  zPage.go_forward#  s9     H ))..++Gz+RR
 	
Rr"  c                 x   K   t        j                  | j                  j                          d{         S 7 w)aU  Page.request_gc

        Request the page to perform garbage collection. Note that there is no guarantee that all unreachable objects will
        be collected.

        This is useful to help detect memory leaks. For example, if your page has a large object `'suspect'` that might be
        leaked, you can check that it does not leak by using a
        [`WeakRef`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakRef).

        ```py
        # 1. In your page, save a WeakRef for the "suspect".
        await page.evaluate("globalThis.suspectWeakRef = new WeakRef(suspect)")
        # 2. Request garbage collection.
        await page.request_gc()
        # 3. Check that weak ref does not deref to the original object.
        assert await page.evaluate("!globalThis.suspectWeakRef.deref()")
        ```
        N)r   rD   rE   
request_gcrG   s    rI   r  zPage.request_gc$  s,     ( &&T^^-F-F-H'HII'Hrk   )mediacolor_schemereduced_motionforced_colorsr  )nullprintscreenr  darklightno-preferencer  r  r  r  reducer  activer   r  c                   K   t        j                  | j                  j                  ||||       d{         S 7 w)u  Page.emulate_media

        This method changes the `CSS media type` through the `media` argument, and/or the `'prefers-colors-scheme'` media
        feature, using the `colorScheme` argument.

        **Usage**

        ```py
        await page.evaluate("matchMedia('screen').matches")
        # → True
        await page.evaluate("matchMedia('print').matches")
        # → False

        await page.emulate_media(media="print")
        await page.evaluate("matchMedia('screen').matches")
        # → False
        await page.evaluate("matchMedia('print').matches")
        # → True

        await page.emulate_media()
        await page.evaluate("matchMedia('screen').matches")
        # → True
        await page.evaluate("matchMedia('print').matches")
        # → False
        ```

        ```py
        await page.emulate_media(color_scheme="dark")
        await page.evaluate("matchMedia('(prefers-color-scheme: dark)').matches")
        # → True
        await page.evaluate("matchMedia('(prefers-color-scheme: light)').matches")
        # → False
        ```

        Parameters
        ----------
        media : Union["null", "print", "screen", None]
            Changes the CSS media type of the page. The only allowed values are `'Screen'`, `'Print'` and `'Null'`. Passing
            `'Null'` disables CSS media emulation.
        color_scheme : Union["dark", "light", "no-preference", "null", None]
            Emulates [prefers-colors-scheme](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme)
            media feature, supported values are `'light'` and `'dark'`. Passing `'Null'` disables color scheme emulation.
            `'no-preference'` is deprecated.
        reduced_motion : Union["no-preference", "null", "reduce", None]
            Emulates `'prefers-reduced-motion'` media feature, supported values are `'reduce'`, `'no-preference'`. Passing
            `null` disables reduced motion emulation.
        forced_colors : Union["active", "none", "null", None]
        )r  colorSchemereducedMotionforcedColorsN)r   rD   rE   emulate_media)rH   r  r  r  r  s        rI   r  zPage.emulate_media5$  sI     z &&....(,*	 /  
 	
rY  rn  c                 |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Page.set_viewport_size

        In the case of multiple pages in a single browser, each page can have its own viewport size. However,
        `browser.new_context()` allows to set viewport size (and more) for all pages in the context at once.

        `page.set_viewport_size()` will resize the page. A lot of websites don't expect phones to change size, so you
        should set the viewport size before navigating to the page. `page.set_viewport_size()` will also reset
        `screen` size, use `browser.new_context()` with `screen` and `viewport` parameters if you need better
        control of these properties.

        **Usage**

        ```py
        page = await browser.new_page()
        await page.set_viewport_size({"width": 640, "height": 480})
        await page.goto("https://example.com")
        ```

        Parameters
        ----------
        viewport_size : {width: int, height: int}
        )viewportSizeN)r   rD   rE   set_viewport_size)rH   rn  s     rI   r  zPage.set_viewport_size{$  s6     0 &&..222NN
 	
Nr   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zKPage.bring_to_front

        Brings page to front (activates tab).
        N)r   rD   rE   bring_to_frontrG   s    rI   r  zPage.bring_to_front$  s,      &&T^^-J-J-L'LMM'Lrk   r  r  c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)a  Page.add_init_script

        Adds a script which would be evaluated in one of the following scenarios:
        - Whenever the page is navigated.
        - Whenever the child frame is attached or navigated. In this case, the script is evaluated in the context of the
          newly attached frame.

        The script is evaluated after the document was created but before any of its scripts were run. This is useful to
        amend the JavaScript environment, e.g. to seed `Math.random`.

        **Usage**

        An example of overriding `Math.random` before the page loads:

        ```py
        # in your playwright script, assuming the preload.js file is in same directory
        await page.add_init_script(path="./preload.js")
        ```

        **NOTE** The order of evaluation of multiple scripts installed via `browser_context.add_init_script()` and
        `page.add_init_script()` is not defined.

        Parameters
        ----------
        script : Union[str, None]
            Script to be evaluated in all pages in the browser context. Optional.
        path : Union[pathlib.Path, str, None]
            Path to the JavaScript file. If `path` is a relative path, then it is resolved relative to the current working
            directory. Optional.
        r  r   Nr   rD   rE   add_init_scriptrH   r  r   s      rI   r  zPage.add_init_script$  9     J &&..00T0JJ
 	
Jr"  timesr(  r6   r  c                   K   t        j                  | j                  j                  | j	                  |      | j	                  |      |       d{         S 7 w)a
  Page.route

        Routing provides the capability to modify network requests that are made by a page.

        Once routing is enabled, every request matching the url pattern will stall unless it's continued, fulfilled or
        aborted.

        **NOTE** The handler will only be called for the first url if the response is a redirect.

        **NOTE** `page.route()` will not intercept requests intercepted by Service Worker. See
        [this](https://github.com/microsoft/playwright/issues/1090) issue. We recommend disabling Service Workers when
        using request interception by setting `serviceWorkers` to `'block'`.

        **NOTE** `page.route()` will not intercept the first request of a popup page. Use
        `browser_context.route()` instead.

        **Usage**

        An example of a naive handler that aborts all image requests:

        ```py
        page = await browser.new_page()
        await page.route("**/*.{png,jpg,jpeg}", lambda route: route.abort())
        await page.goto("https://example.com")
        await browser.close()
        ```

        or the same snippet using a regex pattern instead:

        ```py
        page = await browser.new_page()
        await page.route(re.compile(r"(\.png$)|(\.jpg$)"), lambda route: route.abort())
        await page.goto("https://example.com")
        await browser.close()
        ```

        It is possible to examine the request to decide the route action. For example, mocking all requests that contain
        some post data, and leaving all other requests as is:

        ```py
        async def handle_route(route: Route):
          if ("my-string" in route.request.post_data):
            await route.fulfill(body="mocked-data")
          else:
            await route.continue_()
        await page.route("/api/**", handle_route)
        ```

        Page routes take precedence over browser context routes (set up with `browser_context.route()`) when request
        matches both handlers.

        To remove a route with its handler you can use `page.unroute()`.

        **NOTE** Enabling routing disables http cache.

        Parameters
        ----------
        url : Union[Callable[[str], bool], Pattern[str], str]
            A glob pattern, regex pattern or predicate receiving [URL] to match while routing. When a `baseURL` via the context
            options was provided and the passed URL is a path, it gets merged via the
            [`new URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor.
        handler : Union[Callable[[Route, Request], Any], Callable[[Route], Any]]
            handler function to route the request.
        times : Union[int, None]
            How often a route should be used. By default it will be used every time.
        rF   r(  r  Nr   rD   rE   router
  rH   rF   r(  r  s       rI   r  z
Page.route$  s\     Z &&..&&&&s+**73 '  
 	
   AAA	Ac                    K   t        j                  | j                  j                  | j	                  |      | j	                  |             d{         S 7 w)a  Page.unroute

        Removes a route created with `page.route()`. When `handler` is not specified, removes all routes for the
        `url`.

        Parameters
        ----------
        url : Union[Callable[[str], bool], Pattern[str], str]
            A glob pattern, regex pattern or predicate receiving [URL] to match while routing.
        handler : Union[Callable[[Route, Request], Any], Callable[[Route], Any], None]
            Optional handler function to route the request.
        rF   r(  Nr   rD   rE   unrouter
  rH   rF   r(  s      rI   r  zPage.unroute%  sW     . &&..((&&s+T5G5G5P )  
 	
   AAA	Ar8   c                    K   t        j                  | j                  j                  | j	                  |      | j	                  |             d{         S 7 w)ar  Page.route_web_socket

        This method allows to modify websocket connections that are made by the page.

        Note that only `WebSocket`s created after this method was called will be routed. It is recommended to call this
        method before navigating the page.

        **Usage**

        Below is an example of a simple mock that responds to a single message. See `WebSocketRoute` for more details and
        examples.

        ```py
        def message_handler(ws: WebSocketRoute, message: Union[str, bytes]):
          if message == "request":
            ws.send("response")

        def handler(ws: WebSocketRoute):
          ws.on_message(lambda message: message_handler(ws, message))

        await page.route_web_socket("/ws", handler)
        ```

        Parameters
        ----------
        url : Union[Callable[[str], bool], Pattern[str], str]
            Only WebSockets with the url matching this pattern will be routed. A string pattern can be relative to the
            `baseURL` context option.
        handler : Callable[[WebSocketRoute], Any]
            Handler function to route the WebSocket.
        r  Nr   rD   rE   route_web_socketr
  r  s      rI   r  zPage.route_web_socket:%  sX     J &&..11&&s+T5G5G5P 2  
 	
r  behaviorr  defaultignoreErrorswaitc                |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Page.unroute_all

        Removes all routes created with `page.route()` and `page.route_from_har()`.

        Parameters
        ----------
        behavior : Union["default", "ignoreErrors", "wait", None]
            Specifies whether to wait for already running handlers and what to do if they throw errors:
            - `'default'` - do not wait for current handler calls (if any) to finish, if unrouted handler throws, it may
              result in unhandled error
            - `'wait'` - wait for current handler calls (if any) to finish
            - `'ignoreErrors'` - do not wait for current handler calls (if any) to finish, all errors thrown by the handlers
              after unrouting are silently caught
        r  Nr   rD   rE   unroute_allrH   r  s     rI   r  zPage.unroute_alle%  6     ( &&..,,h,??
 	
?r   rF   	not_foundupdateupdate_contentupdate_modeharr  r   r   r  r  attachembedr  fullminimalc          
         K   t        j                  | j                  j                  ||||||       d{         S 7 w)a  Page.route_from_har

        If specified the network requests that are made in the page will be served from the HAR file. Read more about
        [Replaying from HAR](https://playwright.dev/python/docs/mock#replaying-from-har).

        Playwright will not serve requests intercepted by Service Worker from the HAR file. See
        [this](https://github.com/microsoft/playwright/issues/1090) issue. We recommend disabling Service Workers when
        using request interception by setting `serviceWorkers` to `'block'`.

        Parameters
        ----------
        har : Union[pathlib.Path, str]
            Path to a [HAR](http://www.softwareishard.com/blog/har-12-spec) file with prerecorded network data. If `path` is a
            relative path, then it is resolved relative to the current working directory.
        url : Union[Pattern[str], str, None]
            A glob pattern, regular expression or predicate to match the request URL. Only requests with URL matching the
            pattern will be served from the HAR file. If not specified, all requests are served from the HAR file.
        not_found : Union["abort", "fallback", None]
            - If set to 'abort' any request not found in the HAR file will be aborted.
            - If set to 'fallback' missing requests will be sent to the network.

            Defaults to abort.
        update : Union[bool, None]
            If specified, updates the given HAR with the actual network information instead of serving from file. The file is
            written to disk when `browser_context.close()` is called.
        update_content : Union["attach", "embed", None]
            Optional setting to control resource content management. If `attach` is specified, resources are persisted as
            separate files or entries in the ZIP archive. If `embed` is specified, content is stored inline the HAR file.
        update_mode : Union["full", "minimal", None]
            When set to `minimal`, only record information necessary for routing from HAR. This omits sizes, timing, page,
            cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to
            `minimal`.
        r  rF   notFoundr  updateContent
updateModeNr   rD   rE   route_from_harrH   r  rF   r  r  r  r  s          rI   r  zPage.route_from_har}%  O     X &&..//",& 0  	
 		
r  )r   r>  r   r  r  	full_pageclipr  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r!  r  r3   r  r  c                   K   t        j                  | j                  j                  |||||||||	|
t        j                  |      ||       d{         S 7 w)a  Page.screenshot

        Returns the buffer with the captured screenshot.

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        type : Union["jpeg", "png", None]
            Specify screenshot type, defaults to `png`.
        path : Union[pathlib.Path, str, None]
            The file path to save the image to. The screenshot type will be inferred from file extension. If `path` is a
            relative path, then it is resolved relative to the current working directory. If no path is provided, the image
            won't be saved to the disk.
        quality : Union[int, None]
            The quality of the image, between 0-100. Not applicable to `png` images.
        omit_background : Union[bool, None]
            Hides default white background and allows capturing screenshots with transparency. Not applicable to `jpeg` images.
            Defaults to `false`.
        full_page : Union[bool, None]
            When true, takes a screenshot of the full scrollable page, instead of the currently visible viewport. Defaults to
            `false`.
        clip : Union[{x: float, y: float, width: float, height: float}, None]
            An object which specifies clipping of the resulting image.
        animations : Union["allow", "disabled", None]
            When set to `"disabled"`, stops CSS animations, CSS transitions and Web Animations. Animations get different
            treatment depending on their duration:
            - finite animations are fast-forwarded to completion, so they'll fire `transitionend` event.
            - infinite animations are canceled to initial state, and then played over after the screenshot.

            Defaults to `"allow"` that leaves animations untouched.
        caret : Union["hide", "initial", None]
            When set to `"hide"`, screenshot will hide text caret. When set to `"initial"`, text caret behavior will not be
            changed.  Defaults to `"hide"`.
        scale : Union["css", "device", None]
            When set to `"css"`, screenshot will have a single pixel per each css pixel on the page. For high-dpi devices, this
            will keep screenshots small. Using `"device"` option will produce a single pixel per each device pixel, so
            screenshots of high-dpi devices will be twice as large or even larger.

            Defaults to `"device"`.
        mask : Union[Sequence[Locator], None]
            Specify locators that should be masked when the screenshot is taken. Masked elements will be overlaid with a pink
            box `#FF00FF` (customized by `maskColor`) that completely covers its bounding box.
        mask_color : Union[str, None]
            Specify the color of the overlay box for masked elements, in
            [CSS color format](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value). Default color is pink `#FF00FF`.
        style : Union[str, None]
            Text of the stylesheet to apply while making the screenshot. This is where you can hide dynamic elements, make
            elements invisible or change their properties to help you creating repeatable screenshots. This stylesheet pierces
            the Shadow DOM and applies to the inner frames.

        Returns
        -------
        bytes
        )r   r>  r   r  r&  fullPager  r  r  r  r  r'  r  Nr(  )rH   r   r>  r   r  r  r  r  r  r  r  r  r  r  s                 rI   r)  zPage.screenshot%  sm     T &&..++."%__T*$ ,  
 	
r  c                 x   K   t        j                  | j                  j                          d{         S 7 w)zcPage.title

        Returns the page's title.

        Returns
        -------
        str
        Nr  rG   s    rI   r  z
Page.title&  r  rk   )run_before_unloadr  r  r  c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)ae  Page.close

        If `runBeforeUnload` is `false`, does not run any unload handlers and waits for the page to be closed. If
        `runBeforeUnload` is `true` the method will run unload handlers, but will **not** wait for the page to close.

        By default, `page.close()` **does not** run `beforeunload` handlers.

        **NOTE** if `runBeforeUnload` is passed as true, a `beforeunload` dialog might be summoned and should be handled
        manually via `page.on('dialog')` event.

        Parameters
        ----------
        run_before_unload : Union[bool, None]
            Defaults to `false`. Whether to run the
            [before unload](https://developer.mozilla.org/en-US/docs/Web/Events/beforeunload) page handlers.
        reason : Union[str, None]
            The reason to be reported to the operations interrupted by the page closure.
        )runBeforeUnloadr  Nr!  )rH   r  r  s      rI   r   z
Page.close&  s:     2 &&..&&7HQW&XX
 	
Xr"  c                 \    t        j                  | j                  j                               S )zwPage.is_closed

        Indicates that the page has been closed.

        Returns
        -------
        bool
        r  rG   s    rI   r  zPage.is_closed9&  r  rK   )
r  r  r;  rI  rJ  r   r  r  r  rH  r  r  r  r;  rI  rK  rJ  r  r  r  c       
            K   t        j                  | j                  j                  |t        j                  |      |||||||	|
|       d{         S 7 w)a  Page.click

        This method clicks an element matching `selector` by performing the following steps:
        1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the matched element, unless `force` option is set. If
           the element is detached during the checks, the whole action is retried.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to click in the center of the element, or the specified `position`.
        1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        modifiers : Union[Sequence[Union["Alt", "Control", "ControlOrMeta", "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. "ControlOrMeta" resolves to
            "Control" on Windows and Linux and to "Meta" on macOS.
        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, None]
            Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0.
        button : Union["left", "middle", "right", None]
            Defaults to `left`.
        click_count : Union[int, None]
            defaults to 1. See [UIEvent.detail].
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        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`.
            Deprecated: This option will default to `true` in the future.
        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. Note that keyboard
            `modifiers` will be pressed regardless of `trial` to allow testing elements which are only visible when those keys
            are pressed.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        )r,  r  r  r;  rI  rQ  r   r  r  r  rH  Nr  )rH   r,  r  r  r;  rI  rJ  r   r  r  r  rH  s               rI   rU  z
Page.clickE&  sg     H &&..&&!!//)4!&) '  
 	
r+  r  c       	            K   t        j                  | j                  j                  |t        j                  |      |||||||	|

       d{         S 7 w)a/  Page.dblclick

        This method double clicks an element matching `selector` by performing the following steps:
        1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the matched element, unless `force` option is set. If
           the element is detached during the checks, the whole action is retried.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to double click in the center of the element, or the specified `position`.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        **NOTE** `page.dblclick()` dispatches two `click` events and a single `dblclick` event.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        modifiers : Union[Sequence[Union["Alt", "Control", "ControlOrMeta", "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. "ControlOrMeta" resolves to
            "Control" on Windows and Linux and to "Meta" on macOS.
        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, None]
            Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0.
        button : Union["left", "middle", "right", None]
            Defaults to `left`.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        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. Note that keyboard
            `modifiers` will be pressed regardless of `trial` to allow testing elements which are only visible when those keys
            are pressed.
        r  Nr  r  s              rI   rX  zPage.dblclick&  sd     @ &&..))!!//)4!) *  
 	
r  r  c                   K   t        j                  | j                  j                  |t        j                  |      ||||||       d{         S 7 w)aO  Page.tap

        This method taps an element matching `selector` by performing the following steps:
        1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the matched element, unless `force` option is set. If
           the element is detached during the checks, the whole action is retried.
        1. Scroll the element into view if needed.
        1. Use `page.touchscreen` to tap the center of the element, or the specified `position`.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        **NOTE** `page.tap()` the method will throw if `hasTouch` option of the browser context is false.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        modifiers : Union[Sequence[Union["Alt", "Control", "ControlOrMeta", "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. "ControlOrMeta" resolves to
            "Control" on Windows and Linux and to "Meta" on macOS.
        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, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        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. Note that keyboard
            `modifiers` will be pressed regardless of `trial` to allow testing elements which are only visible when those keys
            are pressed.
        r  Nr  r  s	            rI   rb  zPage.tap&  r  r  r  r  c          
         K   t        j                  | j                  j                  ||||||       d{         S 7 w)a#  Page.fill

        This method waits for an element matching `selector`, waits for [actionability](https://playwright.dev/python/docs/actionability) checks,
        focuses the element, fills it and triggers an `input` event after filling. Note that you can pass an empty string
        to clear the input field.

        If the target element is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an
        error. However, if the element is inside the `<label>` element that has an associated
        [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be filled
        instead.

        To send fine-grained keyboard events, use `locator.press_sequentially()`.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        value : str
            Value to fill for the `<input>`, `<textarea>` or `[contenteditable]` element.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        r  Nr  r  s          rI   r  z	Page.fill/'  r  r  r  r  r  r  r  c          	          t        j                  | j                  j                  ||||r|j                  nd|r|j                              S d            S )a	  Page.locator

        The method returns an element locator that can be used to perform actions on this page / frame. Locator is resolved
        to the element immediately before performing an action, so a series of actions on the same locator can in fact be
        performed on different DOM elements. That would happen if the DOM structure between those actions has changed.

        [Learn more about locators](https://playwright.dev/python/docs/locators).

        Parameters
        ----------
        selector : str
            A selector to use when resolving DOM element.
        has_text : Union[Pattern[str], str, None]
            Matches elements containing specified text somewhere inside, possibly in a child or a descendant element. When
            passed a [string], matching is case-insensitive and searches for a substring. For example, `"Playwright"` matches
            `<article><div>Playwright</div></article>`.
        has_not_text : Union[Pattern[str], str, None]
            Matches elements that do not contain specified text somewhere inside, possibly in a child or a descendant element.
            When passed a [string], matching is case-insensitive and searches for a substring.
        has : Union[Locator, None]
            Narrows down the results of the method to those which contain elements matching this relative locator. For example,
            `article` that has `text=Playwright` matches `<article><div>Playwright</div></article>`.

            Inner locator **must be relative** to the outer locator and is queried starting with the outer locator match, not
            the document root. For example, you can find `content` that has `div` in
            `<article><content><div>Playwright</div></content></article>`. However, looking for `content` that has `article
            div` will fail, because the inner locator must be relative and should not use any elements outside the `content`.

            Note that outer and inner locators must belong to the same frame. Inner locator must not contain `FrameLocator`s.
        has_not : Union[Locator, None]
            Matches elements that do not contain an element that matches an inner locator. Inner locator is queried against the
            outer one. For example, `article` that does not have `div` matches `<article><span>Playwright</span></article>`.

            Note that outer and inner locators must belong to the same frame. Inner locator must not contain `FrameLocator`s.

        Returns
        -------
        Locator
        Nr  r  r  s         rI   r  zPage.locatore'  sg    b   NN""! '%(CMMd,3w(( # 
 	
 :> # 
 	
rK   r  r   r  c                b    t        j                  | j                  j                  ||            S )a  Page.get_by_alt_text

        Allows locating elements by their alt text.

        **Usage**

        For example, this method will find the image by alt text "Playwright logo":

        ```html
        <img alt='Playwright logo'>
        ```

        ```py
        await page.get_by_alt_text("Playwright logo").click()
        ```

        Parameters
        ----------
        text : Union[Pattern[str], str]
            Text to locate the element for.
        exact : Union[bool, None]
            Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        r  r  r  s      rI   r  zPage.get_by_alt_text'  r  rK   c                b    t        j                  | j                  j                  ||            S )a  Page.get_by_label

        Allows locating input elements by the text of the associated `<label>` or `aria-labelledby` element, or by the
        `aria-label` attribute.

        **Usage**

        For example, this method will find inputs by label "Username" and "Password" in the following DOM:

        ```html
        <input aria-label="Username">
        <label for="password-input">Password:</label>
        <input id="password-input">
        ```

        ```py
        await page.get_by_label("Username").fill("john")
        await page.get_by_label("Password").fill("secret")
        ```

        Parameters
        ----------
        text : Union[Pattern[str], str]
            Text to locate the element for.
        exact : Union[bool, None]
            Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        r  r  r  s      rI   r  zPage.get_by_label'  r  rK   c                b    t        j                  | j                  j                  ||            S )ab  Page.get_by_placeholder

        Allows locating input elements by the placeholder text.

        **Usage**

        For example, consider the following DOM structure.

        ```html
        <input type="email" placeholder="name@example.com" />
        ```

        You can fill the input after locating it by the placeholder text:

        ```py
        await page.get_by_placeholder("name@example.com").fill("playwright@microsoft.com")
        ```

        Parameters
        ----------
        text : Union[Pattern[str], str]
            Text to locate the element for.
        exact : Union[bool, None]
            Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        r  r  r  s      rI   r  zPage.get_by_placeholder'  r  rK   r  r  r  r  r  r  r  r  r  r  c       	         r    t        j                  | j                  j                  |||||||||	|

            S )aP  Page.get_by_role

        Allows locating elements by their [ARIA role](https://www.w3.org/TR/wai-aria-1.2/#roles),
        [ARIA attributes](https://www.w3.org/TR/wai-aria-1.2/#aria-attributes) and
        [accessible name](https://w3c.github.io/accname/#dfn-accessible-name).

        **Usage**

        Consider the following DOM structure.

        ```html
        <h3>Sign up</h3>
        <label>
          <input type="checkbox" /> Subscribe
        </label>
        <br/>
        <button>Submit</button>
        ```

        You can locate each element by it's implicit role:

        ```py
        await expect(page.get_by_role("heading", name="Sign up")).to_be_visible()

        await page.get_by_role("checkbox", name="Subscribe").check()

        await page.get_by_role("button", name=re.compile("submit", re.IGNORECASE)).click()
        ```

        **Details**

        Role selector **does not replace** accessibility audits and conformance tests, but rather gives early feedback
        about the ARIA guidelines.

        Many html elements have an implicitly [defined role](https://w3c.github.io/html-aam/#html-element-role-mappings)
        that is recognized by the role selector. You can find all the
        [supported roles here](https://www.w3.org/TR/wai-aria-1.2/#role_definitions). ARIA guidelines **do not recommend**
        duplicating implicit roles and attributes by setting `role` and/or `aria-*` attributes to default values.

        Parameters
        ----------
        role : Union["alert", "alertdialog", "application", "article", "banner", "blockquote", "button", "caption", "cell", "checkbox", "code", "columnheader", "combobox", "complementary", "contentinfo", "definition", "deletion", "dialog", "directory", "document", "emphasis", "feed", "figure", "form", "generic", "grid", "gridcell", "group", "heading", "img", "insertion", "link", "list", "listbox", "listitem", "log", "main", "marquee", "math", "menu", "menubar", "menuitem", "menuitemcheckbox", "menuitemradio", "meter", "navigation", "none", "note", "option", "paragraph", "presentation", "progressbar", "radio", "radiogroup", "region", "row", "rowgroup", "rowheader", "scrollbar", "search", "searchbox", "separator", "slider", "spinbutton", "status", "strong", "subscript", "superscript", "switch", "tab", "table", "tablist", "tabpanel", "term", "textbox", "time", "timer", "toolbar", "tooltip", "tree", "treegrid", "treeitem"]
            Required aria role.
        checked : Union[bool, None]
            An attribute that is usually set by `aria-checked` or native `<input type=checkbox>` controls.

            Learn more about [`aria-checked`](https://www.w3.org/TR/wai-aria-1.2/#aria-checked).
        disabled : Union[bool, None]
            An attribute that is usually set by `aria-disabled` or `disabled`.

            **NOTE** Unlike most other attributes, `disabled` is inherited through the DOM hierarchy. Learn more about
            [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.2/#aria-disabled).

        expanded : Union[bool, None]
            An attribute that is usually set by `aria-expanded`.

            Learn more about [`aria-expanded`](https://www.w3.org/TR/wai-aria-1.2/#aria-expanded).
        include_hidden : Union[bool, None]
            Option that controls whether hidden elements are matched. By default, only non-hidden elements, as
            [defined by ARIA](https://www.w3.org/TR/wai-aria-1.2/#tree_exclusion), are matched by role selector.

            Learn more about [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.2/#aria-hidden).
        level : Union[int, None]
            A number attribute that is usually present for roles `heading`, `listitem`, `row`, `treeitem`, with default values
            for `<h1>-<h6>` elements.

            Learn more about [`aria-level`](https://www.w3.org/TR/wai-aria-1.2/#aria-level).
        name : Union[Pattern[str], str, None]
            Option to match the [accessible name](https://w3c.github.io/accname/#dfn-accessible-name). By default, matching is
            case-insensitive and searches for a substring, use `exact` to control this behavior.

            Learn more about [accessible name](https://w3c.github.io/accname/#dfn-accessible-name).
        pressed : Union[bool, None]
            An attribute that is usually set by `aria-pressed`.

            Learn more about [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.2/#aria-pressed).
        selected : Union[bool, None]
            An attribute that is usually set by `aria-selected`.

            Learn more about [`aria-selected`](https://www.w3.org/TR/wai-aria-1.2/#aria-selected).
        exact : Union[bool, None]
            Whether `name` is matched exactly: case-sensitive and whole-string. Defaults to false. Ignored when `name` is a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        rD  rF  rH  s              rI   rG  zPage.get_by_role(  rI  rK   rJ  c                 `    t        j                  | j                  j                  |            S )u  Page.get_by_test_id

        Locate element by the test id.

        **Usage**

        Consider the following DOM structure.

        ```html
        <button data-testid="directions">Itinéraire</button>
        ```

        You can locate the element by it's test id:

        ```py
        await page.get_by_test_id("directions").click()
        ```

        **Details**

        By default, the `data-testid` attribute is used as a test id. Use `selectors.set_test_id_attribute()` to
        configure a different test id attribute if necessary.

        Parameters
        ----------
        test_id : Union[Pattern[str], str]
            Id to locate the element by.

        Returns
        -------
        Locator
        rL  rN  rP  s     rI   rO  zPage.get_by_test_id(  rQ  rK   c                b    t        j                  | j                  j                  ||            S )a  Page.get_by_text

        Allows locating elements that contain given text.

        See also `locator.filter()` that allows to match by another criteria, like an accessible role, and then
        filter by the text content.

        **Usage**

        Consider the following DOM structure:

        ```html
        <div>Hello <span>world</span></div>
        <div>Hello</div>
        ```

        You can locate by text substring, exact string, or a regular expression:

        ```py
        # Matches <span>
        page.get_by_text("world")

        # Matches first <div>
        page.get_by_text("Hello world")

        # Matches second <div>
        page.get_by_text("Hello", exact=True)

        # Matches both <div>s
        page.get_by_text(re.compile("Hello"))

        # Matches second <div>
        page.get_by_text(re.compile("^hello$", re.IGNORECASE))
        ```

        **Details**

        Matching by text always normalizes whitespace, even with exact match. For example, it turns multiple spaces into
        one, turns line breaks into spaces and ignores leading and trailing whitespace.

        Input elements of the type `button` and `submit` are matched by their `value` instead of the text content. For
        example, locating by text `"Log in"` matches `<input type=button value="Log in">`.

        Parameters
        ----------
        text : Union[Pattern[str], str]
            Text to locate the element for.
        exact : Union[bool, None]
            Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        r  rS  r  s      rI   rT  zPage.get_by_text)  rU  rK   c                b    t        j                  | j                  j                  ||            S )a9  Page.get_by_title

        Allows locating elements by their title attribute.

        **Usage**

        Consider the following DOM structure.

        ```html
        <span title='Issues count'>25 issues</span>
        ```

        You can check the issues count after locating it by the title text:

        ```py
        await expect(page.get_by_title("Issues count")).to_have_text("25 issues")
        ```

        Parameters
        ----------
        text : Union[Pattern[str], str]
            Text to locate the element for.
        exact : Union[bool, None]
            Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        r  rW  r  s      rI   rX  zPage.get_by_titleF)  rY  rK   r2   c                 `    t        j                  | j                  j                  |            S )ax  Page.frame_locator

        When working with iframes, you can create a frame locator that will enter the iframe and allow selecting elements
        in that iframe.

        **Usage**

        Following snippet locates element with text "Submit" in the iframe with id `my-frame`, like `<iframe
        id="my-frame">`:

        ```py
        locator = page.frame_locator("#my-iframe").get_by_text("Submit")
        await locator.click()
        ```

        Parameters
        ----------
        selector : str
            A selector to use when resolving DOM element.

        Returns
        -------
        FrameLocator
        r.  r[  r1  s     rI   r\  zPage.frame_locatorm)  r]  rK   c                   K   t        j                  | j                  j                  |||       d{         S 7 w)a  Page.focus

        This method fetches an element with `selector` and focuses it. If there's no element matching `selector`, the
        method waits until a matching element appears in the DOM.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        r  Nr  r  s       rI   r  z
Page.focus)  r_  rH  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)a4  Page.text_content

        Returns `element.textContent`.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        Union[str, None]
        r  Nr  r  s       rI   r  zPage.text_content)  ra  rH  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)a#  Page.inner_text

        Returns `element.innerText`.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        str
        r  Nr  r  s       rI   r  zPage.inner_text)  r  rH  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)a#  Page.inner_html

        Returns `element.innerHTML`.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        str
        r  Nr  r  s       rI   r  zPage.inner_html)  r  rH  c                   K   t        j                  | j                  j                  ||||       d{         S 7 w)a{  Page.get_attribute

        Returns element attribute value.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        name : str
            Attribute name to get the value for.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        Union[str, None]
        re  Nr  rf  s        rI   r  zPage.get_attribute*  rg  rY  rh  c                   K   t        j                  | j                  j                  |t        j                  |      ||||||       d{         S 7 w)a
  Page.hover

        This method hovers over an element matching `selector` by performing the following steps:
        1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the matched element, unless `force` option is set. If
           the element is detached during the checks, the whole action is retried.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to hover over the center of the element, or the specified `position`.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        modifiers : Union[Sequence[Union["Alt", "Control", "ControlOrMeta", "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. "ControlOrMeta" resolves to
            "Control" on Windows and Linux and to "Meta" on macOS.
        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, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        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. Note that keyboard
            `modifiers` will be pressed regardless of `trial` to allow testing elements which are only visible when those keys
            are pressed.
        rj  Nr  rk  s	            rI   r  z
Page.hover3*  rl  r  )rm  rn  r  r  r   rH  r  ro  rp  rm  rn  c                   K   t        j                  | j                  j                  |||||||||		       d{         S 7 w)a	  Page.drag_and_drop

        This method drags the source element to the target element. It will first move to the source element, perform a
        `mousedown`, then move to the target element and perform a `mouseup`.

        **Usage**

        ```py
        await page.drag_and_drop("#source", "#target")
        # or specify exact positions relative to the top-left corners of the elements:
        await page.drag_and_drop(
          "#source",
          "#target",
          source_position={"x": 34, "y": 7},
          target_position={"x": 10, "y": 20}
        )
        ```

        Parameters
        ----------
        source : str
            A selector to search for an element to drag. If there are multiple elements satisfying the selector, the first will
            be used.
        target : str
            A selector to search for an element to drop onto. If there are multiple elements satisfying the selector, the first
            will be used.
        source_position : Union[{x: float, y: float}, None]
            Clicks on the source element at this point relative to the top-left corner of the element's padding box. If not
            specified, some visible point of the element is used.
        target_position : Union[{x: float, y: float}, None]
            Drops on the target element at this point relative to the top-left corner of the element's padding box. If not
            specified, some visible point of the element is used.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        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.
        )	ro  rp  rr  rs  r  r  r   rH  r  Nrt  )
rH   ro  rp  rm  rn  r  r  r   rH  r  s
             rI   ru  zPage.drag_and_dropx*  sX     z &&......) / 
 

 	

rv  )r  r  r  r   r  r  rH  r  r  r  c                $  K   t        j                  | j                  j                  |t        j                  |      t        j                  |      t        j                  |      t        j                  |      ||||		       d{         S 7 w)aj  Page.select_option

        This method waits for an element matching `selector`, waits for [actionability](https://playwright.dev/python/docs/actionability) checks, waits
        until all specified options are present in the `<select>` element and selects these options.

        If the target element is not a `<select>` element, this method throws an error. However, if the element is inside
        the `<label>` element that has an associated
        [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be used
        instead.

        Returns the array of option values that have been successfully selected.

        Triggers a `change` and `input` event once all the provided options have been selected.

        **Usage**

        ```py
        # Single selection matching the value or label
        await page.select_option("select#colors", "blue")
        # single selection matching the label
        await page.select_option("select#colors", label="blue")
        # multiple selection
        await page.select_option("select#colors", value=["red", "green", "blue"])
        ```

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        value : Union[Sequence[str], str, None]
            Options to select by value. If the `<select>` has the `multiple` attribute, all given options are selected,
            otherwise only the first option matching one of the passed options is selected. Optional.
        index : Union[Sequence[int], int, None]
            Options to select by index. Optional.
        label : Union[Sequence[str], str, None]
            Options to select by label. If the `<select>` 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, Sequence[ElementHandle], None]
            Option elements to select. Optional.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.

        Returns
        -------
        List[str]
        )	r,  r  r  r  r  r   r  r  rH  Nr  )
rH   r,  r  r  r  r  r   r  r  rH  s
             rI   r  zPage.select_option*  s|     P &&....!ooe,ooe,ooe,0) / 
 

 	

rx  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)a^  Page.input_value

        Returns `input.value` for the selected `<input>` or `<textarea>` or `<select>` element.

        Throws for non-input elements. However, if the element is inside the `<label>` element that has an associated
        [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), returns the value of the
        control.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        str
        r  Nr  r  s       rI   r  zPage.input_value+  rz  rH  )r   rH  r  r  c          	         K   t        j                  | j                  j                  |t        j                  |      |||       d{         S 7 w)a  Page.set_input_files

        Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then
        they are resolved relative to the current working directory. For empty array, clears the selected files. For inputs
        with a `[webkitdirectory]` attribute, only a single directory path is supported.

        This method expects `selector` to point to an
        [input element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input). However, if the element is inside
        the `<label>` element that has an associated
        [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), targets the control instead.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        files : Union[Sequence[Union[pathlib.Path, str]], Sequence[{name: str, mimeType: str, buffer: bytes}], pathlib.Path, str, {name: str, mimeType: str, buffer: bytes}]
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        )r,  r  r   rH  r  Nr  )rH   r,  r  r   rH  r  s         rI   r  zPage.set_input_files?+  sU     V &&..00!ooe,) 1  
 	
r  )r;  r   r  rH  c          
         K   t        j                  | j                  j                  ||||||       d{         S 7 w)aI  Page.type

        Sends a `keydown`, `keypress`/`input`, and `keyup` event for each character in the text. `page.type` can be used to
        send fine-grained keyboard events. To fill values in form fields, use `page.fill()`.

        To press a special key, like `Control` or `ArrowDown`, use `keyboard.press()`.

        **Usage**

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        text : str
            A text to type into a focused element.
        delay : Union[float, None]
            Time to wait between key presses in milliseconds. Defaults to 0.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        )r,  r   r;  r   r  rH  Nr=  )rH   r,  r   r;  r   r  rH  s          rI   r>  z	Page.typet+  sO     N &&..%%!) &  	
 		
r  r0  c          
         K   t        j                  | j                  j                  ||||||       d{         S 7 w)a  Page.press

        Focuses the element, and then uses `keyboard.down()` and `keyboard.up()`.

        `key` can specify the intended
        [keyboardEvent.key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) value or a single character
        to generate the text for. A superset of the `key` values can be found
        [here](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values). Examples of the keys are:

        `F1` - `F12`, `Digit0`- `Digit9`, `KeyA`- `KeyZ`, `Backquote`, `Minus`, `Equal`, `Backslash`, `Backspace`, `Tab`,
        `Delete`, `Escape`, `ArrowDown`, `End`, `Enter`, `Home`, `Insert`, `PageDown`, `PageUp`, `ArrowRight`, `ArrowUp`,
        etc.

        Following modification shortcuts are also supported: `Shift`, `Control`, `Alt`, `Meta`, `ShiftLeft`,
        `ControlOrMeta`. `ControlOrMeta` resolves to `Control` on Windows and Linux and to `Meta` on macOS.

        Holding down `Shift` will type the text that corresponds to the `key` in the upper case.

        If `key` is a single character, it is case-sensitive, so the values `a` and `A` will generate different respective
        texts.

        Shortcuts such as `key: "Control+o"`, `key: "Control++` or `key: "Control+Shift+T"` are supported as well. When
        specified with the modifier, modifier is pressed and being held while the subsequent key is being pressed.

        **Usage**

        ```py
        page = await browser.new_page()
        await page.goto("https://keycode.info")
        await page.press("body", "A")
        await page.screenshot(path="a.png")
        await page.press("body", "ArrowLeft")
        await page.screenshot(path="arrow_left.png")
        await page.press("body", "Shift+O")
        await page.screenshot(path="o.png")
        await browser.close()
        ```

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        key : str
            Name of the key to press or a character to generate, such as `ArrowLeft` or `a`.
        delay : Union[float, None]
            Time to wait between `keydown` and `keyup` in milliseconds. Defaults to 0.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        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`.
            Deprecated: This option will default to `true` in the future.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        )r,  r0  r;  r   r  rH  Nr@  )rH   r,  r0  r;  r   r  rH  s          rI   rA  z
Page.press+  sO     L &&..&&!) '  	
 		
r  r~  c                   K   t        j                  | j                  j                  |||||||       d{         S 7 w)a	  Page.check

        This method checks an element matching `selector` by performing the following steps:
        1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
        1. Ensure that matched element is a checkbox or a radio input. If not, this method throws. If the element is
           already checked, this method returns immediately.
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the matched element, unless `force` option is set. If
           the element is detached during the checks, the whole action is retried.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to click in the center of the element.
        1. Ensure that the element is now checked. If not, this method throws.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        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, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        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.
        r  Nr  r  s           rI   r  z
Page.check+  r  r  c                   K   t        j                  | j                  j                  |||||||       d{         S 7 w)a	  Page.uncheck

        This method unchecks an element matching `selector` by performing the following steps:
        1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
        1. Ensure that matched element is a checkbox or a radio input. If not, this method throws. If the element is
           already unchecked, this method returns immediately.
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the matched element, unless `force` option is set. If
           the element is detached during the checks, the whole action is retried.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to click in the center of the element.
        1. Ensure that the element is now unchecked. If not, this method throws.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        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, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        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.
        r  Nr
  r  s           rI   r  zPage.uncheck5,  r  r  c                 |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Page.wait_for_timeout

        Waits for the given `timeout` in milliseconds.

        Note that `page.waitForTimeout()` should only be used for debugging. Tests using the timer in production are going
        to be flaky. Use signals such as network events, selectors becoming visible and others instead.

        **Usage**

        ```py
        # wait for 1 second
        await page.wait_for_timeout(1000)
        ```

        Parameters
        ----------
        timeout : float
            A timeout to wait for
        r  Nr  r  s     rI   r  zPage.wait_for_timeouts,  s6     * &&..11'1BB
 	
Br   r  r  r  c                   K   t        j                  | j                  j                  |t        j                  |      ||       d{         S 7 w)a<  Page.wait_for_function

        Returns when the `expression` returns a truthy value. It resolves to a JSHandle of the truthy value.

        **Usage**

        The `page.wait_for_function()` can be used to observe viewport size change:

        ```py
        import asyncio
        from playwright.async_api import async_playwright, Playwright

        async def run(playwright: Playwright):
            webkit = playwright.webkit
            browser = await webkit.launch()
            page = await browser.new_page()
            await page.evaluate("window.x = 0; setTimeout(() => { window.x = 100 }, 1000);")
            await page.wait_for_function("() => window.x > 0")
            await browser.close()

        async def main():
            async with async_playwright() as playwright:
                await run(playwright)
        asyncio.run(main())
        ```

        To pass an argument to the predicate of `page.wait_for_function()` function:

        ```py
        selector = ".foo"
        await page.wait_for_function("selector => !!document.querySelector(selector)", selector)
        ```

        Parameters
        ----------
        expression : str
            JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the
            function is automatically invoked.
        arg : Union[Any, None]
            Optional argument to pass to `expression`.
        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()` or
            `page.set_default_timeout()` methods.
        polling : Union["raf", float, None]
            If `polling` is `'raf'`, then `expression` is constantly executed in `requestAnimationFrame` callback. If `polling`
            is a number, then it is treated as an interval in milliseconds at which the function would be executed. Defaults to
            `raf`.

        Returns
        -------
        JSHandle
        r  Nr  r  s        rI   r  zPage.wait_for_function,  r  r  c                 x   K   t        j                  | j                  j                          d{         S 7 w)a  Page.pause

        Pauses script execution. Playwright will stop executing the script and wait for the user to either press 'Resume'
        button in the page overlay or to call `playwright.resume()` in the DevTools console.

        User can inspect selectors or perform manual steps while paused. Resume will continue running the original script
        from the place it was paused.

        **NOTE** This method requires Playwright to be started in a headed mode, with a falsy `headless` option.
        N)r   rD   rE   pauserG   s    rI   r)  z
Page.pause,  s,      &&T^^-A-A-C'CDD'Crk   )r  display_header_footerheader_templatefooter_templateprint_background	landscapepage_rangesformatwidthheightprefer_css_page_sizemarginr   outlinetaggedr*  r+  r,  r-  r.  r/  r0  r1  r2  r3  r4  r5  r6  c                   K   t        j                  | j                  j                  |||||||||	|
|||||       d{         S 7 w)a  Page.pdf

        Returns the PDF buffer.

        `page.pdf()` generates a pdf of the page with `print` css media. To generate a pdf with `screen` media, call
        `page.emulate_media()` before calling `page.pdf()`:

        **NOTE** By default, `page.pdf()` generates a pdf with modified colors for printing. Use the
        [`-webkit-print-color-adjust`](https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-print-color-adjust)
        property to force rendering of exact colors.

        **Usage**

        ```py
        # generates a pdf with "screen" media type.
        await page.emulate_media(media="screen")
        await page.pdf(path="page.pdf")
        ```

        The `width`, `height`, and `margin` options accept values labeled with units. Unlabeled values are treated as
        pixels.

        A few examples:
        - `page.pdf({width: 100})` - prints with width set to 100 pixels
        - `page.pdf({width: '100px'})` - prints with width set to 100 pixels
        - `page.pdf({width: '10cm'})` - prints with width set to 10 centimeters.

        All possible units are:
        - `px` - pixel
        - `in` - inch
        - `cm` - centimeter
        - `mm` - millimeter

        The `format` options are:
        - `Letter`: 8.5in x 11in
        - `Legal`: 8.5in x 14in
        - `Tabloid`: 11in x 17in
        - `Ledger`: 17in x 11in
        - `A0`: 33.1in x 46.8in
        - `A1`: 23.4in x 33.1in
        - `A2`: 16.54in x 23.4in
        - `A3`: 11.7in x 16.54in
        - `A4`: 8.27in x 11.7in
        - `A5`: 5.83in x 8.27in
        - `A6`: 4.13in x 5.83in

        **NOTE** `headerTemplate` and `footerTemplate` markup have the following limitations: > 1. Script tags inside
        templates are not evaluated. > 2. Page styles are not visible inside templates.

        Parameters
        ----------
        scale : Union[float, None]
            Scale of the webpage rendering. Defaults to `1`. Scale amount must be between 0.1 and 2.
        display_header_footer : Union[bool, None]
            Display header and footer. Defaults to `false`.
        header_template : Union[str, None]
            HTML template for the print header. Should be valid HTML markup with following classes used to inject printing
            values into them:
            - `'date'` formatted print date
            - `'title'` document title
            - `'url'` document location
            - `'pageNumber'` current page number
            - `'totalPages'` total pages in the document
        footer_template : Union[str, None]
            HTML template for the print footer. Should use the same format as the `headerTemplate`.
        print_background : Union[bool, None]
            Print background graphics. Defaults to `false`.
        landscape : Union[bool, None]
            Paper orientation. Defaults to `false`.
        page_ranges : Union[str, None]
            Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which means print all pages.
        format : Union[str, None]
            Paper format. If set, takes priority over `width` or `height` options. Defaults to 'Letter'.
        width : Union[float, str, None]
            Paper width, accepts values labeled with units.
        height : Union[float, str, None]
            Paper height, accepts values labeled with units.
        prefer_css_page_size : Union[bool, None]
            Give any CSS `@page` size declared in the page priority over what is declared in `width` and `height` or `format`
            options. Defaults to `false`, which will scale the content to fit the paper size.
        margin : Union[{top: Union[float, str, None], right: Union[float, str, None], bottom: Union[float, str, None], left: Union[float, str, None]}, None]
            Paper margins, defaults to none.
        path : Union[pathlib.Path, str, None]
            The file path to save the PDF to. If `path` is a relative path, then it is resolved relative to the current working
            directory. If no path is provided, the PDF won't be saved to the disk.
        outline : Union[bool, None]
            Whether or not to embed the document outline into the PDF. Defaults to `false`.
        tagged : Union[bool, None]
            Whether or not to generate tagged (accessible) PDF. Defaults to `false`.

        Returns
        -------
        bytes
        )r  displayHeaderFooterheaderTemplatefooterTemplateprintBackgroundr.  
pageRangesr0  r1  r2  preferCSSPageSizer4  r   r5  r6  N)r   rD   rE   pdf)rH   r  r*  r+  r,  r-  r.  r/  r0  r1  r2  r3  r4  r   r5  r6  s                   rI   r>  zPage.pdf,  sj     d &&..$$$9.. 0#&"6 %  
 	
s   =A
A 	A
c                    t        | j                  j                  || j                  |      |      j                        S )a  Page.expect_event

        Waits for event to fire and passes its value into the predicate function. Returns when the predicate returns truthy
        value. Will throw an error if the page is closed before the event is fired. Returns the event data value.

        **Usage**

        ```py
        async with page.expect_event("framenavigated") as event_info:
            await page.get_by_role("button")
        frame = await event_info.value
        ```

        Parameters
        ----------
        event : str
            Event name, same one typically passed into `*.on(event)`.
        predicate : Union[Callable, None]
            Receives the event data and resolves to truthy value when the waiting should resolve.
        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()`.

        Returns
        -------
        EventContextManager
        r  r  r  s       rI   r	  zPage.expect_eventg-  @    F (NN''t'9'9)'Dg ( f
 	
rK   c                    t        | j                  j                  | j                  |      |      j                        S )a  Page.expect_console_message

        Performs action and waits for a `ConsoleMessage` to be logged by in the page. If predicate is provided, it passes
        `ConsoleMessage` value into the `predicate` function and waits for `predicate(message)` to return a truthy value.
        Will throw an error if the page is closed before the `page.on('console')` event is fired.

        Parameters
        ----------
        predicate : Union[Callable[[ConsoleMessage], bool], None]
            Receives the `ConsoleMessage` object and resolves to truthy value when the waiting should resolve.
        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()`.

        Returns
        -------
        EventContextManager[ConsoleMessage]
        r  r   r   rE   expect_console_messager
  r  rH   r  r   s      rI   rD  zPage.expect_console_message-  s=    2 (NN11,,Y7 2 f
 	
rK   c                    t        | j                  j                  | j                  |      |      j                        S )aU  Page.expect_download

        Performs action and waits for a new `Download`. If predicate is provided, it passes `Download` value into the
        `predicate` function and waits for `predicate(download)` to return a truthy value. Will throw an error if the page
        is closed before the download event is fired.

        Parameters
        ----------
        predicate : Union[Callable[[Download], bool], None]
            Receives the `Download` object and resolves to truthy value when the waiting should resolve.
        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()`.

        Returns
        -------
        EventContextManager[Download]
        rB  )r   rE   expect_downloadr
  r  rE  s      rI   rG  zPage.expect_download-  s=    2 (NN**,,Y7 + f
 	
rK   c                    t        | j                  j                  | j                  |      |      j                        S )ax  Page.expect_file_chooser

        Performs action and waits for a new `FileChooser` to be created. If predicate is provided, it passes `FileChooser`
        value into the `predicate` function and waits for `predicate(fileChooser)` to return a truthy value. Will throw an
        error if the page is closed before the file chooser is opened.

        Parameters
        ----------
        predicate : Union[Callable[[FileChooser], bool], None]
            Receives the `FileChooser` object and resolves to truthy value when the waiting should resolve.
        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()`.

        Returns
        -------
        EventContextManager[FileChooser]
        rB  )r   rE   expect_file_chooserr
  r  rE  s      rI   rI  zPage.expect_file_chooser-  s=    2 (NN..,,Y7 / f
 	
rK   rz  c                    t        | j                  j                  | j                  |      ||      j                        S )a
  Page.expect_navigation

        Waits for the main frame navigation and returns the main resource response. In case of multiple redirects, the
        navigation will resolve with the response of the last redirect. In case of navigation to a different anchor or
        navigation due to History API usage, the navigation will resolve with `null`.

        **Usage**

        This resolves when the page navigates to a new URL or reloads. It is useful for when you run code which will
        indirectly cause the page to navigate. e.g. The click target has an `onclick` handler that triggers navigation from
        a `setTimeout`. Consider this example:

        ```py
        async with page.expect_navigation():
            # This action triggers the navigation after a timeout.
            await page.get_by_text("Navigate after timeout").click()
        # Resolves after navigation has finished
        ```

        **NOTE** Usage of the [History API](https://developer.mozilla.org/en-US/docs/Web/API/History_API) to change the URL
        is considered a navigation.

        Parameters
        ----------
        url : Union[Callable[[str], bool], Pattern[str], str, None]
            A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if
            the parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly
            equal to the string.
        wait_until : Union["commit", "domcontentloaded", "load", "networkidle", None]
            When to consider operation succeeded, defaults to `load`. Events can be either:
            - `'domcontentloaded'` - consider operation to be finished when the `DOMContentLoaded` event is fired.
            - `'load'` - consider operation to be finished when the `load` event is fired.
            - `'networkidle'` - **DISCOURAGED** consider operation to be finished when there are no network connections for
              at least `500` ms. Don't use this method for testing, rely on web assertions to assess readiness instead.
            - `'commit'` - consider operation to be finished when network response is received and the document started
              loading.
        timeout : Union[float, None]
            Maximum operation 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_navigation_timeout()`,
            `browser_context.set_default_timeout()`, `page.set_default_navigation_timeout()` or
            `page.set_default_timeout()` methods.

        Returns
        -------
        EventContextManager[Response]
        r|  r}  r  s       rI   r~  zPage.expect_navigation-  s@    t (NN,,&&s+z7 - f
 	
rK   c                    t        | j                  j                  | j                  |      |      j                        S )a:  Page.expect_popup

        Performs action and waits for a popup `Page`. If predicate is provided, it passes [Popup] value into the
        `predicate` function and waits for `predicate(page)` to return a truthy value. Will throw an error if the page is
        closed before the popup event is fired.

        Parameters
        ----------
        predicate : Union[Callable[[Page], bool], None]
            Receives the `Page` object and resolves to truthy value when the waiting should resolve.
        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()`.

        Returns
        -------
        EventContextManager[Page]
        rB  )r   rE   expect_popupr
  r  rE  s      rI   rL  zPage.expect_popup-.  s=    2 (NN'',,Y7 ( f
 	
rK   url_or_predicatec                    t        | j                  j                  | j                  |      |      j                        S )a  Page.expect_request

        Waits for the matching request and returns it. See [waiting for event](https://playwright.dev/python/docs/events#waiting-for-event) for more
        details about events.

        **Usage**

        ```py
        async with page.expect_request("http://example.com/resource") as first:
            await page.get_by_text("trigger request").click()
        first_request = await first.value

        # or with a lambda
        async with page.expect_request(lambda request: request.url == "http://example.com" and request.method == "get") as second:
            await page.get_by_text("trigger request").click()
        second_request = await second.value
        ```

        Parameters
        ----------
        url_or_predicate : Union[Callable[[Request], bool], Pattern[str], str]
            Request URL string, regex or predicate receiving `Request` object. When a `baseURL` via the context options was
            provided and the passed URL is a path, it gets merged via the
            [`new URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor.
        timeout : Union[float, None]
            Maximum wait time in milliseconds, defaults to 30 seconds, pass `0` to disable the timeout. The default value can
            be changed by using the `page.set_default_timeout()` method.

        Returns
        -------
        EventContextManager[Request]
        urlOrPredicater   )r   rE   expect_requestr
  r  rH   rM  r   s      rI   rQ  zPage.expect_requestL.  s?    R (NN))#112BCW * f
 	
rK   c                    t        | j                  j                  | j                  |      |      j                        S )az  Page.expect_request_finished

        Performs action and waits for a `Request` to finish loading. If predicate is provided, it passes `Request` value
        into the `predicate` function and waits for `predicate(request)` to return a truthy value. Will throw an error if
        the page is closed before the `page.on('request_finished')` event is fired.

        Parameters
        ----------
        predicate : Union[Callable[[Request], bool], None]
            Receives the `Request` object and resolves to truthy value when the waiting should resolve.
        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()`.

        Returns
        -------
        EventContextManager[Request]
        rB  )r   rE   expect_request_finishedr
  r  rE  s      rI   rT  zPage.expect_request_finished{.  s=    2 (NN22,,Y7 3 f
 	
rK   c                    t        | j                  j                  | j                  |      |      j                        S )a"  Page.expect_response

        Returns the matched response. See [waiting for event](https://playwright.dev/python/docs/events#waiting-for-event) for more details about
        events.

        **Usage**

        ```py
        async with page.expect_response("https://example.com/resource") as response_info:
            await page.get_by_text("trigger response").click()
        response = await response_info.value
        return response.ok

        # or with a lambda
        async with page.expect_response(lambda response: response.url == "https://example.com" and response.status == 200 and response.request.method == "get") as response_info:
            await page.get_by_text("trigger response").click()
        response = await response_info.value
        return response.ok
        ```

        Parameters
        ----------
        url_or_predicate : Union[Callable[[Response], bool], Pattern[str], str]
            Request URL string, regex or predicate receiving `Response` object. When a `baseURL` via the context options was
            provided and the passed URL is a path, it gets merged via the
            [`new URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor.
        timeout : Union[float, None]
            Maximum wait time in milliseconds, defaults to 30 seconds, pass `0` to disable the timeout. The default value can
            be changed by using the `browser_context.set_default_timeout()` or `page.set_default_timeout()` methods.

        Returns
        -------
        EventContextManager[Response]
        rO  )r   rE   expect_responser
  r  rR  s      rI   rV  zPage.expect_response.  s?    V (NN**#112BCW + f
 	
rK   c                    t        | j                  j                  | j                  |      |      j                        S )a]  Page.expect_websocket

        Performs action and waits for a new `WebSocket`. If predicate is provided, it passes `WebSocket` value into the
        `predicate` function and waits for `predicate(webSocket)` to return a truthy value. Will throw an error if the page
        is closed before the WebSocket event is fired.

        Parameters
        ----------
        predicate : Union[Callable[[WebSocket], bool], None]
            Receives the `WebSocket` object and resolves to truthy value when the waiting should resolve.
        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()`.

        Returns
        -------
        EventContextManager[WebSocket]
        rB  )r   rE   expect_websocketr
  r  rE  s      rI   rX  zPage.expect_websocket.  s=    2 (NN++,,Y7 , f
 	
rK   c                    t        | j                  j                  | j                  |      |      j                        S )aE  Page.expect_worker

        Performs action and waits for a new `Worker`. If predicate is provided, it passes `Worker` value into the
        `predicate` function and waits for `predicate(worker)` to return a truthy value. Will throw an error if the page is
        closed before the worker event is fired.

        Parameters
        ----------
        predicate : Union[Callable[[Worker], bool], None]
            Receives the `Worker` object and resolves to truthy value when the waiting should resolve.
        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()`.

        Returns
        -------
        EventContextManager[Worker]
        rB  )r   rE   expect_workerr
  r  rE  s      rI   rZ  zPage.expect_worker.  s=    2 (NN((,,Y7 ) f
 	
rK   c                   K   t        j                  | j                  j                  ||||||||       d{         S 7 w)a
  Page.set_checked

        This method checks or unchecks an element matching `selector` by performing the following steps:
        1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
        1. Ensure that matched element is a checkbox or a radio input. If not, this method throws.
        1. If the element already has the right checked state, this method returns immediately.
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the matched element, unless `force` option is set. If
           the element is detached during the checks, the whole action is retried.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to click in the center of the element.
        1. Ensure that the element is now checked or unchecked. If not, this method throws.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        Parameters
        ----------
        selector : str
            A selector to search for an element. If there are multiple elements satisfying the selector, the first will be
            used.
        checked : bool
            Whether to check or uncheck the checkbox.
        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, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        strict : Union[bool, None]
            When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
            element, the call throws an exception.
        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.
        r  Nr   r  s	            rI   r  zPage.set_checked	/  r  r  )r  r  r  c                   K   t        j                  | j                  j                  |j                  | j	                  |      ||       d{         S 7 w)aL  Page.add_locator_handler

        When testing a web page, sometimes unexpected overlays like a "Sign up" dialog appear and block actions you want to
        automate, e.g. clicking a button. These overlays don't always show up in the same way or at the same time, making
        them tricky to handle in automated tests.

        This method lets you set up a special function, called a handler, that activates when it detects that overlay is
        visible. The handler's job is to remove the overlay, allowing your test to continue as if the overlay wasn't there.

        Things to keep in mind:
        - When an overlay is shown predictably, we recommend explicitly waiting for it in your test and dismissing it as
          a part of your normal test flow, instead of using `page.add_locator_handler()`.
        - Playwright checks for the overlay every time before executing or retrying an action that requires an
          [actionability check](https://playwright.dev/python/docs/actionability), or before performing an auto-waiting assertion check. When overlay
          is visible, Playwright calls the handler first, and then proceeds with the action/assertion. Note that the
          handler is only called when you perform an action/assertion - if the overlay becomes visible but you don't
          perform any actions, the handler will not be triggered.
        - After executing the handler, Playwright will ensure that overlay that triggered the handler is not visible
          anymore. You can opt-out of this behavior with `noWaitAfter`.
        - The execution time of the handler counts towards the timeout of the action/assertion that executed the handler.
          If your handler takes too long, it might cause timeouts.
        - You can register multiple handlers. However, only a single handler will be running at a time. Make sure the
          actions within a handler don't depend on another handler.

        **NOTE** Running the handler will alter your page state mid-test. For example it will change the currently focused
        element and move the mouse. Make sure that actions that run after the handler are self-contained and do not rely on
        the focus and mouse state being unchanged.

        For example, consider a test that calls `locator.focus()` followed by `keyboard.press()`. If your
        handler clicks a button between these two actions, the focused element most likely will be wrong, and key press
        will happen on the unexpected element. Use `locator.press()` instead to avoid this problem.

        Another example is a series of mouse actions, where `mouse.move()` is followed by `mouse.down()`.
        Again, when the handler runs between these two actions, the mouse position will be wrong during the mouse down.
        Prefer self-contained actions like `locator.click()` that do not rely on the state being unchanged by a
        handler.

        **Usage**

        An example that closes a "Sign up to the newsletter" dialog when it appears:

        ```py
        # Setup the handler.
        def handler():
          page.get_by_role("button", name="No thanks").click()
        page.add_locator_handler(page.get_by_text("Sign up to the newsletter"), handler)

        # Write the test as usual.
        page.goto("https://example.com")
        page.get_by_role("button", name="Start here").click()
        ```

        An example that skips the "Confirm your security details" page when it is shown:

        ```py
        # Setup the handler.
        def handler():
          page.get_by_role("button", name="Remind me later").click()
        page.add_locator_handler(page.get_by_text("Confirm your security details"), handler)

        # Write the test as usual.
        page.goto("https://example.com")
        page.get_by_role("button", name="Start here").click()
        ```

        An example with a custom callback on every actionability check. It uses a `<body>` locator that is always visible,
        so the handler is called before every actionability check. It is important to specify `noWaitAfter`, because the
        handler does not hide the `<body>` element.

        ```py
        # Setup the handler.
        def handler():
          page.evaluate("window.removeObstructionsForTestIfNeeded()")
        page.add_locator_handler(page.locator("body"), handler, no_wait_after=True)

        # Write the test as usual.
        page.goto("https://example.com")
        page.get_by_role("button", name="Start here").click()
        ```

        Handler takes the original locator as an argument. You can also automatically remove the handler after a number of
        invocations by setting `times`:

        ```py
        def handler(locator):
          locator.click()
        page.add_locator_handler(page.get_by_label("Close"), handler, times=1)
        ```

        Parameters
        ----------
        locator : Locator
            Locator that triggers the handler.
        handler : Union[Callable[[Locator], Any], Callable[[], Any]]
            Function that should be run once `locator` appears. This function should get rid of the element that blocks actions
            like click.
        no_wait_after : Union[bool, None]
            By default, after calling the handler Playwright will wait until the overlay becomes hidden, and only then
            Playwright will continue with the action/assertion that triggered the handler. This option allows to opt-out of
            this behavior, so that overlay can stay visible after the handler has run.
        times : Union[int, None]
            Specifies the maximum number of times this handler should be called. Unlimited by default.
        )r  r(  r  r  N)r   rD   rE   add_locator_handlerr
  )rH   r  r(  r  r  s        rI   r]  zPage.add_locator_handlerK/  sZ     d &&..44))**73)	 5  
 	
r  c                    K   t        j                  | j                  j                  |j                         d{         S 7 w)a  Page.remove_locator_handler

        Removes all locator handlers added by `page.add_locator_handler()` for a specific locator.

        Parameters
        ----------
        locator : Locator
            Locator passed to `page.add_locator_handler()`.
        r  N)r   rD   rE   remove_locator_handlerrH   r  s     rI   r`  zPage.remove_locator_handler/  s<      &&..77@Q@Q7RR
 	
Rs   9AA	A)rA   r   )rA   r.   )rA   r/   )rA   r0   )rA   r    rA   r#   r   rA   r*   r   r   )r  r3   rA   N)r   r   r   r   r  r   r  r   r   r   r  r   r   r\  r^  r`  rb  rd  rg  ri  r   rk  rF   r   r   rn  rp  r   rs  ru  r  r   rZ   r   ry  r|  r0  r4  rN  r  r  r  r  r  r  r   r  r   ri  rn  r9  r=  r   r   r  r  r  r  r  r  r  rx  r  r  r  r  r  r  r  r  r  r  r  r   r  r  r  r  r  r   rO  r   r)  r  r   r  r   rU  rX  rb  r  r  r  r  r  rG  rO  rT  rX  r\  r  r  r  r  r  r  ru  r  r  r   r  r>  rA  r  r  r  r  r)  r   r>  r   r	  rD  rG  rI  r~  rL  rQ  rT  rV  rX  rZ  r  r]  r`  r  r  s   @rI   r9   r9   o  sQ1   __)w) ??F8%QQR) 
	) ) __y! ?? LL
 
 2 __w ??F8%QQR 
	 , __$x $ ??H:'SST$ 
	$ $( __)* ??F8%QQR 
	  __'z"' ??J<)UUV' 
	' ' __}% ??OII
 
  __-'- ??G9&RRS- 
	- - __-'- ??G9&RRS- 
	- - __;'(; ??G9&RRS; 
	; ; __v ??F8%QQR 
	  __{# ??G9&RRS 
	   __#w# ??F8%QQR# 
	# #2 __<y!< ??I;(TTU< 
	< < __' ??I;(TTU 
	 " __N()N ??I;(TTUN 
	N N __Bz"B ??J<)UUVB 
	B B __5{#5 ??K=*VVW5 
	5 5 __x  ??H:'SST 
	 ,, ??3V-=-=d-CT-I JJK, 
	, __)w) ??F8%QQR) 
	) ) __y! ?? LL
 
 2 __w ??F8%QQR 
	 , __$x $ ??H:'SST$ 
	$ $( __)* ??F8%QQR 
	  __'z"' ??J<)UUV' 
	' ' __}% ??OII
 
  __-'- ??G9&RRS- 
	- - __-'- ??G9&RRS- 
	- - __;'(; ??G9&RRS; 
	; ; __v ??F8%QQR 
	  __{# ??G9&RRS 
	   __#w# ??F8%QQR# 
	# #2 __<y!< ??I;(TTU< 
	< < __' ??I;(TTU 
	 " __N()N ??I;(TTUN 
	N N __Bz"B ??J<)UUVB 
	B B __5{#5 ??K=*VVW5 
	5 5 __x  ??H:'SST 
	 .. ??3V-=-=d-CT-I JJK. 
	. ? ? : : 7 7 = = 	9 	9 	7 	7 	< 	< 	=G, 	= 	= ;S ; ; Hv|< H H >X. > > 9 9 	@vw/ 	@ 	@
Ifoof5 
I &* 
  
ooc" 
 __LLfnnS16??C5$;3OOP
	 
 
	! 
D
e 
 
2
5 
T 
$ AE

(.(=
		)
2
 
_9U 
0 +/ (,J
J
 '	J

 ?@
J
 %J
 
	)J
` )-*. 
 
 %	 

 ' 
 
 
L )-*. 
 
 %	 

 ' 
 
 
L )-*. 
 
 %	 

 ' 
 
 
L )-*. 
 
 %	 

 ' 
 
 
L )-*. 
 
 %	 

 ' 
 
 
L )-*. 
 
 %	 

 ' 
 
 
L 48	E
 +/(,E
E
 E
 OOFKK0	E
 'E
 %E
 
E
P CG8
8
$*OOFJJ$?8
	8
v CG4
4
$*OOFJJ$?4
	4
t ,0	1
 )-1
1
 1
 __VZZ(	1
 %1
 
1
h RV$
$
),$
39??6::3N$
	$
R %)AE(,%)#
 __S!#
 oofll3+<=>	#

 %#
 ooc"#
 
#
P %)AE(,
 __S!
 oofll3+<=>	

 %
 

><
# <
 <
T <
F )-C
C
 //C

 %C
 
C
J
FKKS4I 
d 
&
Gs 
G  +/ %
%
 '	%

 OOGH
%
 
%
V +/ (,@
@
 '	@

 OOGH
@
 %@
 
	$@
J +/ %
 '%
 OOGH
	%
 
	$%
V 	5
 +/5
=>
5
 '5
 
5
z *.-
\\#v~~c2FOOSE4K4PPQ-
 OOGH
	-
 '-
 
-
d 7;"

 +/"
"
 ??6??3"

 '"
 
"
N +/ &
 '&
 OOGH
	&
 
	$&
V +/ &
 '&
 OOGH
	&
 
	$&
PJ2 FJ  LPD
 w'@ABD
 oo<=
	D
 56
D
 w/G'HID
 
D
L
\ 
d 
8N (,'
 BF	'
$'
 oofll3+<=>	'

 
'
b '+S
\\#v~~c2FOOSE4K4PPQS
 OOWIvzz12OOWi0&**<=?
S
 s#S
 
S
z 
\\#v~~c2FOOSE4K4PPQ
 LL	6:: 56) 4fjj @AC

 

:)
\\#v~~c2FOOSE4K4PPQ)
 "2!3VZZ!?@)
 
	)
\ QU
 //'*K"LM
 
	
8 HLCG(,FJCG5
\\',,+,5
 __V\\#v~~c/B*BCD	5

 ??7+>#?@5
 %5
 0A(BC5
 __W->%?@5
 
5
t +/8<AE(,15+/+/DH=A;?<@+/&*Z
 'Z
 oogm45	Z

 oofll3+<=>Z
 %Z
  .Z
 ??4(Z
 ooi(Z
 OOG,?$@AZ
 w'89:Z
 w78Z
 oofooi89Z
 OOC(Z
 s#Z
  
!Z
x
ES 
E 48'+	
 "??40
 $	

 

:
C4 
C$ .2(,FJ,0*.'+/3'+(,R
R
 ??OOG$VWX
	R
 //(+R
 u%R
 (A BCR
 __S)R
 'R
 t$R
 t,R
 t$R
 %R
  
!R
t .2(,FJ*.'+/3(,'+M
M
 ??OOG$VWX
	M
 //(+M
 u%M
 (A BCM
 'M
 t$M
 t,M
 %M
 t$M
 
M
j .2*.'+/3(,'+E
E
 ??OOG$VWX
	E
 //(+E
 'E
 t$E
 t,E
 %E
 t$E
 
E
X +//3(,'+4
4
 4

 '4
 t,4
 %4
 t$4
 
4
t MQPT*..29
9
 //&,,sFNN34G/G"HI	9

 oofll3s8K3K&LM9
 __Y'9
 +9
 
9
~ (,	#Yll3s 334#Y t$	#Y
 
#YR (,	'Vll3s 334'V t$	'V
 
'VZ (,	'
ll3s 334'
 t$	'

 
'
@ *.*.*.04&*HL)-*.'+G
QS
G
n &oG
p //$'qG
r //$'sG
t -uG
v s#wG
x oofll3s0C+CDEyG
z &{G
| //$'}G
~ t$G
@ 
AG
R$P||C)<$<=$P	$PT (,	>Ull3s 334>U t$	>U
 
>UH (,	%Vll3s 334%V t$	%V
 
%VNRc Rn R@ )-*.

 %	

 '
 

F )-*. 
 
 %	 

 ' 
 
	 
L )-*. 
 
 %	 

 ' 
 
 
L )-*. 
 
 %	 

 ' 
 
 
N )-*.#
#
 #

 %#
 '#
 
	#
V .2*./3'+(,'+C
C
 ??OOG$VWX
	C
 //(+C
 'C
 t,C
 t$C
 %C
 t$C
 
C
T 6:59'+/3*.(,'+I
I
 I

  2I
  2I
 t$I
 t,I
 'I
 %I
 t$I
 
I
\ KOT

 KOJN *./3'+(,T
T
 v||C1E,EFGT

 v||C1E,EFGT
 v||C1E,EFGT
 LL&///*JJK
T
 'T
 t,T
 t$T
 %T
 
S	T
t )-*.$
$
 %	$

 '$
 
$
b +/(,/33
3
 ||LLOOFLLgll):;<OOK(	*
3
 '3
 %3
 t,3
 
3
t )-*./3(,0
0
 0

 u%0
 '0
 t,0
 %0
 
0
n )-*./3(,O
O
 O

 u%O
 'O
 t,O
 %O
 
O
j /3*.'+/3(,'+<
<
 //(+	<

 '<
 t$<
 t,<
 %<
 t$<
 
<
D /3*.'+/3(,'+<
<
 //(+	<

 '<
 t$<
 t,<
 %<
 t$<
 
<
|
e 
 
: ,0*.HLE
E
 __VZZ(	E

 'E
 eWU^.C!DEE
 
E
NE" )-7;040426+/,0'+;?<@6:.2AE)-(,#D
 u%D
  &t4	D

  -D
  -D
 !//$/D
 ??4(D
 __S)D
 $D
 v||CJ78D
 S%Z 89D
 %ood3D
 
+D
 oofll3+<=>D
  &!D
" %#D
$ 
%D
R 7;'

 +/'
'
 ??6??3'

 ''
 
"'
V QU
 +/	
??6??4D3Et3K#LM
 '	

 
""2	3
B KO
 +/	
??6??J<3E#FG
 '	

 
"*	-
B NR
 +/	
??6??M?D3H#IJ
 '	

 
"-	0
H  *.>
 __LLfnnS16??C5$;3OOP
>
 OOGH
>
 '>
 
"*	->
D GK
 +/	
??6??F8T>#BC
 '	

 
"&	)
J +/-
 ,,$fooyk46G&HH
-
 '-
 
")	,-
b JN
 +/	
??6??I;3D#EF
 '	

 
")	,
J +//
 ,,$foozlD6H&II
/
 '/
 
"*	-/
f LP
 +/	
??6??K=$3F#GH
 '	

 
"+	.
B IM
 +/	
??6??H:t3C#DE
 '	

 
"(	+
H /3*.'+/3(,'+@
@
 @

 //(+@
 '@
 t$@
 t,@
 %@
 t$@
 
@
R 04&*y
y
 OOYK34foob&**n6UU
y
 t,y
 s#y
 
y
v
 
rK   r9   c                   N    e Zd Zedej
                  d   fd       Zedd       Zy)r?   rA   r9   c                 T    t        j                  | j                  j                        S )zWebError.page

        The page that produced this unhandled exception, if any.

        Returns
        -------
        Union[Page, None]
        r  rG   s    rI   rY  zWebError.page/  r  rK   c                 T    t        j                  | j                  j                        S )zpWebError.error

        Unhandled error that was thrown.

        Returns
        -------
        Error
        )r   rY   rE   errorrG   s    rI   rg  zWebError.error/  r   rK   N)rA   r(   )r   r   r   r   r   r   rY  rg  r   rK   rI   r?   r?   /  s8    	?foof- 	? 	? 	7 	7rK   r?   c                       e Zd Zej                  ded   dej                  dgdf   ddfd       Zej                  ded	   dej                  d gdf   ddfd
       Zej                  ded   dej                  dgdf   ddfd       Zej                  ded   dej                  dgdf   ddfd       Zej                  ded   dej                  dgdf   ddfd       Zej                  ded   dej                  dgdf   ddfd       Zej                  ded   dej                  dgdf   ddfd       Zej                  ded   dej                  dgdf   ddfd       Zej                  ded   dej                  dgdf   ddfd       Zej                  ded   dej                  dgdf   ddfd       Zej                  ded    dej                  d!gdf   ddfd"       Zdedej                  d#ej                  ej                  d   df   f   ddf fd$Zej                  ded   dej                  dgdf   ddfd%       Zej                  ded	   dej                  d gdf   ddfd&       Zej                  ded   dej                  dgdf   ddfd'       Zej                  ded   dej                  dgdf   ddfd(       Zej                  ded   dej                  dgdf   ddfd)       Zej                  ded   dej                  dgdf   ddfd*       Zej                  ded   dej                  dgdf   ddfd+       Zej                  ded   dej                  dgdf   ddfd,       Zej                  ded   dej                  dgdf   ddfd-       Zej                  ded   dej                  dgdf   ddfd.       Zej                  ded    dej                  d!gdf   ddfd/       Zdedej                  d#ej                  ej                  d   df   f   ddf fd0Zedej                  d   fd1       Zedej                  d2   fd3       Zedej                  d   fd4       Zedej                  d!   fd5       Zed}d6       Zed~d7       Zedd8       Zd9eddfd:Zd9eddfd;Zdd<Z	 dd=ej                  ej                  eej4                  e   f      dej                  e   fd>Zd?ej4                  e   ddfd@ZddddAdBej                  ej                  eej>                  e   f      dCej                  ej                  eej>                  e   f      dDej                  ej                  eej>                  e   f      ddfdEZ ddFdGej4                  e   dHej                  e   ddfdIZ!ddJZ"	 ddKej                  e#   ddfdLZ$dMejJ                  eef   ddfdNZ&dOe'ddfdPZ(	 dddQdRej                  e   dDej                  ej                  ee)jT                  f      ddfdSZ+ddTdBedUej                  dVej                  e'   ddfdWZ,dBedUej                  ddfdXZ-ddYdZej                  eej>                  e   ej                  ege'f   f   d[ej                  ej                  d\gej\                  f   ej                  d\dgej\                  f   f   d]ej                  e/   ddfd^Z0	 ddZej                  eej>                  e   ej                  ege'f   f   d[ej                  ej                  ej                  d\gej\                  f   ej                  d\dgej\                  f   f      ddfd_Z1dZej                  eej>                  e   ej                  ege'f   f   d[ej                  d`gej\                  f   ddfdaZ2ddbdcej                  edd      ddfdeZ3ddddddfdgej                  e)jT                  ef   dZej                  ej                  eej>                  e   f      dhej                  edi      djej                  e'   dkej                  edl      dmej                  edn      ddfdoZ4	 dddpdedqej                  ej                     d9ej                  e   de5fdrZ6ddsdtej                  e   ddfduZ7ddQdDej                  ej                  ee)jT                  f      de8fdvZ9	 dddpdedqej                  ej                     d9ej                  e   dej\                  fdwZ:	 dddpdqej                  ej                  dge'f      d9ej                  e   de5d   fdxZ;	 dddpdqej                  ej                  dge'f      d9ej                  e   de5d   fdyZ<dej                  dz   dd{fd|Z= xZ>S )r    r   backgroundpager   r9   r   rA   Nc                      yz
        **NOTE** Only works with Chromium browser's persistent context.

        Emitted when new background page is created in the context.

        ```py
        background_page = await context.wait_for_event("backgroundpage")
        ```Nr   r   s      rI   r   zBrowserContext.on/  r   rK   r   c                      yz
        Emitted when Browser context gets closed. This might happen because of one of the following:
        - Browser context is closed.
        - Browser application is closed or crashed.
        - The `browser.close()` method was called.Nr   r   s      rI   r   zBrowserContext.on0  r   rK   r  r$   c                      ya?  
        Emitted when JavaScript within the page calls one of console API methods, e.g. `console.log` or `console.dir`.

        The arguments passed into `console.log` and the page are available on the `ConsoleMessage` event handler argument.

        **Usage**

        ```py
        async def print_args(msg):
            values = []
            for arg in msg.args:
                values.append(await arg.json_value())
            print(values)

        context.on("console", print_args)
        await page.evaluate("console.log('hello', 5, { foo: 'bar' })")
        ```Nr   r   s      rI   r   zBrowserContext.on0  r   rK   r  r%   c                      ya  
        Emitted when a JavaScript dialog appears, such as `alert`, `prompt`, `confirm` or `beforeunload`. Listener **must**
        either `dialog.accept()` or `dialog.dismiss()` the dialog - otherwise the page will
        [freeze](https://developer.mozilla.org/en-US/docs/Web/JavaScript/EventLoop#never_blocking) waiting for the dialog,
        and actions like click will never finish.

        **Usage**

        ```python
        context.on("dialog", lambda dialog: dialog.accept())
        ```

        **NOTE** When no `page.on('dialog')` or `browser_context.on('dialog')` listeners are present, all dialogs are
        automatically dismissed.Nr   r   s      rI   r   zBrowserContext.on00  r   rK   rY  c                      ya  
        The event is emitted when a new Page is created in the BrowserContext. The page may still be loading. The event
        will also fire for popup pages. See also `page.on('popup')` to receive events about popups relevant to a
        specific page.

        The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a
        popup with `window.open('http://example.com')`, this event will fire when the network request to
        "http://example.com" is done and its response has started loading in the popup. If you would like to route/listen
        to this network request, use `browser_context.route()` and `browser_context.on('request')` respectively
        instead of similar methods on the `Page`.

        ```py
        async with context.expect_page() as page_info:
            await page.get_by_text("open new page").click(),
        page = await page_info.value
        print(await page.evaluate("location.href"))
        ```

        **NOTE** Use `page.wait_for_load_state()` to wait until the page gets to a particular state (you should not
        need it in most cases).Nr   r   s      rI   r   zBrowserContext.onE0  r   rK   weberrorr?   c                      yz
        Emitted when exception is unhandled in any of the pages in this context. To listen for errors from a particular
        page, use `page.on('page_error')` instead.Nr   r   s      rI   r   zBrowserContext.on`0  r   rK   r   r4   c                      ya=  
        Emitted when a request is issued from any pages created through this context. The [request] object is read-only. To
        only listen for requests from a particular page, use `page.on('request')`.

        In order to intercept and mutate requests, see `browser_context.route()` or `page.route()`.
        Nr   r   s      rI   r   zBrowserContext.onj0  r   rK   r8  c                      ya  
        Emitted when a request fails, for example by timing out. To only listen for failed requests from a particular page,
        use `page.on('request_failed')`.

        **NOTE** HTTP Error responses, such as 404 or 503, are still successful responses from HTTP standpoint, so request
        will complete with `browser_context.on('request_finished')` event and not with
        `browser_context.on('request_failed')`.Nr   r   s      rI   r   zBrowserContext.onw0  r   rK   r;  c                      ya)  
        Emitted when a request finishes successfully after downloading the response body. For a successful response, the
        sequence of events is `request`, `response` and `requestfinished`. To listen for successful requests from a
        particular page, use `page.on('request_finished')`.Nr   r   s      rI   r   zBrowserContext.on0  r   rK   rm   r5   c                      ya  
        Emitted when [response] status and headers are received for a request. For a successful response, the sequence of
        events is `request`, `response` and `requestfinished`. To listen for response events from a particular page, use
        `page.on('response')`.Nr   r   s      rI   r   zBrowserContext.on0  r   rK   serviceworkerr:   c                      yz
        **NOTE** Service workers are only supported on Chromium-based browsers.

        Emitted when new service worker is created in the context.Nr   r   s      rI   r   zBrowserContext.on0  r   rK   .c                 &    t         |   ||      S r   r   r   s      rI   r   zBrowserContext.on0  r   rK   c                      yrk  r   r   s      rI   r   zBrowserContext.once0  r   rK   c                      yrm  r   r   s      rI   r   zBrowserContext.once0  r   rK   c                      yro  r   r   s      rI   r   zBrowserContext.once0  r   rK   c                      yrq  r   r   s      rI   r   zBrowserContext.once0  r   rK   c                      yrs  r   r   s      rI   r   zBrowserContext.once0  r   rK   c                      yrv  r   r   s      rI   r   zBrowserContext.once1  r   rK   c                      yrx  r   r   s      rI   r   zBrowserContext.once1  r   rK   c                      yrz  r   r   s      rI   r   zBrowserContext.once+1  r   rK   c                      yr|  r   r   s      rI   r   zBrowserContext.once91  r   rK   c                      yr~  r   r   s      rI   r   zBrowserContext.onceD1  r   rK   c                      yr  r   r   s      rI   r   zBrowserContext.onceO1  r   rK   c                 &    t         |   ||      S r   r  r   s      rI   r   zBrowserContext.onceZ1  r  rK   c                 T    t        j                  | j                  j                        S )zBrowserContext.pages

        Returns all open pages in the context.

        Returns
        -------
        List[Page]
        )r   rv   rE   pagesrG   s    rI   r  zBrowserContext.pagesa1  s     %%dnn&:&:;;rK   r   c                 T    t        j                  | j                  j                        S )zBrowserContext.browser

        Returns the browser instance of the context. If it was launched as a persistent context null gets returned.

        Returns
        -------
        Union[Browser, None]
        )r   r\   rE   browserrG   s    rI   r  zBrowserContext.browserm1  s     ))$..*@*@AArK   c                 T    t        j                  | j                  j                        S )zBrowserContext.background_pages

        **NOTE** Background pages are only supported on Chromium-based browsers.

        All existing background pages in the context.

        Returns
        -------
        List[Page]
        )r   rv   rE   background_pagesrG   s    rI   r  zBrowserContext.background_pagesy1  s     %%dnn&E&EFFrK   c                 T    t        j                  | j                  j                        S )zBrowserContext.service_workers

        **NOTE** Service workers are only supported on Chromium-based browsers.

        All existing service workers in the context.

        Returns
        -------
        List[Worker]
        )r   rv   rE   service_workersrG   s    rI   r  zBrowserContext.service_workers1  s     %%dnn&D&DEErK   c                 T    t        j                  | j                  j                        S )zPBrowserContext.tracing

        Returns
        -------
        Tracing
        )r   rY   rE   tracingrG   s    rI   r  zBrowserContext.tracing1  s       !7!788rK   c                 T    t        j                  | j                  j                        S )zBrowserContext.request

        API testing helper associated with this context. Requests made with this API will use context cookies.

        Returns
        -------
        APIRequestContext
        r   rG   s    rI   r   zBrowserContext.request1  r   rK   c                 T    t        j                  | j                  j                        S )zBrowserContext.clock

        Playwright has ability to mock clock and passage of time.

        Returns
        -------
        Clock
        rf  rG   s    rI   rg  zBrowserContext.clock1  r   rK   r   c                 `    t        j                  | j                  j                  |            S )ay  BrowserContext.set_default_navigation_timeout

        This setting will change the default maximum navigation time for the following methods and related shortcuts:
        - `page.go_back()`
        - `page.go_forward()`
        - `page.goto()`
        - `page.reload()`
        - `page.set_content()`
        - `page.expect_navigation()`

        **NOTE** `page.set_default_navigation_timeout()` and `page.set_default_timeout()` take priority over
        `browser_context.set_default_navigation_timeout()`.

        Parameters
        ----------
        timeout : float
            Maximum navigation time in milliseconds
        r  rx  r  s     rI   ry  z-BrowserContext.set_default_navigation_timeout1  s,    ( &&NN99'9J
 	
rK   c                 `    t        j                  | j                  j                  |            S )a  BrowserContext.set_default_timeout

        This setting will change the default maximum time for all the methods accepting `timeout` option.

        **NOTE** `page.set_default_navigation_timeout()`, `page.set_default_timeout()` and
        `browser_context.set_default_navigation_timeout()` take priority over
        `browser_context.set_default_timeout()`.

        Parameters
        ----------
        timeout : float
            Maximum time in milliseconds. Pass `0` to disable timeout.
        r  r{  r  s     rI   r|  z"BrowserContext.set_default_timeout1  s,     &&NN..w.?
 	
rK   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zBrowserContext.new_page

        Creates a new page in the browser context.

        Returns
        -------
        Page
        N)r   rY   rE   new_pagerG   s    rI   r  zBrowserContext.new_page1  s,        t~~'>'>'@!@AA!@rk   urlsc                    K   t        j                  | j                  j                  t        j                  |             d{         S 7 w)a  BrowserContext.cookies

        If no URLs are specified, this method returns all cookies. If URLs are specified, only cookies that affect those
        URLs are returned.

        Parameters
        ----------
        urls : Union[Sequence[str], str, None]
            Optional list of URLs.

        Returns
        -------
        List[{name: str, value: str, domain: str, path: str, expires: float, httpOnly: bool, secure: bool, sameSite: Union["Lax", "None", "Strict"]}]
        )r  N)r   rv   rE   cookiesr   )rH   r  s     rI   r  zBrowserContext.cookies1  s?     $ %%..((good.C(DD
 	
Dr  r  c                    K   t        j                  | j                  j                  t        j                  |             d{         S 7 w)ay  BrowserContext.add_cookies

        Adds cookies into this browser context. All pages within this context will have these cookies installed. Cookies
        can be obtained via `browser_context.cookies()`.

        **Usage**

        ```py
        await browser_context.add_cookies([cookie_object1, cookie_object2])
        ```

        Parameters
        ----------
        cookies : Sequence[{name: str, value: str, url: Union[str, None], domain: Union[str, None], path: Union[str, None], expires: Union[float, None], httpOnly: Union[bool, None], secure: Union[bool, None], sameSite: Union["Lax", "None", "Strict", None]}]
        )r  N)r   rD   rE   add_cookiesr   )rH   r  s     rI   r  zBrowserContext.add_cookies2  s?     " &&..,,W__W5M,NN
 	
Nr  ry   domainr   ry   r  r   c                   K   t        j                  | j                  j                  |||       d{         S 7 w)a  BrowserContext.clear_cookies

        Removes cookies from context. Accepts optional filter.

        **Usage**

        ```py
        await context.clear_cookies()
        await context.clear_cookies(name="session-id")
        await context.clear_cookies(domain="my-origin.com")
        await context.clear_cookies(path="/api/v1")
        await context.clear_cookies(name="session-id", domain="my-origin.com")
        ```

        Parameters
        ----------
        name : Union[Pattern[str], str, None]
            Only removes cookies with the given name.
        domain : Union[Pattern[str], str, None]
            Only removes cookies with the given domain.
        path : Union[Pattern[str], str, None]
            Only removes cookies with the given path.
        r  N)r   rD   rE   clear_cookies)rH   ry   r  r   s       rI   r  zBrowserContext.clear_cookies2  s:     > &&....Dd.SS
 	
SrH  )originpermissionsr  c                   K   t        j                  | j                  j                  t        j                  |      |       d{         S 7 w)a  BrowserContext.grant_permissions

        Grants specified permissions to the browser context. Only grants corresponding permissions to the given origin if
        specified.

        Parameters
        ----------
        permissions : Sequence[str]
            A list of permissions to grant.

            **NOTE** Supported permissions differ between browsers, and even between different versions of the same browser.
            Any permission may stop working after an update.

            Here are some permissions that may be supported by some browsers:
            - `'accelerometer'`
            - `'ambient-light-sensor'`
            - `'background-sync'`
            - `'camera'`
            - `'clipboard-read'`
            - `'clipboard-write'`
            - `'geolocation'`
            - `'gyroscope'`
            - `'magnetometer'`
            - `'microphone'`
            - `'midi-sysex'` (system-exclusive midi)
            - `'midi'`
            - `'notifications'`
            - `'payment-handler'`
            - `'storage-access'`
        origin : Union[str, None]
            The [origin] to grant permissions to, e.g. "https://example.com".
        )r  r  N)r   rD   rE   grant_permissionsr   )rH   r  r  s      rI   r  z BrowserContext.grant_permissions<2  sK     H &&..22#OOK8 3  
 	
rk  c                 x   K   t        j                  | j                  j                          d{         S 7 w)a=  BrowserContext.clear_permissions

        Clears all permission overrides for the browser context.

        **Usage**

        ```py
        context = await browser.new_context()
        await context.grant_permissions(["clipboard-read"])
        # do stuff ..
        context.clear_permissions()
        ```
        N)r   rD   rE   clear_permissionsrG   s    rI   r  z BrowserContext.clear_permissionsf2  s,      &&T^^-M-M-O'OPP'Ork   geolocationc                 |   K   t        j                  | j                  j                  |       d{         S 7 w)a<  BrowserContext.set_geolocation

        Sets the context's geolocation. Passing `null` or `undefined` emulates position unavailable.

        **Usage**

        ```py
        await browser_context.set_geolocation({"latitude": 59.95, "longitude": 30.31667})
        ```

        **NOTE** Consider using `browser_context.grant_permissions()` to grant permissions for the browser context
        pages to read its geolocation.

        Parameters
        ----------
        geolocation : Union[{latitude: float, longitude: float, accuracy: Union[float, None]}, None]
        )r  N)r   rD   rE   set_geolocation)rH   r  s     rI   r  zBrowserContext.set_geolocationw2  s6     * &&..00[0II
 	
Ir   rg   c                    K   t        j                  | j                  j                  t        j                  |             d{         S 7 w)a  BrowserContext.set_extra_http_headers

        The extra HTTP headers will be sent with every request initiated by any page in the context. These headers are
        merged with page-specific extra HTTP headers set with `page.set_extra_http_headers()`. If page overrides a
        particular header, page-specific header value will be used instead of the browser context header value.

        **NOTE** `browser_context.set_extra_http_headers()` does not guarantee the order of headers in the outgoing
        requests.

        Parameters
        ----------
        headers : Dict[str, str]
            An object containing additional HTTP headers to be sent with every request. All header values must be strings.
        r  Nr  r  s     rI   r  z%BrowserContext.set_extra_http_headers2  sH       &&..770 8  
 	
r  offlinec                 |   K   t        j                  | j                  j                  |       d{         S 7 w)zBrowserContext.set_offline

        Parameters
        ----------
        offline : bool
            Whether to emulate network being offline for the browser context.
        )r  N)r   rD   rE   set_offline)rH   r  s     rI   r  zBrowserContext.set_offline2  s6      &&..,,W,==
 	
=r   r  r  c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)aY  BrowserContext.add_init_script

        Adds a script which would be evaluated in one of the following scenarios:
        - Whenever a page is created in the browser context or is navigated.
        - Whenever a child frame is attached or navigated in any page in the browser context. In this case, the script is
          evaluated in the context of the newly attached frame.

        The script is evaluated after the document was created but before any of its scripts were run. This is useful to
        amend the JavaScript environment, e.g. to seed `Math.random`.

        **Usage**

        An example of overriding `Math.random` before the page loads:

        ```py
        # in your playwright script, assuming the preload.js file is in same directory.
        await browser_context.add_init_script(path="preload.js")
        ```

        **NOTE** The order of evaluation of multiple scripts installed via `browser_context.add_init_script()` and
        `page.add_init_script()` is not defined.

        Parameters
        ----------
        script : Union[str, None]
            Script to be evaluated in all pages in the browser context. Optional.
        path : Union[pathlib.Path, str, None]
            Path to the JavaScript file. If `path` is a relative path, then it is resolved relative to the current working
            directory. Optional.
        r  Nr  r  s      rI   r  zBrowserContext.add_init_script2  r  r"  r  r  r  c                   K   t        j                  | j                  j                  || j	                  |      |       d{         S 7 w)a  BrowserContext.expose_binding

        The method adds a function called `name` on the `window` object of every frame in every page in the context. When
        called, the function executes `callback` and returns a [Promise] which resolves to the return value of `callback`.
        If the `callback` returns a [Promise], it will be awaited.

        The first argument of the `callback` function contains information about the caller: `{ browserContext:
        BrowserContext, page: Page, frame: Frame }`.

        See `page.expose_binding()` for page-only version.

        **Usage**

        An example of exposing page URL to all frames in all pages in the context:

        ```py
        import asyncio
        from playwright.async_api import async_playwright, Playwright

        async def run(playwright: Playwright):
            webkit = playwright.webkit
            browser = await webkit.launch(headless=False)
            context = await browser.new_context()
            await context.expose_binding("pageURL", lambda source: source["page"].url)
            page = await context.new_page()
            await page.set_content("""
            <script>
              async function onClick() {
                document.querySelector('div').textContent = await window.pageURL();
              }
            </script>
            <button onclick="onClick()">Click me</button>
            <div></div>
            """)
            await page.get_by_role("button").click()

        async def main():
            async with async_playwright() as playwright:
                await run(playwright)
        asyncio.run(main())
        ```

        Parameters
        ----------
        name : str
            Name of the function on the window object.
        callback : Callable
            Callback function that will be called in the Playwright's context.
        handle : Union[bool, None]
            Whether to pass the argument as a handle, instead of passing by value. When passing a handle, only one argument is
            supported. When passing by value, multiple arguments are supported.
            Deprecated: This option will be removed in the future.
        r  Nr  r  s       rI   r  zBrowserContext.expose_binding2  sO     z &&..//D$6$6x$@ 0  
 	
r  c                    K   t        j                  | j                  j                  || j	                  |             d{         S 7 w)a]  BrowserContext.expose_function

        The method adds a function called `name` on the `window` object of every frame in every page in the context. When
        called, the function executes `callback` and returns a [Promise] which resolves to the return value of `callback`.

        If the `callback` returns a [Promise], it will be awaited.

        See `page.expose_function()` for page-only version.

        **Usage**

        An example of adding a `sha256` function to all pages in the context:

        ```py
        import asyncio
        import hashlib
        from playwright.async_api import async_playwright, Playwright

        def sha256(text: str) -> str:
            m = hashlib.sha256()
            m.update(bytes(text, "utf8"))
            return m.hexdigest()

        async def run(playwright: Playwright):
            webkit = playwright.webkit
            browser = await webkit.launch(headless=False)
            context = await browser.new_context()
            await context.expose_function("sha256", sha256)
            page = await context.new_page()
            await page.set_content("""
                <script>
                  async function onClick() {
                    document.querySelector('div').textContent = await window.sha256('PLAYWRIGHT');
                  }
                </script>
                <button onclick="onClick()">Click me</button>
                <div></div>
            """)
            await page.get_by_role("button").click()

        async def main():
            async with async_playwright() as playwright:
                await run(playwright)
        asyncio.run(main())
        ```

        Parameters
        ----------
        name : str
            Name of the function on the window object.
        callback : Callable
            Callback function that will be called in the Playwright's context.
        r  Nr  r  s      rI   r  zBrowserContext.expose_function3  sM     n &&..00D$6$6x$@ 1  
 	
r  r  rF   r(  r6   r  c                   K   t        j                  | j                  j                  | j	                  |      | j	                  |      |       d{         S 7 w)a
  BrowserContext.route

        Routing provides the capability to modify network requests that are made by any page in the browser context. Once
        route is enabled, every request matching the url pattern will stall unless it's continued, fulfilled or aborted.

        **NOTE** `browser_context.route()` will not intercept requests intercepted by Service Worker. See
        [this](https://github.com/microsoft/playwright/issues/1090) issue. We recommend disabling Service Workers when
        using request interception by setting `serviceWorkers` to `'block'`.

        **Usage**

        An example of a naive handler that aborts all image requests:

        ```py
        context = await browser.new_context()
        page = await context.new_page()
        await context.route("**/*.{png,jpg,jpeg}", lambda route: route.abort())
        await page.goto("https://example.com")
        await browser.close()
        ```

        or the same snippet using a regex pattern instead:

        ```py
        context = await browser.new_context()
        page = await context.new_page()
        await context.route(re.compile(r"(\.png$)|(\.jpg$)"), lambda route: route.abort())
        page = await context.new_page()
        await page.goto("https://example.com")
        await browser.close()
        ```

        It is possible to examine the request to decide the route action. For example, mocking all requests that contain
        some post data, and leaving all other requests as is:

        ```py
        async def handle_route(route: Route):
          if ("my-string" in route.request.post_data):
            await route.fulfill(body="mocked-data")
          else:
            await route.continue_()
        await context.route("/api/**", handle_route)
        ```

        Page routes (set up with `page.route()`) take precedence over browser context routes when request matches
        both handlers.

        To remove a route with its handler you can use `browser_context.unroute()`.

        **NOTE** Enabling routing disables http cache.

        Parameters
        ----------
        url : Union[Callable[[str], bool], Pattern[str], str]
            A glob pattern, regex pattern or predicate receiving [URL] to match while routing. When a `baseURL` via the context
            options was provided and the passed URL is a path, it gets merged via the
            [`new URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor.
        handler : Union[Callable[[Route, Request], Any], Callable[[Route], Any]]
            handler function to route the request.
        times : Union[int, None]
            How often a route should be used. By default it will be used every time.
        r  Nr  r  s       rI   r  zBrowserContext.route\3  s\     R &&..&&&&s+**73 '  
 	
r  c                    K   t        j                  | j                  j                  | j	                  |      | j	                  |             d{         S 7 w)aV  BrowserContext.unroute

        Removes a route created with `browser_context.route()`. When `handler` is not specified, removes all routes
        for the `url`.

        Parameters
        ----------
        url : Union[Callable[[str], bool], Pattern[str], str]
            A glob pattern, regex pattern or predicate receiving [URL] used to register a routing with
            `browser_context.route()`.
        handler : Union[Callable[[Route, Request], Any], Callable[[Route], Any], None]
            Optional handler function used to register a routing with `browser_context.route()`.
        r  Nr  r  s      rI   r  zBrowserContext.unroute3  sW     0 &&..((&&s+T5G5G5P )  
 	
r  r8   c                    K   t        j                  | j                  j                  | j	                  |      | j	                  |             d{         S 7 w)a  BrowserContext.route_web_socket

        This method allows to modify websocket connections that are made by any page in the browser context.

        Note that only `WebSocket`s created after this method was called will be routed. It is recommended to call this
        method before creating any pages.

        **Usage**

        Below is an example of a simple handler that blocks some websocket messages. See `WebSocketRoute` for more details
        and examples.

        ```py
        def message_handler(ws: WebSocketRoute, message: Union[str, bytes]):
          if message == "to-be-blocked":
            return
          ws.send(message)

        async def handler(ws: WebSocketRoute):
          ws.route_send(lambda message: message_handler(ws, message))
          await ws.connect()

        await context.route_web_socket("/ws", handler)
        ```

        Parameters
        ----------
        url : Union[Callable[[str], bool], Pattern[str], str]
            Only WebSockets with the url matching this pattern will be routed. A string pattern can be relative to the
            `baseURL` context option.
        handler : Callable[[WebSocketRoute], Any]
            Handler function to route the WebSocket.
        r  Nr  r  s      rI   r  zBrowserContext.route_web_socket3  sX     N &&..11&&s+T5G5G5P 2  
 	
r  r  r  r  c                |   K   t        j                  | j                  j                  |       d{         S 7 w)a  BrowserContext.unroute_all

        Removes all routes created with `browser_context.route()` and `browser_context.route_from_har()`.

        Parameters
        ----------
        behavior : Union["default", "ignoreErrors", "wait", None]
            Specifies whether to wait for already running handlers and what to do if they throw errors:
            - `'default'` - do not wait for current handler calls (if any) to finish, if unrouted handler throws, it may
              result in unhandled error
            - `'wait'` - wait for current handler calls (if any) to finish
            - `'ignoreErrors'` - do not wait for current handler calls (if any) to finish, all errors thrown by the handlers
              after unrouting are silently caught
        r  Nr  r  s     rI   r  zBrowserContext.unroute_all3  r  r   r  r  r  r  r  r  r  r  r  c          
         K   t        j                  | j                  j                  ||||||       d{         S 7 w)a  BrowserContext.route_from_har

        If specified the network requests that are made in the context will be served from the HAR file. Read more about
        [Replaying from HAR](https://playwright.dev/python/docs/mock#replaying-from-har).

        Playwright will not serve requests intercepted by Service Worker from the HAR file. See
        [this](https://github.com/microsoft/playwright/issues/1090) issue. We recommend disabling Service Workers when
        using request interception by setting `serviceWorkers` to `'block'`.

        Parameters
        ----------
        har : Union[pathlib.Path, str]
            Path to a [HAR](http://www.softwareishard.com/blog/har-12-spec) file with prerecorded network data. If `path` is a
            relative path, then it is resolved relative to the current working directory.
        url : Union[Pattern[str], str, None]
            A glob pattern, regular expression or predicate to match the request URL. Only requests with URL matching the
            pattern will be served from the HAR file. If not specified, all requests are served from the HAR file.
        not_found : Union["abort", "fallback", None]
            - If set to 'abort' any request not found in the HAR file will be aborted.
            - If set to 'fallback' falls through to the next route handler in the handler chain.

            Defaults to abort.
        update : Union[bool, None]
            If specified, updates the given HAR with the actual network information instead of serving from file. The file is
            written to disk when `browser_context.close()` is called.
        update_content : Union["attach", "embed", None]
            Optional setting to control resource content management. If `attach` is specified, resources are persisted as
            separate files or entries in the ZIP archive. If `embed` is specified, content is stored inline the HAR file.
        update_mode : Union["full", "minimal", None]
            When set to `minimal`, only record information necessary for routing from HAR. This omits sizes, timing, page,
            cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to
            `minimal`.
        r  Nr  r   s          rI   r  zBrowserContext.route_from_har4  r  r  r  r  c                    t        | j                  j                  || j                  |      |      j                        S )a)  BrowserContext.expect_event

        Waits for event to fire and passes its value into the predicate function. Returns when the predicate returns truthy
        value. Will throw an error if the context closes before the event is fired. Returns the event data value.

        **Usage**

        ```py
        async with context.expect_event("page") as event_info:
            await page.get_by_role("button").click()
        page = await event_info.value
        ```

        Parameters
        ----------
        event : str
            Event name, same one would pass into `browserContext.on(event)`.
        predicate : Union[Callable, None]
            Receives the event data and resolves to truthy value when the waiting should resolve.
        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()`.

        Returns
        -------
        EventContextManager
        r  r  r  s       rI   r	  zBrowserContext.expect_eventG4  r@  rK   r  r  c                |   K   t        j                  | j                  j                  |       d{         S 7 w)ah  BrowserContext.close

        Closes the browser context. All the pages that belong to the browser context will be closed.

        **NOTE** The default browser context cannot be closed.

        Parameters
        ----------
        reason : Union[str, None]
            The reason to be reported to the operations interrupted by the context closure.
        r  Nr!  rH   r  s     rI   r   zBrowserContext.closep4  s1      &&T^^-A-A-A-P'PQQ'Pr   c                |   K   t        j                  | j                  j                  |       d{         S 7 w)a  BrowserContext.storage_state

        Returns storage state for this browser context, contains current cookies and local storage snapshot.

        Parameters
        ----------
        path : Union[pathlib.Path, str, None]
            The file path to save the storage state to. If `path` is a relative path, then it is resolved relative to current
            working directory. If no path is provided, storage state is still returned, but won't be saved to the disk.

        Returns
        -------
        {cookies: List[{name: str, value: str, domain: str, path: str, expires: float, httpOnly: bool, secure: bool, sameSite: Union["Lax", "None", "Strict"]}], origins: List[{origin: str, localStorage: List[{name: str, value: str}]}]}
        r  Nr   rY   rE   storage_stater
  s     rI   r  zBrowserContext.storage_state4  s1     $   t~~'C'C'C'N!NOO!Nr   c                   K   t        j                  | j                  j                  || j	                  |      |       d{         S 7 w)a  BrowserContext.wait_for_event

        **NOTE** In most cases, you should use `browser_context.expect_event()`.

        Waits for given `event` to fire. If predicate is provided, it passes event's value into the `predicate` function
        and waits for `predicate(event)` to return a truthy value. Will throw an error if the browser context is closed
        before the `event` is fired.

        Parameters
        ----------
        event : str
            Event name, same one typically passed into `*.on(event)`.
        predicate : Union[Callable, None]
            Receives the event data and resolves to truthy value when the waiting should resolve.
        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()`.

        Returns
        -------
        Any
        r  Nr  r  s       rI   r  zBrowserContext.wait_for_event4  r  r  c                    t        | j                  j                  | j                  |      |      j                        S )a  BrowserContext.expect_console_message

        Performs action and waits for a `ConsoleMessage` to be logged by in the pages in the context. If predicate is
        provided, it passes `ConsoleMessage` value into the `predicate` function and waits for `predicate(message)` to
        return a truthy value. Will throw an error if the page is closed before the `browser_context.on('console')` event
        is fired.

        Parameters
        ----------
        predicate : Union[Callable[[ConsoleMessage], bool], None]
            Receives the `ConsoleMessage` object and resolves to truthy value when the waiting should resolve.
        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()`.

        Returns
        -------
        EventContextManager[ConsoleMessage]
        rB  rC  rE  s      rI   rD  z%BrowserContext.expect_console_message4  s=    4 (NN11,,Y7 2 f
 	
rK   c                    t        | j                  j                  | j                  |      |      j                        S )a[  BrowserContext.expect_page

        Performs action and waits for a new `Page` to be created in the context. If predicate is provided, it passes `Page`
        value into the `predicate` function and waits for `predicate(event)` to return a truthy value. Will throw an error
        if the context closes before new `Page` is created.

        Parameters
        ----------
        predicate : Union[Callable[[Page], bool], None]
            Receives the `Page` object and resolves to truthy value when the waiting should resolve.
        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()`.

        Returns
        -------
        EventContextManager[Page]
        rB  )r   rE   expect_pager
  r  rE  s      rI   r  zBrowserContext.expect_page4  s=    2 (NN&&,,Y7 ' f
 	
rK   )r9   r-   r"   c                 |   K   t        j                  | j                  j                  |       d{         S 7 w)a  BrowserContext.new_cdp_session

        **NOTE** CDP sessions are only supported on Chromium-based browsers.

        Returns the newly created session.

        Parameters
        ----------
        page : Union[Frame, Page]
            Target to create new session for. For backwards-compatibility, this parameter is named `page`, but it can be a
            `Page` or `Frame` type.

        Returns
        -------
        CDPSession
        )rY  N)r   rY   rE   new_cdp_session)rH   rY  s     rI   r  zBrowserContext.new_cdp_session4  s1     (   t~~'E'E4'E'P!PQQ!Pr   )rA   r=   rc  rb  ra  r   r   )?r   r   r   r   r  r   r  r   r   r   r  r   r   r   r  r   r  r  r  r  r   rg  r   ry  r|  r  rO  r   r  r   r  r  r  r  r  r	   r  r   r  r   r  r   r   r  r  r  r   r   r  r  r  r  r  r   r	  r   r   r  r  rD  r  r  r  r  s   @rI   r    r    /  s   __'( ??F8%QQR 
	  __6w6 ?? LL
6 
6 6 __y! ?? LL
 
 2 __$x $ ??H:'SST$ 
	$ $( __#v# ??F8%QQR# 
	# #4 __6z"6 ??J<)UUV6 
	6 6 __
y!
 ??I;(TTU
 
	
 
 __3'3 ??I;(TTU3 
	3 3 __?()? ??I;(TTU? 
	? ? __"z"" ??J<)UUV" 
	" " __F'F ??H:'SSTF 
	F F,, ??3V-=-=d-CT-I JJK, 
	, __'( ??F8%QQR 
	  __6w6 ?? LL
6 
6 6 __y! ?? LL
 
 2 __$x $ ??H:'SST$ 
	$ $( __#v# ??F8%QQR# 
	# #4 __6z"6 ??J<)UUV6 
	6 6 __
y!
 ??I;(TTU
 
	
 
 __3'3 ??I;(TTU3 
	3 3 __?()? ??I;(TTU? 
	? ? __"z"" ??J<)UUV" 
	" " __F'F ??H:'SSTF 
	F F.. ??3V-=-=d-CT-I JJK. 
	. 	<v{{6* 	< 	< 	B3 	B 	B G&++f"5 G G FX!6 F F 9 9 	9 	9 	7 	7
e 
 
0
5 
T 
&
B PT
OOFLLfooc6J1J$KL
	V	
,
)H 
T 
0 IMJNHL!
 oofll3s0C+CDE!
 S&..2E-E FG	!

 oofll3s0C+CDE!
 
!
H TX(
!??3/(
<BOOC<P(
	(
TQ$ ;?
!??;7
	
2
FKKS4I 
d 
,
 
$ 
 (,'
 BF	'
$'
 oofll3+<=>	'

 
'
\ )-A
A
 //A

 %A
 
A
F;
# ;
 ;
T ;
J '+O
\\#v~~c2FOOSE4K4PPQO
 OOWIvzz12OOWi0&**<=?
O
 s#O
 
O
r 
\\#v~~c2FOOSE4K4PPQ
 LL	6:: 56) 4fjj @AC

 

<+
\\#v~~c2FOOSE4K4PPQ+
 "2!3VZZ!?@+
 
	+
` QU
 //'*K"LM
 
	
8 HLCG(,FJCG5
\\',,+,5
 __V\\#v~~c/B*BCD	5

 ??7+>#?@5
 %5
 0A(BC5
 __W->%?@5
 
5
t 7;'

 +/'
'
 ??6??3'

 ''
 
"'
R =A RV__S%9 RT R  KOPv||C4E'FGP	P. 7;"

 +/"
"
 ??6??3"

 '"
 
"
L QU
 +/	
??6??4D3Et3K#LM
 '	

 
""2	3
D GK
 +/	
??6??F8T>#BC
 '	

 
"&	)
>RLL1R	RrK   r    c                   n    e Zd Z	 ddedej
                  ej                     dej                  fdZddZy)	r"   NrO   paramsrA   c                    K   t        j                  | j                  j                  |t        j                  |             d{         S 7 w)zCDPSession.send

        Parameters
        ----------
        method : str
            Protocol method name.
        params : Union[Dict, None]
            Optional method parameters.

        Returns
        -------
        Dict
        )rO   r  N)r   rD   rE   r'  r   )rH   rO   r  s      rI   r'  zCDPSession.send5  sA     " &&..%%VGOOF<S%TT
 	
Trk  c                 x   K   t        j                  | j                  j                          d{         S 7 w)zCDPSession.detach

        Detaches the CDPSession from the target. Once detached, the CDPSession object won't emit any events and can't be
        used to send messages.
        N)r   rD   rE   detachrG   s    rI   r  zCDPSession.detach'5  r  rk   r   r   )	r   r   r   r   r   r   r   r'  r  r   rK   rI   r"   r"   5  s=     CG

#)??6;;#?
	
*FrK   r"   c            I           e Zd Zded   dej
                  d gdf   ddf fdZded   dej
                  d gdf   ddf fdZedej                  d	   fd
       Z
edGd       Zedefd       ZdefdZdddddddddddddddddddddddddddddddddddd#dej                   e   dej                   e   dej                   e   dej                   e   dej                   e   dej                   e   dej                   e   dej                   e   dej                   e   dej                   e   dej                   ej&                  e      dej                   ej(                  eef      dej                   e   dej                   e   dej                   e   dej                   e   dej                   e   d ej                   ed!      d"ej                   ed#      d$ej                   ed%      d&ej                   e   d'ej                   e   d(ej                   e   d)ej                   ej0                  eej4                  f      d*ej                   e   d+ej                   ej0                  eej4                  f      d,ej                   e   d-ej                   ej0                  eeej4                  f      d.ej                   e   d/ej                   e   d0ej                   ed1      d2ej                   ej0                  eej8                  e   f      d3ej                   ed4      d5ej                   ed6      d7ej                   ej                  e      dd	fHd8Zdddddddddddddddddddddddddddddddddddd9#dej                   e   dej                   e   dej                   e   dej                   e   dej                   e   dej                   e   dej                   e   dej                   e   dej                   e   dej                   e   dej                   ej&                  e      dej                   ej(                  eef      dej                   e   dej                   e   dej                   e   dej                   e   dej                   e   d ej                   ed!      d$ej                   ed%      d"ej                   ed#      d&ej                   e   d'ej                   e   d(ej                   e   d)ej                   ej0                  eej4                  f      d*ej                   e   d+ej                   ej0                  eej4                  f      d,ej                   e   d-ej                   ej0                  eeej4                  f      d.ej                   e   d/ej                   e   d0ej                   ed1      d2ej                   ej0                  eej8                  e   f      d3ej                   ed4      d5ej                   ed6      d7ej                   ej                  e      dd:fHd;Zdd<d=ej                   e   ddfd>Z dHd?Z!ddddd@dAej                   d:   dBej                   ej0                  eej4                  f      dCej                   e   dDej                   ej&                  e      ddf
dEZ"de#fdFZ$ xZ%S )Ir   r   disconnectedr   r   rA   Nc                 &    t         |   ||      S z
        Emitted when Browser gets disconnected from the browser application. This might happen because of one of the
        following:
        - Browser application is closed or crashed.
        - The `browser.close()` method was called.r   r   r   s      rI   r   z
Browser.on65  s     wzz++rK   c                 &    t         |   ||      S r  r  r   s      rI   r   zBrowser.onceB5  s     w|%1|--rK   r    c                 T    t        j                  | j                  j                        S )a  Browser.contexts

        Returns an array of all open browser contexts. In a newly created browser, this will return zero browser contexts.

        **Usage**

        ```py
        browser = await pw.webkit.launch()
        print(len(browser.contexts)) # prints `0`
        context = await browser.new_context()
        print(len(browser.contexts)) # prints `1`
        ```

        Returns
        -------
        List[BrowserContext]
        )r   rv   rE   contextsrG   s    rI   r  zBrowser.contextsN5  s    & %%dnn&=&=>>rK   c                 T    t        j                  | j                  j                        S )zBrowser.browser_type

        Get the browser type (chromium, firefox or webkit) that the browser belongs to.

        Returns
        -------
        BrowserType
        )r   rY   rE   browser_typerG   s    rI   r  zBrowser.browser_typec5  s       !<!<==rK   c                 T    t        j                  | j                  j                        S )zkBrowser.version

        Returns the browser version.

        Returns
        -------
        str
        )r   rD   rE   versionrG   s    rI   r  zBrowser.versiono5  r  rK   c                 \    t        j                  | j                  j                               S )z}Browser.is_connected

        Indicates that the browser is connected.

        Returns
        -------
        bool
        )r   rD   rE   is_connectedrG   s    rI   r  zBrowser.is_connected{5  s"     &&t~~'B'B'DEErK   )#viewportr  no_viewportignore_https_errorsjava_script_enabled
bypass_csp
user_agentlocaletimezone_idr  r  extra_http_headersr  http_credentialsdevice_scale_factor	is_mobile	has_touchr  r  r  accept_downloadsdefault_browser_typeproxyrecord_har_pathrecord_har_omit_contentrecord_video_dirrecord_video_sizer  base_urlstrict_selectorsr  record_har_url_filterrecord_har_moderecord_har_contentclient_certificatesr  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  blockr  r  r  r  r  r  omitr  c       #   
        K   t        j                   | j                  j                  d%i d|d|d|d|d|d|d|d|d	|	d
|
dt        j                  |      dt        j                  |      d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d | d!|!d"|"d#|# d${         S 7 w)&u,  Browser.new_context

        Creates a new browser context. It won't share cookies/cache with other browser contexts.

        **NOTE** If directly using this method to create `BrowserContext`s, it is best practice to explicitly close the
        returned context via `browser_context.close()` when your code is done with the `BrowserContext`, and before
        calling `browser.close()`. This will ensure the `context` is closed gracefully and any artifacts—like HARs
        and videos—are fully flushed and saved.

        **Usage**

        ```py
        browser = await playwright.firefox.launch() # or "chromium" or "webkit".
        # create a new incognito browser context.
        context = await browser.new_context()
        # create a new page in a pristine context.
        page = await context.new_page()
        await page.goto("https://example.com")

        # gracefully close up everything
        await context.close()
        await browser.close()
        ```

        Parameters
        ----------
        viewport : Union[{width: int, height: int}, None]
            Sets a consistent viewport for each page. Defaults to an 1280x720 viewport. `no_viewport` disables the fixed
            viewport. Learn more about [viewport emulation](../emulation.md#viewport).
        screen : Union[{width: int, height: int}, None]
            Emulates consistent window screen size available inside web page via `window.screen`. Is only used when the
            `viewport` is set.
        no_viewport : Union[bool, None]
            Does not enforce fixed viewport, allows resizing window in the headed mode.
        ignore_https_errors : Union[bool, None]
            Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.
        java_script_enabled : Union[bool, None]
            Whether or not to enable JavaScript in the context. Defaults to `true`. Learn more about
            [disabling JavaScript](../emulation.md#javascript-enabled).
        bypass_csp : Union[bool, None]
            Toggles bypassing page's Content-Security-Policy. Defaults to `false`.
        user_agent : Union[str, None]
            Specific user agent to use in this context.
        locale : Union[str, None]
            Specify user locale, for example `en-GB`, `de-DE`, etc. Locale will affect `navigator.language` value,
            `Accept-Language` request header value as well as number and date formatting rules. Defaults to the system default
            locale. Learn more about emulation in our [emulation guide](../emulation.md#locale--timezone).
        timezone_id : Union[str, None]
            Changes the timezone of the context. See
            [ICU's metaZones.txt](https://cs.chromium.org/chromium/src/third_party/icu/source/data/misc/metaZones.txt?rcl=faee8bc70570192d82d2978a71e2a615788597d1)
            for a list of supported timezone IDs. Defaults to the system timezone.
        geolocation : Union[{latitude: float, longitude: float, accuracy: Union[float, None]}, None]
        permissions : Union[Sequence[str], None]
            A list of permissions to grant to all pages in this context. See `browser_context.grant_permissions()` for
            more details. Defaults to none.
        extra_http_headers : Union[Dict[str, str], None]
            An object containing additional HTTP headers to be sent with every request. Defaults to none.
        offline : Union[bool, None]
            Whether to emulate network being offline. Defaults to `false`. Learn more about
            [network emulation](../emulation.md#offline).
        http_credentials : Union[{username: str, password: str, origin: Union[str, None], send: Union["always", "unauthorized", None]}, None]
            Credentials for [HTTP authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication). If no
            origin is specified, the username and password are sent to any servers upon unauthorized responses.
        device_scale_factor : Union[float, None]
            Specify device scale factor (can be thought of as dpr). Defaults to `1`. Learn more about
            [emulating devices with device scale factor](../emulation.md#devices).
        is_mobile : Union[bool, None]
            Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device,
            so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more
            about [mobile emulation](../emulation.md#ismobile).
        has_touch : Union[bool, None]
            Specifies if viewport supports touch events. Defaults to false. Learn more about
            [mobile emulation](../emulation.md#devices).
        color_scheme : Union["dark", "light", "no-preference", "null", None]
            Emulates [prefers-colors-scheme](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme)
            media feature, supported values are `'light'` and `'dark'`. See `page.emulate_media()` for more details.
            Passing `'null'` resets emulation to system defaults. Defaults to `'light'`.
        reduced_motion : Union["no-preference", "null", "reduce", None]
            Emulates `'prefers-reduced-motion'` media feature, supported values are `'reduce'`, `'no-preference'`. See
            `page.emulate_media()` for more details. Passing `'null'` resets emulation to system defaults. Defaults to
            `'no-preference'`.
        forced_colors : Union["active", "none", "null", None]
            Emulates `'forced-colors'` media feature, supported values are `'active'`, `'none'`. See
            `page.emulate_media()` for more details. Passing `'null'` resets emulation to system defaults. Defaults to
            `'none'`.
        accept_downloads : Union[bool, None]
            Whether to automatically download all the attachments. Defaults to `true` where all the downloads are accepted.
        proxy : Union[{server: str, bypass: Union[str, None], username: Union[str, None], password: Union[str, None]}, None]
            Network proxy settings to use with this context. Defaults to none.
        record_har_path : Union[pathlib.Path, str, None]
            Enables [HAR](http://www.softwareishard.com/blog/har-12-spec) recording for all pages into the specified HAR file
            on the filesystem. If not specified, the HAR is not recorded. Make sure to call `browser_context.close()`
            for the HAR to be saved.
        record_har_omit_content : Union[bool, None]
            Optional setting to control whether to omit request content from the HAR. Defaults to `false`.
        record_video_dir : Union[pathlib.Path, str, None]
            Enables video recording for all pages into the specified directory. If not specified videos are not recorded. Make
            sure to call `browser_context.close()` for videos to be saved.
        record_video_size : Union[{width: int, height: int}, None]
            Dimensions of the recorded videos. If not specified the size will be equal to `viewport` scaled down to fit into
            800x800. If `viewport` is not configured explicitly the video size defaults to 800x450. Actual picture of each page
            will be scaled down if necessary to fit the specified size.
        storage_state : Union[pathlib.Path, str, {cookies: Sequence[{name: str, value: str, domain: str, path: str, expires: float, httpOnly: bool, secure: bool, sameSite: Union["Lax", "None", "Strict"]}], origins: Sequence[{origin: str, localStorage: Sequence[{name: str, value: str}]}]}, None]
            Learn more about [storage state and auth](../auth.md).

            Populates context with given storage state. This option can be used to initialize context with logged-in
            information obtained via `browser_context.storage_state()`.
        base_url : Union[str, None]
            When using `page.goto()`, `page.route()`, `page.wait_for_url()`,
            `page.expect_request()`, or `page.expect_response()` it takes the base URL in consideration by
            using the [`URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor for building the
            corresponding URL. Unset by default. Examples:
            - baseURL: `http://localhost:3000` and navigating to `/bar.html` results in `http://localhost:3000/bar.html`
            - baseURL: `http://localhost:3000/foo/` and navigating to `./bar.html` results in
              `http://localhost:3000/foo/bar.html`
            - baseURL: `http://localhost:3000/foo` (without trailing slash) and navigating to `./bar.html` results in
              `http://localhost:3000/bar.html`
        strict_selectors : Union[bool, None]
            If set to true, enables strict selectors mode for this context. In the strict selectors mode all operations on
            selectors that imply single target DOM element will throw when more than one element matches the selector. This
            option does not affect any Locator APIs (Locators are always strict). Defaults to `false`. See `Locator` to learn
            more about the strict mode.
        service_workers : Union["allow", "block", None]
            Whether to allow sites to register Service workers. Defaults to `'allow'`.
            - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be
              registered.
            - `'block'`: Playwright will block all registration of Service Workers.
        record_har_url_filter : Union[Pattern[str], str, None]
        record_har_mode : Union["full", "minimal", None]
            When set to `minimal`, only record information necessary for routing from HAR. This omits sizes, timing, page,
            cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to `full`.
        record_har_content : Union["attach", "embed", "omit", None]
            Optional setting to control resource content management. If `omit` is specified, content is not persisted. If
            `attach` is specified, resources are persisted as separate files and all of these files are archived along with the
            HAR file. Defaults to `embed`, which stores content inline the HAR file as per HAR specification.
        client_certificates : Union[Sequence[{origin: str, certPath: Union[pathlib.Path, str, None], cert: Union[bytes, None], keyPath: Union[pathlib.Path, str, None], key: Union[bytes, None], pfxPath: Union[pathlib.Path, str, None], pfx: Union[bytes, None], passphrase: Union[str, None]}], None]
            TLS Client Authentication allows the server to request a client certificate and verify it.

            **Details**

            An array of client certificates to be used. Each certificate object must have either both `certPath` and `keyPath`,
            a single `pfxPath`, or their corresponding direct value equivalents (`cert` and `key`, or `pfx`). Optionally,
            `passphrase` property should be provided if the certificate is encrypted. The `origin` property should be provided
            with an exact match to the request origin that the certificate is valid for.

            **NOTE** When using WebKit on macOS, accessing `localhost` will not pick up client certificates. You can make it
            work by replacing `localhost` with `local.playwright`.


        Returns
        -------
        BrowserContext
        r  r  
noViewportignoreHTTPSErrorsjavaScriptEnabled	bypassCSP	userAgentr  
timezoneIdr  r  extraHTTPHeadersr  httpCredentialsdeviceScaleFactorisMobilehasTouchr  r  r  acceptDownloadsdefaultBrowserTyper  recordHarPathrecordHarOmitContentrecordVideoDirrecordVideoSizestorageStatebaseURLstrictSelectorsserviceWorkersrecordHarUrlFilterrecordHarModerecordHarContentclientCertificatesNr   r   rY   rE   new_contextr   )$rH   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  s$                                       rI   r  zBrowser.new_context5  s    R   ,$..,, $!$$ '$ #6	$
 #6$ %$ %$ $ '$ ($ $OOK8$ ")1C!D$  $ !1$ #6$  #!$" ##$$ )%$& -'$( +)$* !1+$, $8-$. /$0 .1$2 &=3$4  05$6 !27$8 +9$: !;$< !1=$>  /?$@ $9A$B .C$D "4E$F $7G$ $&
 &	
$   B<C	>C?	C	)#r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r9   c       #   
        K   t        j                   | j                  j                  d%i d|d|d|d|d|d|d|d|d	|	d
|
dt        j                  |      dt        j                  |      d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|d | d!|!d"|"d#|# d${         S 7 w)&a*  Browser.new_page

        Creates a new page in a new browser context. Closing this page will close the context as well.

        This is a convenience API that should only be used for the single-page scenarios and short snippets. Production
        code and testing frameworks should explicitly create `browser.new_context()` followed by the
        `browser_context.new_page()` to control their exact life times.

        Parameters
        ----------
        viewport : Union[{width: int, height: int}, None]
            Sets a consistent viewport for each page. Defaults to an 1280x720 viewport. `no_viewport` disables the fixed
            viewport. Learn more about [viewport emulation](../emulation.md#viewport).
        screen : Union[{width: int, height: int}, None]
            Emulates consistent window screen size available inside web page via `window.screen`. Is only used when the
            `viewport` is set.
        no_viewport : Union[bool, None]
            Does not enforce fixed viewport, allows resizing window in the headed mode.
        ignore_https_errors : Union[bool, None]
            Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.
        java_script_enabled : Union[bool, None]
            Whether or not to enable JavaScript in the context. Defaults to `true`. Learn more about
            [disabling JavaScript](../emulation.md#javascript-enabled).
        bypass_csp : Union[bool, None]
            Toggles bypassing page's Content-Security-Policy. Defaults to `false`.
        user_agent : Union[str, None]
            Specific user agent to use in this context.
        locale : Union[str, None]
            Specify user locale, for example `en-GB`, `de-DE`, etc. Locale will affect `navigator.language` value,
            `Accept-Language` request header value as well as number and date formatting rules. Defaults to the system default
            locale. Learn more about emulation in our [emulation guide](../emulation.md#locale--timezone).
        timezone_id : Union[str, None]
            Changes the timezone of the context. See
            [ICU's metaZones.txt](https://cs.chromium.org/chromium/src/third_party/icu/source/data/misc/metaZones.txt?rcl=faee8bc70570192d82d2978a71e2a615788597d1)
            for a list of supported timezone IDs. Defaults to the system timezone.
        geolocation : Union[{latitude: float, longitude: float, accuracy: Union[float, None]}, None]
        permissions : Union[Sequence[str], None]
            A list of permissions to grant to all pages in this context. See `browser_context.grant_permissions()` for
            more details. Defaults to none.
        extra_http_headers : Union[Dict[str, str], None]
            An object containing additional HTTP headers to be sent with every request. Defaults to none.
        offline : Union[bool, None]
            Whether to emulate network being offline. Defaults to `false`. Learn more about
            [network emulation](../emulation.md#offline).
        http_credentials : Union[{username: str, password: str, origin: Union[str, None], send: Union["always", "unauthorized", None]}, None]
            Credentials for [HTTP authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication). If no
            origin is specified, the username and password are sent to any servers upon unauthorized responses.
        device_scale_factor : Union[float, None]
            Specify device scale factor (can be thought of as dpr). Defaults to `1`. Learn more about
            [emulating devices with device scale factor](../emulation.md#devices).
        is_mobile : Union[bool, None]
            Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device,
            so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more
            about [mobile emulation](../emulation.md#ismobile).
        has_touch : Union[bool, None]
            Specifies if viewport supports touch events. Defaults to false. Learn more about
            [mobile emulation](../emulation.md#devices).
        color_scheme : Union["dark", "light", "no-preference", "null", None]
            Emulates [prefers-colors-scheme](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme)
            media feature, supported values are `'light'` and `'dark'`. See `page.emulate_media()` for more details.
            Passing `'null'` resets emulation to system defaults. Defaults to `'light'`.
        forced_colors : Union["active", "none", "null", None]
            Emulates `'forced-colors'` media feature, supported values are `'active'`, `'none'`. See
            `page.emulate_media()` for more details. Passing `'null'` resets emulation to system defaults. Defaults to
            `'none'`.
        reduced_motion : Union["no-preference", "null", "reduce", None]
            Emulates `'prefers-reduced-motion'` media feature, supported values are `'reduce'`, `'no-preference'`. See
            `page.emulate_media()` for more details. Passing `'null'` resets emulation to system defaults. Defaults to
            `'no-preference'`.
        accept_downloads : Union[bool, None]
            Whether to automatically download all the attachments. Defaults to `true` where all the downloads are accepted.
        proxy : Union[{server: str, bypass: Union[str, None], username: Union[str, None], password: Union[str, None]}, None]
            Network proxy settings to use with this context. Defaults to none.
        record_har_path : Union[pathlib.Path, str, None]
            Enables [HAR](http://www.softwareishard.com/blog/har-12-spec) recording for all pages into the specified HAR file
            on the filesystem. If not specified, the HAR is not recorded. Make sure to call `browser_context.close()`
            for the HAR to be saved.
        record_har_omit_content : Union[bool, None]
            Optional setting to control whether to omit request content from the HAR. Defaults to `false`.
        record_video_dir : Union[pathlib.Path, str, None]
            Enables video recording for all pages into the specified directory. If not specified videos are not recorded. Make
            sure to call `browser_context.close()` for videos to be saved.
        record_video_size : Union[{width: int, height: int}, None]
            Dimensions of the recorded videos. If not specified the size will be equal to `viewport` scaled down to fit into
            800x800. If `viewport` is not configured explicitly the video size defaults to 800x450. Actual picture of each page
            will be scaled down if necessary to fit the specified size.
        storage_state : Union[pathlib.Path, str, {cookies: Sequence[{name: str, value: str, domain: str, path: str, expires: float, httpOnly: bool, secure: bool, sameSite: Union["Lax", "None", "Strict"]}], origins: Sequence[{origin: str, localStorage: Sequence[{name: str, value: str}]}]}, None]
            Learn more about [storage state and auth](../auth.md).

            Populates context with given storage state. This option can be used to initialize context with logged-in
            information obtained via `browser_context.storage_state()`.
        base_url : Union[str, None]
            When using `page.goto()`, `page.route()`, `page.wait_for_url()`,
            `page.expect_request()`, or `page.expect_response()` it takes the base URL in consideration by
            using the [`URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor for building the
            corresponding URL. Unset by default. Examples:
            - baseURL: `http://localhost:3000` and navigating to `/bar.html` results in `http://localhost:3000/bar.html`
            - baseURL: `http://localhost:3000/foo/` and navigating to `./bar.html` results in
              `http://localhost:3000/foo/bar.html`
            - baseURL: `http://localhost:3000/foo` (without trailing slash) and navigating to `./bar.html` results in
              `http://localhost:3000/bar.html`
        strict_selectors : Union[bool, None]
            If set to true, enables strict selectors mode for this context. In the strict selectors mode all operations on
            selectors that imply single target DOM element will throw when more than one element matches the selector. This
            option does not affect any Locator APIs (Locators are always strict). Defaults to `false`. See `Locator` to learn
            more about the strict mode.
        service_workers : Union["allow", "block", None]
            Whether to allow sites to register Service workers. Defaults to `'allow'`.
            - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be
              registered.
            - `'block'`: Playwright will block all registration of Service Workers.
        record_har_url_filter : Union[Pattern[str], str, None]
        record_har_mode : Union["full", "minimal", None]
            When set to `minimal`, only record information necessary for routing from HAR. This omits sizes, timing, page,
            cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to `full`.
        record_har_content : Union["attach", "embed", "omit", None]
            Optional setting to control resource content management. If `omit` is specified, content is not persisted. If
            `attach` is specified, resources are persisted as separate files and all of these files are archived along with the
            HAR file. Defaults to `embed`, which stores content inline the HAR file as per HAR specification.
        client_certificates : Union[Sequence[{origin: str, certPath: Union[pathlib.Path, str, None], cert: Union[bytes, None], keyPath: Union[pathlib.Path, str, None], key: Union[bytes, None], pfxPath: Union[pathlib.Path, str, None], pfx: Union[bytes, None], passphrase: Union[str, None]}], None]
            TLS Client Authentication allows the server to request a client certificate and verify it.

            **Details**

            An array of client certificates to be used. Each certificate object must have either both `certPath` and `keyPath`,
            a single `pfxPath`, or their corresponding direct value equivalents (`cert` and `key`, or `pfx`). Optionally,
            `passphrase` property should be provided if the certificate is encrypted. The `origin` property should be provided
            with an exact match to the request origin that the certificate is valid for.

            **NOTE** When using WebKit on macOS, accessing `localhost` will not pick up client certificates. You can make it
            work by replacing `localhost` with `local.playwright`.


        Returns
        -------
        Page
        r  r  r  r  r  r  r  r  r   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r	  r
  r  r  r  r  r  r  r  r  r  Nr   )r   rY   rE   r  r   )$rH   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  s$                                       rI   r  zBrowser.new_pagex6  s    r   )$..)) $!$$ '$ #6	$
 #6$ %$ %$ $ '$ ($ $OOK8$ ")1C!D$  $ !1$ #6$  #!$" ##$$ )%$& +'$( -)$* !1+$, $8-$. /$0 .1$2 &=3$4  05$6 !27$8 +9$: !;$< !1=$>  /?$@ $9A$B .C$D "4E$F $7G$ $&
 &	
$r  r  r  c                |   K   t        j                  | j                  j                  |       d{         S 7 w)aw  Browser.close

        In case this browser is obtained using `browser_type.launch()`, closes the browser and all of its pages (if
        any were opened).

        In case this browser is connected to, clears all created contexts belonging to this browser and disconnects from
        the browser server.

        **NOTE** This is similar to force-quitting the browser. To close pages gracefully and ensure you receive page close
        events, call `browser_context.close()` on any `BrowserContext` instances you explicitly created earlier
        using `browser.new_context()` **before** calling `browser.close()`.

        The `Browser` object itself is considered to be disposed and cannot be used anymore.

        Parameters
        ----------
        reason : Union[str, None]
            The reason to be reported to the operations interrupted by the browser closure.
        r  Nr!  r  s     rI   r   zBrowser.closeY7  s1     * &&T^^-A-A-A-P'PQQ'Pr   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zBrowser.new_browser_cdp_session

        **NOTE** CDP Sessions are only supported on Chromium-based browsers.

        Returns the newly created browser session.

        Returns
        -------
        CDPSession
        N)r   rY   rE   new_browser_cdp_sessionrG   s    rI   r  zBrowser.new_browser_cdp_sessionp7  s,        t~~'M'M'O!OPP!Ork   rY  r   screenshots
categoriesrY  r   r  r  c          
         K   t        j                  | j                  j                  |r|j                  nd||t        j                  |             d{         S 7 w)a  Browser.start_tracing

        **NOTE** This API controls
        [Chromium Tracing](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool) which is a low-level
        chromium-specific debugging tool. API to control [Playwright Tracing](https://playwright.dev/python/docs/trace-viewer) could be found
        [here](https://playwright.dev/python/docs/api/class-tracing).

        You can use `browser.start_tracing()` and `browser.stop_tracing()` to create a trace file that can be
        opened in Chrome DevTools performance panel.

        **Usage**

        ```py
        await browser.start_tracing(page, path="trace.json")
        await page.goto("https://www.google.com")
        await browser.stop_tracing()
        ```

        Parameters
        ----------
        page : Union[Page, None]
            Optional, if specified, tracing includes screenshots of the given page.
        path : Union[pathlib.Path, str, None]
            A path to write the trace file to.
        screenshots : Union[bool, None]
            captures screenshots in the trace.
        categories : Union[Sequence[str], None]
            specify custom categories to use instead of default.
        Nr  )r   rD   rE   start_tracingr   )rH   rY  r   r  r  s        rI   r  zBrowser.start_tracing~7  sZ     L &&....'+T^^'"??:6	 /  
 	
s   AA A	A c                 x   K   t        j                  | j                  j                          d{         S 7 w)a  Browser.stop_tracing

        **NOTE** This API controls
        [Chromium Tracing](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool) which is a low-level
        chromium-specific debugging tool. API to control [Playwright Tracing](https://playwright.dev/python/docs/trace-viewer) could be found
        [here](https://playwright.dev/python/docs/api/class-tracing).

        Returns the buffer with trace data.

        Returns
        -------
        bytes
        N)r   rD   rE   stop_tracingrG   s    rI   r!  zBrowser.stop_tracing7  s,      &&T^^-H-H-J'JKK'Jrk   rA   r!   )rA   r"   )&r   r   r   r   r   r  r   r   r   r   r  r  r   r  r   r  r   r   r	   rO  r   r
   r   r   r   r   r   r   r  r   r  r  r   r  r  r   r!  r  r  s   @rI   r   r   45  s	   
,~&
, ??I;(TTU
, 
	
,
.~&
. ??I;(TTU
. 
	
. ?&++&67 ? ?( 	> 	> 	? 	? 	?
Fd 
F 3704-15959,0+/'+,048=AEI)-=A6:+/+/  LP265904LP9=MQ;? )-26FJ GKRVOS[o
 //,/o
 -	o

 __T*o
 $__T2o
 $__T2o
 OOD)o
 OOC(o
 $o
 __S)o
 __[1o
 __V__S%9:o
 #OOFKKS,ABo
 &o
  !///:!o
" $__U3#o
$ ??4(%o
& ??4('o
( oo<=
)o
. 56
/o
4 w/G'HI5o
6 !//$/7o
8 %ooc29o
: }-;o
<  c7<<6G)HI=o
> "(!6?o
@ !//&,,sGLL7H*IJAo
B "??<8Co
D LLsGLL89
Eo
J //#&Ko
L !//$/Mo
N  1A)BCOo
P  &LLfnnS112 
Qo
V  1B)CDWo
X #OOG4M,NOYo
Z $__V[[9J-KL[o
\ 
]o
h 3704-15959,0+/'+,048=AEI)-=A6:+/+/ LP 265904LP9=MQ;? )-26FJ GKRVOS[_
 //,/_
 -	_

 __T*_
 $__T2_
 $__T2_
 OOD)_
 OOC(_
 $_
 __S)_
 __[1_
 __V__S%9:_
 #OOFKKS,AB_
 &_
  !///:!_
" $__U3#_
$ ??4(%_
& ??4('_
( oo<=
)_
. w/G'HI/_
0 56
1_
6 !//$/7_
8 %ooc29_
: }-;_
<  c7<<6G)HI=_
> "(!6?_
@ !//&,,sGLL7H*IJA_
B "??<8C_
D LLsGLL89
E_
J //#&K_
L !//$/M_
N  1A)BCO_
P  &LLfnnS112 
Q_
V  1B)CDW_
X #OOG4M,NOY_
Z $__V[[9J-KL[_
\ 
]_
B =A RV__S%9 RT R.Q" )-AE-1<@-
 oof%-
 oofll3+<=>	-

 __T*-
 OOFOOC$89-
 
-
^LE LrK   r   c            g          e Zd Zedefd       Zedefd       Zdddddddddddddddddddej                  ej                  ee
j                  f      dej                  e   dej                  ej                  e      d	ej                  ej                  eej                  e   f      d
ej                  e   dej                  e   dej                  e   dej                  e   dej                  ej                  eej                  eeef   f      dej                  e   dej                  e   dej                  e   dej                  ej                  ee
j                  f      dej                  e   dej                  ej                  ee
j                  f      dej                  e   dej                  ej                  eej                  eeef   f      ddf$dZdddddddddddddddddddddddddddddddddddddddddddddddddd1dej                  ee
j                  f   dej                  e   dej                  ej                  ee
j                  f      dej                  ej                  e      d	ej                  ej                  eej                  e   f      d
ej                  e   dej                  e   dej                  e   dej                  e   dej                  ej                  eej                  eeef   f      dej                  e   dej                  e   dej                  e   dej                  ej                  ee
j                  f      dej                  e   dej                  e   dej                  e   dej                  e   dej                  e   dej                  e   d ej                  e   d!ej                  e   d"ej                  e   d#ej                  e   d$ej                  e   d%ej                  ej                  e      d&ej                  ej                  eef      d'ej                  e   d(ej                  e   d)ej                  e   d*ej                  e   d+ej                  e   d,ej                  ed-      d.ej                  ed/      d0ej                  ed1      d2ej                  e   dej                  ej                  ee
j                  f      dej                  e   dej                  ej                  eej                  eeef   f      d3ej                  ej                  ee
j                  f      d4ej                  e   d5ej                  ej                  ee
j                  f      d6ej                  e   d7ej                  e   d8ej                  e   d9ej                  ed:      d;ej                  ej                  eej,                  e   f      d<ej                  ed=      d>ej                  ed?      d@ej                  ej.                  e      ddAffdBZddddCdDedej                  e   dej                  e   dEej                  ej                  eef      ddf
dFZdddddGdHedej                  e   dej                  e   dEej                  ej                  eef      dIej                  e   ddfdJZy)Kr!   rA   c                 T    t        j                  | j                  j                        S )zBrowserType.name

        Returns browser name. For example: `'chromium'`, `'webkit'` or `'firefox'`.

        Returns
        -------
        str
        rf  rG   s    rI   ry   zBrowserType.name7  r  rK   c                 T    t        j                  | j                  j                        S )zBrowserType.executable_path

        A path where Playwright expects to find a bundled browser executable.

        Returns
        -------
        str
        )r   rD   rE   executable_pathrG   s    rI   r&  zBrowserType.executable_path7  s     &&t~~'E'EFFrK   N)r&  channelr  ignore_default_argshandle_siginthandle_sigtermhandle_sighupr   envheadlessdevtoolsr  downloads_pathslow_mo
traces_dirchromium_sandboxfirefox_user_prefsr&  r'  r  r(  r)  r*  r+  r   r,  r-  r.  r  r/  r0  r1  r2  r3  r   c                4  K   t        j                  | j                  j                  ||t        j                  |      t        j                  |      ||||t        j                  |	      |
||||||t        j                  |             d{         S 7 w)aE  BrowserType.launch

        Returns the browser instance.

        **Usage**

        You can use `ignoreDefaultArgs` to filter out `--mute-audio` from default arguments:

        ```py
        browser = await playwright.chromium.launch( # or "firefox" or "webkit".
            ignore_default_args=["--mute-audio"]
        )
        ```

        > **Chromium-only** Playwright can also be used to control the Google Chrome or Microsoft Edge browsers, but it
        works best with the version of Chromium it is bundled with. There is no guarantee it will work with any other
        version. Use `executablePath` option with extreme caution.
        >
        > If Google Chrome (rather than Chromium) is preferred, a
        [Chrome Canary](https://www.google.com/chrome/browser/canary.html) or
        [Dev Channel](https://www.chromium.org/getting-involved/dev-channel) build is suggested.
        >
        > Stock browsers like Google Chrome and Microsoft Edge are suitable for tests that require proprietary media codecs
        for video playback. See
        [this article](https://www.howtogeek.com/202825/what%E2%80%99s-the-difference-between-chromium-and-chrome/) for
        other differences between Chromium and Chrome.
        [This article](https://chromium.googlesource.com/chromium/src/+/lkgr/docs/chromium_browser_vs_google_chrome.md)
        describes some differences for Linux users.

        Parameters
        ----------
        executable_path : Union[pathlib.Path, str, None]
            Path to a browser executable to run instead of the bundled one. If `executablePath` is a relative path, then it is
            resolved relative to the current working directory. Note that Playwright only works with the bundled Chromium,
            Firefox or WebKit, use at your own risk.
        channel : Union[str, None]
            Browser distribution channel.

            Use "chromium" to [opt in to new headless mode](../browsers.md#chromium-new-headless-mode).

            Use "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", or
            "msedge-canary" to use branded [Google Chrome and Microsoft Edge](../browsers.md#google-chrome--microsoft-edge).
        args : Union[Sequence[str], None]
            **NOTE** Use custom browser args at your own risk, as some of them may break Playwright functionality.

            Additional arguments to pass to the browser instance. The list of Chromium flags can be found
            [here](https://peter.sh/experiments/chromium-command-line-switches/).
        ignore_default_args : Union[Sequence[str], bool, None]
            If `true`, Playwright does not pass its own configurations args and only uses the ones from `args`. If an array is
            given, then filters out the given default arguments. Dangerous option; use with care. Defaults to `false`.
        handle_sigint : Union[bool, None]
            Close the browser process on Ctrl-C. Defaults to `true`.
        handle_sigterm : Union[bool, None]
            Close the browser process on SIGTERM. Defaults to `true`.
        handle_sighup : Union[bool, None]
            Close the browser process on SIGHUP. Defaults to `true`.
        timeout : Union[float, None]
            Maximum time in milliseconds to wait for the browser instance to start. Defaults to `30000` (30 seconds). Pass `0`
            to disable timeout.
        env : Union[Dict[str, Union[bool, float, str]], None]
            Specify environment variables that will be visible to the browser. Defaults to `process.env`.
        headless : Union[bool, None]
            Whether to run browser in headless mode. More details for
            [Chromium](https://developers.google.com/web/updates/2017/04/headless-chrome) and
            [Firefox](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Headless_mode). Defaults to `true` unless the
            `devtools` option is `true`.
        devtools : Union[bool, None]
            **Chromium-only** Whether to auto-open a Developer Tools panel for each tab. If this option is `true`, the
            `headless` option will be set `false`.
            Deprecated: Use [debugging tools](../debug.md) instead.
        proxy : Union[{server: str, bypass: Union[str, None], username: Union[str, None], password: Union[str, None]}, None]
            Network proxy settings.
        downloads_path : Union[pathlib.Path, str, None]
            If specified, accepted downloads are downloaded into this directory. Otherwise, temporary directory is created and
            is deleted when browser is closed. In either case, the downloads are deleted when the browser context they were
            created in is closed.
        slow_mo : Union[float, None]
            Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going
            on.
        traces_dir : Union[pathlib.Path, str, None]
            If specified, traces are saved into this directory.
        chromium_sandbox : Union[bool, None]
            Enable Chromium sandboxing. Defaults to `false`.
        firefox_user_prefs : Union[Dict[str, Union[bool, float, str]], None]
            Firefox user preferences. Learn more about the Firefox user preferences at
            [`about:config`](https://support.mozilla.org/en-US/kb/about-config-editor-firefox).

        Returns
        -------
        Browser
        )executablePathr'  r  ignoreDefaultArgshandleSIGINThandleSIGTERMhandleSIGHUPr   r,  r-  r.  r  downloadsPathslowMo	tracesDirchromiumSandboxfirefoxUserPrefsN)r   rY   rE   launchr   )rH   r&  r'  r  r(  r)  r*  r+  r   r,  r-  r.  r  r/  r0  r1  r2  r3  s                     rI   r?  zBrowserType.launch7  s     j   ..''.__T*")//2E"F*,*OOC(!!,$ 0!(1C!D# (  
 	
s   BBB	B)1r'  r&  r  r(  r)  r*  r+  r   r,  r-  r.  r  r/  r0  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r1  r2  r3  r  r  r  r  r  r  r  r  r  r  r  user_data_dirr  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r    c       1   
        K   t        j                   | j                  j                  d4i d|d|d|dt        j                  |      dt        j                  |      d|d|d|d	|	d
t        j                  |
      d|d|d|d|d|d|d|d|d|d|d|d|d|d|d|dt        j                  |      dt        j                  |      d|d|d|d|d | d!|!d"|"d#|#d$|$d%|%d&|&d't        j                  |'      d(|(d)|)d*|*d+|+d,|,d-|-d.|.d/|/d0|0d1|1d2|2 d3{         S 7 w)5a8  BrowserType.launch_persistent_context

        Returns the persistent browser context instance.

        Launches browser that uses persistent storage located at `userDataDir` and returns the only context. Closing this
        context will automatically close the browser.

        Parameters
        ----------
        user_data_dir : Union[pathlib.Path, str]
            Path to a User Data Directory, which stores browser session data like cookies and local storage. More details for
            [Chromium](https://chromium.googlesource.com/chromium/src/+/master/docs/user_data_dir.md#introduction) and
            [Firefox](https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options#User_Profile). Note that Chromium's
            user data directory is the **parent** directory of the "Profile Path" seen at `chrome://version`. Pass an empty
            string to use a temporary directory instead.
        channel : Union[str, None]
            Browser distribution channel.

            Use "chromium" to [opt in to new headless mode](../browsers.md#chromium-new-headless-mode).

            Use "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", or
            "msedge-canary" to use branded [Google Chrome and Microsoft Edge](../browsers.md#google-chrome--microsoft-edge).
        executable_path : Union[pathlib.Path, str, None]
            Path to a browser executable to run instead of the bundled one. If `executablePath` is a relative path, then it is
            resolved relative to the current working directory. Note that Playwright only works with the bundled Chromium,
            Firefox or WebKit, use at your own risk.
        args : Union[Sequence[str], None]
            **NOTE** Use custom browser args at your own risk, as some of them may break Playwright functionality.

            Additional arguments to pass to the browser instance. The list of Chromium flags can be found
            [here](https://peter.sh/experiments/chromium-command-line-switches/).
        ignore_default_args : Union[Sequence[str], bool, None]
            If `true`, Playwright does not pass its own configurations args and only uses the ones from `args`. If an array is
            given, then filters out the given default arguments. Dangerous option; use with care. Defaults to `false`.
        handle_sigint : Union[bool, None]
            Close the browser process on Ctrl-C. Defaults to `true`.
        handle_sigterm : Union[bool, None]
            Close the browser process on SIGTERM. Defaults to `true`.
        handle_sighup : Union[bool, None]
            Close the browser process on SIGHUP. Defaults to `true`.
        timeout : Union[float, None]
            Maximum time in milliseconds to wait for the browser instance to start. Defaults to `30000` (30 seconds). Pass `0`
            to disable timeout.
        env : Union[Dict[str, Union[bool, float, str]], None]
            Specify environment variables that will be visible to the browser. Defaults to `process.env`.
        headless : Union[bool, None]
            Whether to run browser in headless mode. More details for
            [Chromium](https://developers.google.com/web/updates/2017/04/headless-chrome) and
            [Firefox](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Headless_mode). Defaults to `true` unless the
            `devtools` option is `true`.
        devtools : Union[bool, None]
            **Chromium-only** Whether to auto-open a Developer Tools panel for each tab. If this option is `true`, the
            `headless` option will be set `false`.
            Deprecated: Use [debugging tools](../debug.md) instead.
        proxy : Union[{server: str, bypass: Union[str, None], username: Union[str, None], password: Union[str, None]}, None]
            Network proxy settings.
        downloads_path : Union[pathlib.Path, str, None]
            If specified, accepted downloads are downloaded into this directory. Otherwise, temporary directory is created and
            is deleted when browser is closed. In either case, the downloads are deleted when the browser context they were
            created in is closed.
        slow_mo : Union[float, None]
            Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going
            on.
        viewport : Union[{width: int, height: int}, None]
            Sets a consistent viewport for each page. Defaults to an 1280x720 viewport. `no_viewport` disables the fixed
            viewport. Learn more about [viewport emulation](../emulation.md#viewport).
        screen : Union[{width: int, height: int}, None]
            Emulates consistent window screen size available inside web page via `window.screen`. Is only used when the
            `viewport` is set.
        no_viewport : Union[bool, None]
            Does not enforce fixed viewport, allows resizing window in the headed mode.
        ignore_https_errors : Union[bool, None]
            Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.
        java_script_enabled : Union[bool, None]
            Whether or not to enable JavaScript in the context. Defaults to `true`. Learn more about
            [disabling JavaScript](../emulation.md#javascript-enabled).
        bypass_csp : Union[bool, None]
            Toggles bypassing page's Content-Security-Policy. Defaults to `false`.
        user_agent : Union[str, None]
            Specific user agent to use in this context.
        locale : Union[str, None]
            Specify user locale, for example `en-GB`, `de-DE`, etc. Locale will affect `navigator.language` value,
            `Accept-Language` request header value as well as number and date formatting rules. Defaults to the system default
            locale. Learn more about emulation in our [emulation guide](../emulation.md#locale--timezone).
        timezone_id : Union[str, None]
            Changes the timezone of the context. See
            [ICU's metaZones.txt](https://cs.chromium.org/chromium/src/third_party/icu/source/data/misc/metaZones.txt?rcl=faee8bc70570192d82d2978a71e2a615788597d1)
            for a list of supported timezone IDs. Defaults to the system timezone.
        geolocation : Union[{latitude: float, longitude: float, accuracy: Union[float, None]}, None]
        permissions : Union[Sequence[str], None]
            A list of permissions to grant to all pages in this context. See `browser_context.grant_permissions()` for
            more details. Defaults to none.
        extra_http_headers : Union[Dict[str, str], None]
            An object containing additional HTTP headers to be sent with every request. Defaults to none.
        offline : Union[bool, None]
            Whether to emulate network being offline. Defaults to `false`. Learn more about
            [network emulation](../emulation.md#offline).
        http_credentials : Union[{username: str, password: str, origin: Union[str, None], send: Union["always", "unauthorized", None]}, None]
            Credentials for [HTTP authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication). If no
            origin is specified, the username and password are sent to any servers upon unauthorized responses.
        device_scale_factor : Union[float, None]
            Specify device scale factor (can be thought of as dpr). Defaults to `1`. Learn more about
            [emulating devices with device scale factor](../emulation.md#devices).
        is_mobile : Union[bool, None]
            Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device,
            so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more
            about [mobile emulation](../emulation.md#ismobile).
        has_touch : Union[bool, None]
            Specifies if viewport supports touch events. Defaults to false. Learn more about
            [mobile emulation](../emulation.md#devices).
        color_scheme : Union["dark", "light", "no-preference", "null", None]
            Emulates [prefers-colors-scheme](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme)
            media feature, supported values are `'light'` and `'dark'`. See `page.emulate_media()` for more details.
            Passing `'null'` resets emulation to system defaults. Defaults to `'light'`.
        reduced_motion : Union["no-preference", "null", "reduce", None]
            Emulates `'prefers-reduced-motion'` media feature, supported values are `'reduce'`, `'no-preference'`. See
            `page.emulate_media()` for more details. Passing `'null'` resets emulation to system defaults. Defaults to
            `'no-preference'`.
        forced_colors : Union["active", "none", "null", None]
            Emulates `'forced-colors'` media feature, supported values are `'active'`, `'none'`. See
            `page.emulate_media()` for more details. Passing `'null'` resets emulation to system defaults. Defaults to
            `'none'`.
        accept_downloads : Union[bool, None]
            Whether to automatically download all the attachments. Defaults to `true` where all the downloads are accepted.
        traces_dir : Union[pathlib.Path, str, None]
            If specified, traces are saved into this directory.
        chromium_sandbox : Union[bool, None]
            Enable Chromium sandboxing. Defaults to `false`.
        firefox_user_prefs : Union[Dict[str, Union[bool, float, str]], None]
            Firefox user preferences. Learn more about the Firefox user preferences at
            [`about:config`](https://support.mozilla.org/en-US/kb/about-config-editor-firefox).
        record_har_path : Union[pathlib.Path, str, None]
            Enables [HAR](http://www.softwareishard.com/blog/har-12-spec) recording for all pages into the specified HAR file
            on the filesystem. If not specified, the HAR is not recorded. Make sure to call `browser_context.close()`
            for the HAR to be saved.
        record_har_omit_content : Union[bool, None]
            Optional setting to control whether to omit request content from the HAR. Defaults to `false`.
        record_video_dir : Union[pathlib.Path, str, None]
            Enables video recording for all pages into the specified directory. If not specified videos are not recorded. Make
            sure to call `browser_context.close()` for videos to be saved.
        record_video_size : Union[{width: int, height: int}, None]
            Dimensions of the recorded videos. If not specified the size will be equal to `viewport` scaled down to fit into
            800x800. If `viewport` is not configured explicitly the video size defaults to 800x450. Actual picture of each page
            will be scaled down if necessary to fit the specified size.
        base_url : Union[str, None]
            When using `page.goto()`, `page.route()`, `page.wait_for_url()`,
            `page.expect_request()`, or `page.expect_response()` it takes the base URL in consideration by
            using the [`URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor for building the
            corresponding URL. Unset by default. Examples:
            - baseURL: `http://localhost:3000` and navigating to `/bar.html` results in `http://localhost:3000/bar.html`
            - baseURL: `http://localhost:3000/foo/` and navigating to `./bar.html` results in
              `http://localhost:3000/foo/bar.html`
            - baseURL: `http://localhost:3000/foo` (without trailing slash) and navigating to `./bar.html` results in
              `http://localhost:3000/bar.html`
        strict_selectors : Union[bool, None]
            If set to true, enables strict selectors mode for this context. In the strict selectors mode all operations on
            selectors that imply single target DOM element will throw when more than one element matches the selector. This
            option does not affect any Locator APIs (Locators are always strict). Defaults to `false`. See `Locator` to learn
            more about the strict mode.
        service_workers : Union["allow", "block", None]
            Whether to allow sites to register Service workers. Defaults to `'allow'`.
            - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be
              registered.
            - `'block'`: Playwright will block all registration of Service Workers.
        record_har_url_filter : Union[Pattern[str], str, None]
        record_har_mode : Union["full", "minimal", None]
            When set to `minimal`, only record information necessary for routing from HAR. This omits sizes, timing, page,
            cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to `full`.
        record_har_content : Union["attach", "embed", "omit", None]
            Optional setting to control resource content management. If `omit` is specified, content is not persisted. If
            `attach` is specified, resources are persisted as separate files and all of these files are archived along with the
            HAR file. Defaults to `embed`, which stores content inline the HAR file as per HAR specification.
        client_certificates : Union[Sequence[{origin: str, certPath: Union[pathlib.Path, str, None], cert: Union[bytes, None], keyPath: Union[pathlib.Path, str, None], key: Union[bytes, None], pfxPath: Union[pathlib.Path, str, None], pfx: Union[bytes, None], passphrase: Union[str, None]}], None]
            TLS Client Authentication allows the server to request a client certificate and verify it.

            **Details**

            An array of client certificates to be used. Each certificate object must have either both `certPath` and `keyPath`,
            a single `pfxPath`, or their corresponding direct value equivalents (`cert` and `key`, or `pfx`). Optionally,
            `passphrase` property should be provided if the certificate is encrypted. The `origin` property should be provided
            with an exact match to the request origin that the certificate is valid for.

            **NOTE** When using WebKit on macOS, accessing `localhost` will not pick up client certificates. You can make it
            work by replacing `localhost` with `local.playwright`.


        Returns
        -------
        BrowserContext
        userDataDirr'  r5  r  r6  r7  r8  r9  r   r,  r-  r.  r  r:  r;  r  r  r  r  r  r  r  r  r   r  r  r  r  r  r  r  r  r  r  r  r  r<  r=  r>  r  r	  r
  r  r  r  r  r  r  r  r  Nr   )r   rY   rE   launch_persistent_contextr   )3rH   r@  r'  r&  r  r(  r)  r*  r+  r   r,  r-  r.  r  r/  r0  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r1  r2  r3  r  r  r  r  r  r  r  r  r  r  r  s3                                                      rI   rC  z%BrowserType.launch_persistent_contextg8  s    ~   :$..:: 3)33  /3 __T*	3
 #*//2E"F3 +3 -3 +3  3 OOC(3 "3 "3 3 -3 3  "!3" #3$ '%3& #6'3( #6)3* %+3, %-3. /30 '132 (334 $OOK8536 ")1C!D738  93: !1;3< #6=3> #?3@ #A3B )C3D -E3F +G3H !1I3J %K3L !1M3N ")1C!DO3P .Q3R &=S3T  0U3V !2W3X !Y3Z !1[3\  /]3^ $9_3` .a3b "4c3d $7e3 35
 5	
3s   D5E7E 8	E)r   r0  rg   endpoint_urlrg   c          
         K   t        j                  | j                  j                  |||t        j                  |             d{         S 7 w)ab  BrowserType.connect_over_cdp

        This method attaches Playwright to an existing browser instance using the Chrome DevTools Protocol.

        The default browser context is accessible via `browser.contexts()`.

        **NOTE** Connecting over the Chrome DevTools Protocol is only supported for Chromium-based browsers.

        **Usage**

        ```py
        browser = await playwright.chromium.connect_over_cdp("http://localhost:9222")
        default_context = browser.contexts[0]
        page = default_context.pages[0]
        ```

        Parameters
        ----------
        endpoint_url : str
            A CDP websocket endpoint or http url to connect to. For example `http://localhost:9222/` or
            `ws://127.0.0.1:9222/devtools/browser/387adf4c-243f-4051-a181-46798f4a46f4`.
        timeout : Union[float, None]
            Maximum time in milliseconds to wait for the connection to be established. Defaults to `30000` (30 seconds). Pass
            `0` to disable timeout.
        slow_mo : Union[float, None]
            Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going
            on. Defaults to 0.
        headers : Union[Dict[str, str], None]
            Additional HTTP headers to be sent with connect request. Optional.

        Returns
        -------
        Browser
        )endpointURLr   r;  rg   N)r   rY   rE   connect_over_cdpr   )rH   rD  r   r0  rg   s        rI   rG  zBrowserType.connect_over_cdp9  sR     V   ..11(0	 2  
 	
r  )r   r0  rg   expose_networkws_endpointrH  c          
         K   t        j                  | j                  j                  |||t        j                  |      |       d{         S 7 w)u  BrowserType.connect

        This method attaches Playwright to an existing browser instance. When connecting to another browser launched via
        `BrowserType.launchServer` in Node.js, the major and minor version needs to match the client version (1.2.3 → is
        compatible with 1.2.x).

        Parameters
        ----------
        ws_endpoint : str
            A browser websocket endpoint to connect to.
        timeout : Union[float, None]
            Maximum time in milliseconds to wait for the connection to be established. Defaults to `0` (no timeout).
        slow_mo : Union[float, None]
            Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going
            on. Defaults to 0.
        headers : Union[Dict[str, str], None]
            Additional HTTP headers to be sent with web socket connect request. Optional.
        expose_network : Union[str, None]
            This option exposes network available on the connecting client to the browser being connected to. Consists of a
            list of rules separated by comma.

            Available rules:
            1. Hostname pattern, for example: `example.com`, `*.org:99`, `x.*.y.com`, `*foo.org`.
            1. IP literal, for example: `127.0.0.1`, `0.0.0.0:99`, `[::1]`, `[0:0::1]:99`.
            1. `<loopback>` that matches local loopback interfaces: `localhost`, `*.localhost`, `127.0.0.1`, `[::1]`.

            Some common examples:
            1. `"*"` to expose all network.
            1. `"<loopback>"` to expose localhost network.
            1. `"*.test.internal-domain,*.staging.internal-domain,<loopback>"` to expose test/staging deployments and
               localhost.

        Returns
        -------
        Browser
        )
wsEndpointr   r;  rg   exposeNetworkN)r   rY   rE   connectr   )rH   rI  r   r0  rg   rH  s         rI   rM  zBrowserType.connect9  sU     \   ..((&0, )  
 	
r  )r   r   r   r   r   ry   r&  r   r   r   r   r   rO  r   r   r   r   r?  r   r	   r
   r   r  r   r   rC  rG  rM  r   rK   rI   r!   r!   7  sJ	   	<c 	< 	< 	G 	G 	G MQ(,6: /304/3*.QU*.*.04KO*.GK26 /I
  c7<<6G)HII
 %	I

 oofooc23I
 $__LLvs334
I
 t,I
 -I
 t,I
 'I
 __V[[fll3t;K.L)LMNI
 //$'I
 //$'I
  }-!I
" S',,5F(GH#I
$ '%I
& OOFLLgll1B$CD'I
( !//$/)I
* #OOKKV\\#ud*:;;<
+I
0 
1I
^ )-LP6: /304/3*.QU*.*.04KO*.2604-15959,0+/'+,048=AEI)-=A6:+/+/  LP26GK26 LP9=MQ;?)-26FJ GKRVOS}t
||C$56t
 %	t

  c7<<6G)HIt
 oofooc23t
 $__LLvs334
t
 t,t
 -t
 t,t
 't
 __V[[fll3t;K.L)LMNt
 //$'t
  //$'!t
" }-#t
$ S',,5F(GH%t
& ''t
( //,/)t
* -+t
, __T*-t
. $__T2/t
0 $__T21t
2 OOD)3t
4 OOC(5t
6 $7t
8 __S)9t
: __[1;t
< __V__S%9:=t
> #OOFKKS,AB?t
@ &At
B !///:Ct
D $__U3Et
F ??4(Gt
H ??4(It
J oo<=
Kt
P 56
Qt
V w/G'HIWt
X !//$/Yt
Z OOFLLgll1B$CD[t
\ !//$/]t
^ #OOKKV\\#ud*:;;<
_t
d  c7<<6G)HIet
f "(!6gt
h !//&,,sGLL7H*IJit
j "??<8kt
l //#&mt
n !//$/ot
p  1A)BCqt
r  &LLfnnS112 
st
x  1B)CDyt
z #OOG4M,NO{t
| $__V[[9J-KL}t
~ 
t
t	 +/*.:>2
2
 '	2

 '2
 S#X!672
 
2
p +/*.:>/36
6
 '	6

 '6
 S#X!676
 ,6
 
6
rK   r!   c                       e Zd Zedej
                  fd       Zedd       Zedd       Zedd       Z	edd       Z
edd       Zd	eddfd
ZddZy)r;   rA   c                 T    t        j                  | j                  j                        S )aQ  Playwright.devices

        Returns a dictionary of devices to be used with `browser.new_context()` or `browser.new_page()`.

        ```py
        import asyncio
        from playwright.async_api import async_playwright, Playwright

        async def run(playwright: Playwright):
            webkit = playwright.webkit
            iphone = playwright.devices["iPhone 6"]
            browser = await webkit.launch()
            context = await browser.new_context(**iphone)
            page = await context.new_page()
            await page.goto("http://example.com")
            # other actions...
            await browser.close()

        async def main():
            async with async_playwright() as playwright:
                await run(playwright)
        asyncio.run(main())
        ```

        Returns
        -------
        Dict
        )r   rD   rE   devicesrG   s    rI   rP  zPlaywright.devices:  s    < &&t~~'='=>>rK   c                 T    t        j                  | j                  j                        S )zPlaywright.selectors

        Selectors can be used to install custom selector engines. See [extensibility](https://playwright.dev/python/docs/extensibility) for more
        information.

        Returns
        -------
        Selectors
        )r   rY   rE   	selectorsrG   s    rI   rR  zPlaywright.selectors/:  s       !9!9::rK   r!   c                 T    t        j                  | j                  j                        S )zPlaywright.chromium

        This object can be used to launch or connect to Chromium, returning instances of `Browser`.

        Returns
        -------
        BrowserType
        )r   rY   rE   chromiumrG   s    rI   rT  zPlaywright.chromium<:  s       !8!899rK   c                 T    t        j                  | j                  j                        S )zPlaywright.firefox

        This object can be used to launch or connect to Firefox, returning instances of `Browser`.

        Returns
        -------
        BrowserType
        )r   rY   rE   firefoxrG   s    rI   rV  zPlaywright.firefoxH:  r   rK   c                 T    t        j                  | j                  j                        S )zPlaywright.webkit

        This object can be used to launch or connect to WebKit, returning instances of `Browser`.

        Returns
        -------
        BrowserType
        )r   rY   rE   webkitrG   s    rI   rX  zPlaywright.webkitT:  s       !6!677rK   c                 T    t        j                  | j                  j                        S )zPlaywright.request

        Exposes API that can be used for the Web API testing.

        Returns
        -------
        APIRequest
        r   rG   s    rI   r   zPlaywright.request`:  r   rK   r  c                 `    t        j                  | j                  j                  |            S )N)r  )r   rY   rE   __getitem__)rH   r  s     rI   r[  zPlaywright.__getitem__l:  s%      !;!;%!;!HIIrK   Nc                 x   K   t        j                  | j                  j                          d{         S 7 w)a  Playwright.stop

        Terminates this instance of Playwright in case it was created bypassing the Python context manager. This is useful
        in REPL applications.

        ```py
        from playwright.sync_api import sync_playwright

        playwright = sync_playwright().start()

        browser = playwright.chromium.launch()
        page = browser.new_page()
        page.goto("https://playwright.dev/")
        page.screenshot(path="example.png")
        browser.close()

        playwright.stop()
        ```
        Nr   rD   rE   stoprG   s    rI   r^  zPlaywright.stopp:  s,     * &&T^^-@-@-B'BCC'Brk   )rA   r<   r"  )rA   r)   r   )r   r   r   r   r   r   rP  rR  rT  rV  rX  r   r   r[  r^  r   rK   rI   r;   r;   :  s    ? ? ?> 
; 
; 	: 	: 	9 	9 	8 	8 	9 	9J J JDrK   r;   c                      e Zd Zdddddddej                  e   dej                  e   dej                  e   dej                  e   dej                  e   ddfd	Zddd
dej                  e   dej                  e   ddfdZdddej                  ej                  ee
j                  f      ddfdZdddej                  ej                  ee
j                  f      ddfdZdddedej                  e   ddfdZddZy)r=   Nry   r  	snapshotsr  sourcesry   r  ra  r  rb  rA   c          	         K   t        j                  | j                  j                  |||||       d{         S 7 w)a  Tracing.start

        Start tracing.

        **Usage**

        ```py
        await context.tracing.start(screenshots=True, snapshots=True)
        page = await context.new_page()
        await page.goto("https://playwright.dev")
        await context.tracing.stop(path = "trace.zip")
        ```

        Parameters
        ----------
        name : Union[str, None]
            If specified, intermediate trace files are going to be saved into the files with the given name prefix inside the
            `tracesDir` directory specified in `browser_type.launch()`. To specify the final trace zip file name, you
            need to pass `path` option to `tracing.stop()` instead.
        title : Union[str, None]
            Trace name to be shown in the Trace Viewer.
        snapshots : Union[bool, None]
            If this option is true tracing will
            - capture DOM snapshot on every action
            - record network activity
        screenshots : Union[bool, None]
            Whether to capture screenshots during tracing. Screenshots are used to build a timeline preview.
        sources : Union[bool, None]
            Whether to include source files for trace actions.
        r`  N)r   rD   rE   start)rH   ry   r  ra  r  rb  s         rI   rd  zTracing.start:  sL     P &&..&&#' '  
 	
rV  r  ry   c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)a  Tracing.start_chunk

        Start a new trace chunk. If you'd like to record multiple traces on the same `BrowserContext`, use
        `tracing.start()` once, and then create multiple trace chunks with `tracing.start_chunk()` and
        `tracing.stop_chunk()`.

        **Usage**

        ```py
        await context.tracing.start(screenshots=True, snapshots=True)
        page = await context.new_page()
        await page.goto("https://playwright.dev")

        await context.tracing.start_chunk()
        await page.get_by_text("Get Started").click()
        # Everything between start_chunk and stop_chunk will be recorded in the trace.
        await context.tracing.stop_chunk(path = "trace1.zip")

        await context.tracing.start_chunk()
        await page.goto("http://example.com")
        # Save a second trace file with different actions.
        await context.tracing.stop_chunk(path = "trace2.zip")
        ```

        Parameters
        ----------
        title : Union[str, None]
            Trace name to be shown in the Trace Viewer.
        name : Union[str, None]
            If specified, intermediate trace files are going to be saved into the files with the given name prefix inside the
            `tracesDir` directory specified in `browser_type.launch()`. To specify the final trace zip file name, you
            need to pass `path` option to `tracing.stop_chunk()` instead.
        re  N)r   rD   rE   start_chunk)rH   r  ry   s      rI   rg  zTracing.start_chunk:  s9     J &&..,,5t,DD
 	
Dr"  r  r   c                |   K   t        j                  | j                  j                  |       d{         S 7 w)aK  Tracing.stop_chunk

        Stop the trace chunk. See `tracing.start_chunk()` for more details about multiple trace chunks.

        Parameters
        ----------
        path : Union[pathlib.Path, str, None]
            Export trace collected since the last `tracing.start_chunk()` call into the file with the given path.
        r  N)r   rD   rE   
stop_chunkr
  s     rI   ri  zTracing.stop_chunk:  s1      &&T^^-F-FD-F-Q'QRR'Qr   c                |   K   t        j                  | j                  j                  |       d{         S 7 w)zTracing.stop

        Stop tracing.

        Parameters
        ----------
        path : Union[pathlib.Path, str, None]
            Export trace into the file with the given path.
        r  Nr]  r
  s     rI   r^  zTracing.stop:  s1      &&T^^-@-@d-@-K'KLL'Kr   )r  r  c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)a  Tracing.group

        **NOTE** Use `test.step` instead when available.

        Creates a new group within the trace, assigning any subsequent API calls to this group, until
        `tracing.group_end()` is called. Groups can be nested and will be visible in the trace viewer.

        **Usage**

        ```py
        # All actions between group and group_end
        # will be shown in the trace viewer as a group.
        page.context.tracing.group("Open Playwright.dev > API")
        page.goto("https://playwright.dev/")
        page.get_by_role("link", name="API").click()
        page.context.tracing.group_end()
        ```

        Parameters
        ----------
        name : str
            Group name shown in the trace viewer.
        location : Union[{file: str, line: Union[int, None], column: Union[int, None]}, None]
            Specifies a custom location for the group to be shown in the trace viewer. Defaults to the location of the
            `tracing.group()` call.
        )ry   r  N)r   rD   rE   r  )rH   ry   r  s      rI   r  zTracing.group;  s8     < &&..&&D8&DD
 	
Dr"  c                 x   K   t        j                  | j                  j                          d{         S 7 w)zWTracing.group_end

        Closes the last group created by `tracing.group()`.
        N)r   rD   rE   	group_endrG   s    rI   rm  zTracing.group_end(;  s,      &&T^^-E-E-G'GHH'Grk   r   )r   r   r   r   r   r   r   rd  rg  r   r   r   ri  r^  r   r  rm  r   rK   rI   r=   r=   :  sc   
 &*&*+/-1)-0
 ooc"0
 s#	0

 ??4(0
 __T*0
 &0
 
0
f 04RV'
,'
;A??3;O'
	'
T KOSv||C4E'FGS	S  KOMv||C4E'FGM	M  OS 
 
&,oo6J&K 
	 
DIrK   r=   c                   B   e Zd Zedd       Zedd       Zedd       Zedd       Zddd	ej                  e
   dej                  e   fd
Zdddddddej                  e   d	ej                  e
   dej                  e   dej                  e   dej                  e   ddfdZdddddddddd	dej                  ej                   ed         dej                  e   dej                  e
   dej                  ed      dej                  e   d	ej                  e
   dej                  e   dej                  e   dej                  e   ddfdZddddddddddej                  ej                   ed         dej                  e   dej                  e
   dej                  ed      d	ej                  e
   dej                  e   dej                  e   dej                  e   ddfdZ	 ddddedej                  ej,                     d	ej                  e
   ddfdZ	 ddddedej                  ej0                     d	ej                  e
   dej0                  fd Z	 ddedej                  ej0                     dej0                  fd!Z	 ddddedej                  ej0                     d	ej                  e
   dd"fd#Zdddd$d%ed	ej                  e
   dej                  e   dej                  e   ddf
d&Zdddd$d	ej                  e
   dej                  e   dej                  e   ddfd'Zddddd(d)ej<                  ed f   d*ej                  ej<                  eej>                  e   f      d+ej                  ej<                  eej>                  e   f      d,ej                  d    d-ej                  d    dd fd.Z dd/d0ej<                  eej>                  e   f   d1ej                  e   dd fd2Z!dd/d0ej<                  eej>                  e   f   d1ej                  e   dd fd3Z"dd/d0ej<                  eej>                  e   f   d1ej                  e   dd fd4Z#dddddddddd5	d6ed7   d8ej                  e   d9ej                  e   d:ej                  e   d;ej                  e   d<ej                  e   d=ej                  ej<                  eej>                  e   f      d>ej                  e   d?ej                  e   d1ej                  e   dd fd@Z$dAej<                  eej>                  e   f   dd fdBZ%dd/d0ej<                  eej>                  e   f   d1ej                  e   dd fdCZ&dd/d0ej<                  eej>                  e   f   d1ej                  e   dd fdDZ'dEeddfdFZ(ddd	ej                  e
   ddGfdHZ)dejT                  dG   fdIZ+dJedd fdKZ,ddddd(d*ej                  ej<                  eej>                  e   f      d+ej                  ej<                  eej>                  e   f      d,ej                  d    d-ej                  d    dd f
dLZ-ddMZ.ddNZ/ddd	ej                  e
   ddfdOZ0ddd	ej                  e
   ddfdPZ1dejT                  d    fdQZ2defdRZ3dddddddSdTd dej                  e   dej                  e   d	ej                  e
   dej                  e   dUej                  e   dVej                  e   ddfdWZ4ddd=ed	ej                  e
   dej                  e   fdXZ5dddddddYdej                  ej                   ed         dej                  e   d	ej                  e
   dej                  e   dej                  e   dej                  e   ddfdZZ6ddd	ej                  e
   defd[Z7ddd	ej                  e
   defd\Z8ddd	ej                  e
   defd]Z9ddd	ej                  e
   defd^Z:ddd	ej                  e
   defd_Z;ddd	ej                  e
   defd`Z<ddd	ej                  e
   defdaZ=ddd	ej                  e
   defdbZ>ddd	ej                  e
   defdcZ?ddddddeedej                  e
   d	ej                  e
   dej                  e   ddf
dfZ@ddddddddddddgd	ej                  e
   dej                  edh      diej                  ej<                  eeAj                  f      djej                  e   dkej                  e   dlej                  edm      dnej                  edo      dpej                  edq      drej                  ej                   d       dsej                  e   dtej                  e   deCfduZDddd	ej                  e
   defdvZEddd	ej                  e
   ddfdwZF	 ddddddddxd%ej                  ej<                  eej                   e   f      dJej                  ej<                  eej                   e   f      dyej                  ej<                  eej                   e   f      dzej                  ej<                  dGej                   dG   f      d	ej                  e
   dej                  e   dej                  e   dejT                  e   fd{ZGddd|dej                  e   d	ej                  e
   ddfd}ZHddd~dej<                  eeAj                  eIej                   ej<                  eeAj                  f      ej                   eI   f   d	ej                  e
   dej                  e   ddfdZJddddddddej                  ej                   ed         dej                  e   d	ej                  e
   dej                  e   dej                  e   dej                  e   ddfdZKddd	ej                  e
   dej                  e   fdZLdddddd0edej                  e
   d	ej                  e
   dej                  e   ddf
dZMdddddd0edej                  e
   d	ej                  e
   dej                  e   ddf
dZNdddddddej                  e   d	ej                  e
   dej                  e   dej                  e   dej                  e   ddfdZOdejT                  e   fdZPdejT                  e   fdZQdddd	ej                  e
   dej                  ed      ddfdZRddddddd8edej                  e   d	ej                  e
   dej                  e   dej                  e   dej                  e   ddfdZSddZTy)r3   rA   c                 T    t        j                  | j                  j                        S )zlLocator.page

        A page this locator belongs to.

        Returns
        -------
        Page
        rX  rG   s    rI   rY  zLocator.page6;  rZ  rK   c                 T    t        j                  | j                  j                        S )zLocator.first

        Returns locator to the first matching element.

        Returns
        -------
        Locator
        r  rG   s    rI   r  zLocator.firstB;  r   rK   c                 T    t        j                  | j                  j                        S )zLocator.last

        Returns locator to the last matching element.

        **Usage**

        ```py
        banana = await page.get_by_role("listitem").last
        ```

        Returns
        -------
        Locator
        r  rG   s    rI   r  zLocator.lastN;  s        !4!455rK   r2   c                 T    t        j                  | j                  j                        S )a_  Locator.content_frame

        Returns a `FrameLocator` object pointing to the same `iframe` as this locator.

        Useful when you have a `Locator` object obtained somewhere, and later on would like to interact with the content
        inside the frame.

        For a reverse operation, use `frame_locator.owner()`.

        **Usage**

        ```py
        locator = page.locator("iframe[name=\"embedded\"]")
        # ...
        frame_locator = locator.content_frame
        await frame_locator.get_by_role("button").click()
        ```

        Returns
        -------
        FrameLocator
        )r   rY   rE   r  rG   s    rI   r  zLocator.content_frame`;  s    0   !=!=>>rK   Nr  r   c                |   K   t        j                  | j                  j                  |       d{         S 7 w)a#  Locator.bounding_box

        This method returns the bounding box of the element matching the locator, or `null` if the element is not visible.
        The bounding box is calculated relative to the main frame viewport - which is usually the same as the browser
        window.

        **Details**

        Scrolling affects the returned bounding box, similarly to
        [Element.getBoundingClientRect](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect).
        That means `x` and/or `y` may be negative.

        Elements from child frames return the bounding box relative to the main frame, unlike the
        [Element.getBoundingClientRect](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect).

        Assuming the page is static, it is safe to use bounding box coordinates to perform input. For example, the
        following snippet should click the center of the element.

        **Usage**

        ```py
        box = await page.get_by_role("button").bounding_box()
        await page.mouse.click(box["x"] + box["width"] / 2, box["y"] + box["height"] / 2)
        ```

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        Union[{x: float, y: float, width: float, height: float}, None]
        r  Nr  r  s     rI   r  zLocator.bounding_boxz;  s7     N ))..--g->>
 	
>r   r  r  r  r  r  c          	         K   t        j                  | j                  j                  |||||       d{         S 7 w)a  Locator.check

        Ensure that checkbox or radio element is checked.

        **Details**

        Performs the following steps:
        1. Ensure that element is a checkbox or a radio input. If not, this method throws. If the element is already
           checked, this method returns immediately.
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the element, unless `force` option is set.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to click in the center of the element.
        1. Ensure that the element is now checked. If not, this method throws.

        If the element is detached from the DOM at any moment during the action, this method throws.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        **Usage**

        ```py
        await page.get_by_role("checkbox").check()
        ```

        Parameters
        ----------
        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, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        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.
        r  Nr  r  s         rI   r  zLocator.check;  sL     h &&..&&!) '  
 	
rV  r  r  r  r;  rI  rK  rJ  c       	            K   t        j                  | j                  j                  t        j                  |      ||||||||		       d{         S 7 w)a7  Locator.click

        Click an element.

        **Details**

        This method clicks the element by performing the following steps:
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the element, unless `force` option is set.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to click in the center of the element, or the specified `position`.
        1. Wait for initiated navigations to either succeed or fail, unless `noWaitAfter` option is set.

        If the element is detached from the DOM at any moment during the action, this method throws.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        **Usage**

        Click a button:

        ```py
        await page.get_by_role("button").click()
        ```

        Shift-right-click at a specific position on a canvas:

        ```py
        await page.locator("canvas").click(
            button="right", modifiers=["Shift"], position={"x": 23, "y": 32}
        )
        ```

        Parameters
        ----------
        modifiers : Union[Sequence[Union["Alt", "Control", "ControlOrMeta", "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. "ControlOrMeta" resolves to
            "Control" on Windows and Linux and to "Meta" on macOS.
        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, None]
            Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0.
        button : Union["left", "middle", "right", None]
            Defaults to `left`.
        click_count : Union[int, None]
            defaults to 1. See [UIEvent.detail].
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        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`.
            Deprecated: This option will default to `true` in the future.
        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. Note that keyboard
            `modifiers` will be pressed regardless of `trial` to allow testing elements which are only visible when those keys
            are pressed.
        r  Nr  r  s
             rI   rU  zLocator.click;  sa     ` &&..&&!//)4!&) ' 
 

 	

r  r  c                   K   t        j                  | j                  j                  t        j                  |      |||||||       d{         S 7 w)aq
  Locator.dblclick

        Double-click an element.

        **Details**

        This method double clicks the element by performing the following steps:
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the element, unless `force` option is set.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to double click in the center of the element, or the specified `position`.

        If the element is detached from the DOM at any moment during the action, this method throws.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        **NOTE** `element.dblclick()` dispatches two `click` events and a single `dblclick` event.

        Parameters
        ----------
        modifiers : Union[Sequence[Union["Alt", "Control", "ControlOrMeta", "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. "ControlOrMeta" resolves to
            "Control" on Windows and Linux and to "Meta" on macOS.
        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, None]
            Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0.
        button : Union["left", "middle", "right", None]
            Defaults to `left`.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        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. Note that keyboard
            `modifiers` will be pressed regardless of `trial` to allow testing elements which are only visible when those keys
            are pressed.
        r  Nr  r  s	            rI   rX  zLocator.dblclickA<  s^     x &&..))!//)4!) * 	 	
 	
	r  r>  r  c                   K   t        j                  | j                  j                  |t        j                  |      |       d{         S 7 w)af
  Locator.dispatch_event

        Programmatically dispatch an event on the matching element.

        **Usage**

        ```py
        await locator.dispatch_event("click")
        ```

        **Details**

        The snippet above dispatches the `click` event on the element. Regardless of the visibility state of the element,
        `click` is dispatched. This is equivalent to calling
        [element.click()](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/click).

        Under the hood, it creates an instance of an event based on the given `type`, initializes it with `eventInit`
        properties and dispatches it on the element. Events are `composed`, `cancelable` and bubble by default.

        Since `eventInit` is event-specific, please refer to the events documentation for the lists of initial properties:
        - [DeviceMotionEvent](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/DeviceMotionEvent)
        - [DeviceOrientationEvent](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent/DeviceOrientationEvent)
        - [DragEvent](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/DragEvent)
        - [Event](https://developer.mozilla.org/en-US/docs/Web/API/Event/Event)
        - [FocusEvent](https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent/FocusEvent)
        - [KeyboardEvent](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/KeyboardEvent)
        - [MouseEvent](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent)
        - [PointerEvent](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/PointerEvent)
        - [TouchEvent](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/TouchEvent)
        - [WheelEvent](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/WheelEvent)

        You can also specify `JSHandle` as the property value if you want live objects to be passed into the event:

        ```py
        data_transfer = await page.evaluate_handle("new DataTransfer()")
        await locator.dispatch_event("#source", "dragstart", {"dataTransfer": data_transfer})
        ```

        Parameters
        ----------
        type : str
            DOM event type: `"click"`, `"dragstart"`, etc.
        event_init : Union[Dict, None]
            Optional event-specific initialization properties.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        )r>  r  r   Nr  )rH   r>  r  r   s       rI   r  zLocator.dispatch_event<  sM     p &&..//W__Z%@' 0  
 	
r  rd  re  c                   K   t        j                  | j                  j                  |t        j                  |      |       d{         S 7 w)a  Locator.evaluate

        Execute JavaScript code in the page, taking the matching element as an argument.

        **Details**

        Returns the return value of `expression`, called with the matching element as a first argument, and `arg` as a
        second argument.

        If `expression` returns a [Promise], this method will wait for the promise to resolve and return its value.

        If `expression` throws or rejects, this method throws.

        **Usage**

        ```py
        tweets = page.locator(".tweet .retweets")
        assert await tweets.evaluate("node => node.innerText") == "10 retweets"
        ```

        Parameters
        ----------
        expression : str
            JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the
            function is automatically invoked.
        arg : Union[Any, None]
            Optional argument to pass to `expression`.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        Any
        rd  re  r   Nrh  rH   rd  re  r   s       rI   ri  zLocator.evaluate<  sM     V &&..))%7??3+? *  
 	
r  c                    K   t        j                  | j                  j                  |t        j                  |             d{         S 7 w)a  Locator.evaluate_all

        Execute JavaScript code in the page, taking all matching elements as an argument.

        **Details**

        Returns the return value of `expression`, called with an array of all matching elements as a first argument, and
        `arg` as a second argument.

        If `expression` returns a [Promise], this method will wait for the promise to resolve and return its value.

        If `expression` throws or rejects, this method throws.

        **Usage**

        ```py
        locator = page.locator("div")
        more_than_ten = await locator.evaluate_all("(divs, min) => divs.length > min", 10)
        ```

        Parameters
        ----------
        expression : str
            JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the
            function is automatically invoked.
        arg : Union[Any, None]
            Optional argument to pass to `expression`.

        Returns
        -------
        Any
        rg  N)r   rD   rE   evaluate_allr   rj  s      rI   r|  zLocator.evaluate_all<  sK     H &&..--%7??3+? .  
 	
rk  r1   c                   K   t        j                  | j                  j                  |t        j                  |      |       d{         S 7 w)ap  Locator.evaluate_handle

        Execute JavaScript code in the page, taking the matching element as an argument, and return a `JSHandle` with the
        result.

        **Details**

        Returns the return value of `expression` as a`JSHandle`, called with the matching element as a first argument, and
        `arg` as a second argument.

        The only difference between `locator.evaluate()` and `locator.evaluate_handle()` is that
        `locator.evaluate_handle()` returns `JSHandle`.

        If `expression` returns a [Promise], this method will wait for the promise to resolve and return its value.

        If `expression` throws or rejects, this method throws.

        See `page.evaluate_handle()` for more details.

        Parameters
        ----------
        expression : str
            JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the
            function is automatically invoked.
        arg : Union[Any, None]
            Optional argument to pass to `expression`.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        JSHandle
        ry  Nrm  rz  s       rI   rn  zLocator.evaluate_handle#=  sM     T   ..00%7??3+? 1  
 	
r  r  r  c                   K   t        j                  | j                  j                  ||||       d{         S 7 w)a'  Locator.fill

        Set a value to the input field.

        **Usage**

        ```py
        await page.get_by_role("textbox").fill("example value")
        ```

        **Details**

        This method waits for [actionability](https://playwright.dev/python/docs/actionability) checks, focuses the element, fills it and triggers an
        `input` event after filling. Note that you can pass an empty string to clear the input field.

        If the target element is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an
        error. However, if the element is inside the `<label>` element that has an associated
        [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be filled
        instead.

        To send fine-grained keyboard events, use `locator.press_sequentially()`.

        Parameters
        ----------
        value : str
            Value to set for the `<input>`, `<textarea>` or `[contenteditable]` element.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        r  Nr  r  s        rI   r  zLocator.fillS=  sF     X &&..%%W-u &  
 	
rY  c                   K   t        j                  | j                  j                  |||       d{         S 7 w)a  Locator.clear

        Clear the input field.

        **Details**

        This method waits for [actionability](https://playwright.dev/python/docs/actionability) checks, focuses the element, clears it and triggers an
        `input` event after clearing.

        If the target element is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an
        error. However, if the element is inside the `<label>` element that has an associated
        [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be cleared
        instead.

        **Usage**

        ```py
        await page.get_by_role("textbox").clear()
        ```

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        )r   r  r  N)r   rD   rE   clear)rH   r   r  r  s       rI   r  zLocator.clear=  sD     N &&..&&]% '  
 	
rH  r  r  r  r  r  r  c          	          t        j                  | j                  j                  ||||r|j                  nd|r|j                              S d            S )aV	  Locator.locator

        The method finds an element matching the specified selector in the locator's subtree. It also accepts filter
        options, similar to `locator.filter()` method.

        [Learn more about locators](https://playwright.dev/python/docs/locators).

        Parameters
        ----------
        selector_or_locator : Union[Locator, str]
            A selector or locator to use when resolving DOM element.
        has_text : Union[Pattern[str], str, None]
            Matches elements containing specified text somewhere inside, possibly in a child or a descendant element. When
            passed a [string], matching is case-insensitive and searches for a substring. For example, `"Playwright"` matches
            `<article><div>Playwright</div></article>`.
        has_not_text : Union[Pattern[str], str, None]
            Matches elements that do not contain specified text somewhere inside, possibly in a child or a descendant element.
            When passed a [string], matching is case-insensitive and searches for a substring.
        has : Union[Locator, None]
            Narrows down the results of the method to those which contain elements matching this relative locator. For example,
            `article` that has `text=Playwright` matches `<article><div>Playwright</div></article>`.

            Inner locator **must be relative** to the outer locator and is queried starting with the outer locator match, not
            the document root. For example, you can find `content` that has `div` in
            `<article><content><div>Playwright</div></content></article>`. However, looking for `content` that has `article
            div` will fail, because the inner locator must be relative and should not use any elements outside the `content`.

            Note that outer and inner locators must belong to the same frame. Inner locator must not contain `FrameLocator`s.
        has_not : Union[Locator, None]
            Matches elements that do not contain an element that matches an inner locator. Inner locator is queried against the
            outer one. For example, `article` that does not have `div` matches `<article><span>Playwright</span></article>`.

            Note that outer and inner locators must belong to the same frame. Inner locator must not contain `FrameLocator`s.

        Returns
        -------
        Locator
        Nr  r  r  s         rI   r  zLocator.locator=  r  rK   r  r   r  c                b    t        j                  | j                  j                  ||            S )a  Locator.get_by_alt_text

        Allows locating elements by their alt text.

        **Usage**

        For example, this method will find the image by alt text "Playwright logo":

        ```html
        <img alt='Playwright logo'>
        ```

        ```py
        await page.get_by_alt_text("Playwright logo").click()
        ```

        Parameters
        ----------
        text : Union[Pattern[str], str]
            Text to locate the element for.
        exact : Union[bool, None]
            Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        r  r  r  s      rI   r  zLocator.get_by_alt_text=  r  rK   c                b    t        j                  | j                  j                  ||            S )a  Locator.get_by_label

        Allows locating input elements by the text of the associated `<label>` or `aria-labelledby` element, or by the
        `aria-label` attribute.

        **Usage**

        For example, this method will find inputs by label "Username" and "Password" in the following DOM:

        ```html
        <input aria-label="Username">
        <label for="password-input">Password:</label>
        <input id="password-input">
        ```

        ```py
        await page.get_by_label("Username").fill("john")
        await page.get_by_label("Password").fill("secret")
        ```

        Parameters
        ----------
        text : Union[Pattern[str], str]
            Text to locate the element for.
        exact : Union[bool, None]
            Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        r  r  r  s      rI   r  zLocator.get_by_label>  r  rK   c                b    t        j                  | j                  j                  ||            S )ae  Locator.get_by_placeholder

        Allows locating input elements by the placeholder text.

        **Usage**

        For example, consider the following DOM structure.

        ```html
        <input type="email" placeholder="name@example.com" />
        ```

        You can fill the input after locating it by the placeholder text:

        ```py
        await page.get_by_placeholder("name@example.com").fill("playwright@microsoft.com")
        ```

        Parameters
        ----------
        text : Union[Pattern[str], str]
            Text to locate the element for.
        exact : Union[bool, None]
            Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        r  r  r  s      rI   r  zLocator.get_by_placeholder:>  r  rK   r  r  r  r  r  r  r  r  ry   r  r  c       	         r    t        j                  | j                  j                  |||||||||	|

            S )aS  Locator.get_by_role

        Allows locating elements by their [ARIA role](https://www.w3.org/TR/wai-aria-1.2/#roles),
        [ARIA attributes](https://www.w3.org/TR/wai-aria-1.2/#aria-attributes) and
        [accessible name](https://w3c.github.io/accname/#dfn-accessible-name).

        **Usage**

        Consider the following DOM structure.

        ```html
        <h3>Sign up</h3>
        <label>
          <input type="checkbox" /> Subscribe
        </label>
        <br/>
        <button>Submit</button>
        ```

        You can locate each element by it's implicit role:

        ```py
        await expect(page.get_by_role("heading", name="Sign up")).to_be_visible()

        await page.get_by_role("checkbox", name="Subscribe").check()

        await page.get_by_role("button", name=re.compile("submit", re.IGNORECASE)).click()
        ```

        **Details**

        Role selector **does not replace** accessibility audits and conformance tests, but rather gives early feedback
        about the ARIA guidelines.

        Many html elements have an implicitly [defined role](https://w3c.github.io/html-aam/#html-element-role-mappings)
        that is recognized by the role selector. You can find all the
        [supported roles here](https://www.w3.org/TR/wai-aria-1.2/#role_definitions). ARIA guidelines **do not recommend**
        duplicating implicit roles and attributes by setting `role` and/or `aria-*` attributes to default values.

        Parameters
        ----------
        role : Union["alert", "alertdialog", "application", "article", "banner", "blockquote", "button", "caption", "cell", "checkbox", "code", "columnheader", "combobox", "complementary", "contentinfo", "definition", "deletion", "dialog", "directory", "document", "emphasis", "feed", "figure", "form", "generic", "grid", "gridcell", "group", "heading", "img", "insertion", "link", "list", "listbox", "listitem", "log", "main", "marquee", "math", "menu", "menubar", "menuitem", "menuitemcheckbox", "menuitemradio", "meter", "navigation", "none", "note", "option", "paragraph", "presentation", "progressbar", "radio", "radiogroup", "region", "row", "rowgroup", "rowheader", "scrollbar", "search", "searchbox", "separator", "slider", "spinbutton", "status", "strong", "subscript", "superscript", "switch", "tab", "table", "tablist", "tabpanel", "term", "textbox", "time", "timer", "toolbar", "tooltip", "tree", "treegrid", "treeitem"]
            Required aria role.
        checked : Union[bool, None]
            An attribute that is usually set by `aria-checked` or native `<input type=checkbox>` controls.

            Learn more about [`aria-checked`](https://www.w3.org/TR/wai-aria-1.2/#aria-checked).
        disabled : Union[bool, None]
            An attribute that is usually set by `aria-disabled` or `disabled`.

            **NOTE** Unlike most other attributes, `disabled` is inherited through the DOM hierarchy. Learn more about
            [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.2/#aria-disabled).

        expanded : Union[bool, None]
            An attribute that is usually set by `aria-expanded`.

            Learn more about [`aria-expanded`](https://www.w3.org/TR/wai-aria-1.2/#aria-expanded).
        include_hidden : Union[bool, None]
            Option that controls whether hidden elements are matched. By default, only non-hidden elements, as
            [defined by ARIA](https://www.w3.org/TR/wai-aria-1.2/#tree_exclusion), are matched by role selector.

            Learn more about [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.2/#aria-hidden).
        level : Union[int, None]
            A number attribute that is usually present for roles `heading`, `listitem`, `row`, `treeitem`, with default values
            for `<h1>-<h6>` elements.

            Learn more about [`aria-level`](https://www.w3.org/TR/wai-aria-1.2/#aria-level).
        name : Union[Pattern[str], str, None]
            Option to match the [accessible name](https://w3c.github.io/accname/#dfn-accessible-name). By default, matching is
            case-insensitive and searches for a substring, use `exact` to control this behavior.

            Learn more about [accessible name](https://w3c.github.io/accname/#dfn-accessible-name).
        pressed : Union[bool, None]
            An attribute that is usually set by `aria-pressed`.

            Learn more about [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.2/#aria-pressed).
        selected : Union[bool, None]
            An attribute that is usually set by `aria-selected`.

            Learn more about [`aria-selected`](https://www.w3.org/TR/wai-aria-1.2/#aria-selected).
        exact : Union[bool, None]
            Whether `name` is matched exactly: case-sensitive and whole-string. Defaults to false. Ignored when `name` is a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        rD  rF  rH  s              rI   rG  zLocator.get_by_rolec>  rI  rK   rJ  c                 `    t        j                  | j                  j                  |            S )u  Locator.get_by_test_id

        Locate element by the test id.

        **Usage**

        Consider the following DOM structure.

        ```html
        <button data-testid="directions">Itinéraire</button>
        ```

        You can locate the element by it's test id:

        ```py
        await page.get_by_test_id("directions").click()
        ```

        **Details**

        By default, the `data-testid` attribute is used as a test id. Use `selectors.set_test_id_attribute()` to
        configure a different test id attribute if necessary.

        Parameters
        ----------
        test_id : Union[Pattern[str], str]
            Id to locate the element by.

        Returns
        -------
        Locator
        rL  rN  rP  s     rI   rO  zLocator.get_by_test_id,?  rQ  rK   c                b    t        j                  | j                  j                  ||            S )a  Locator.get_by_text

        Allows locating elements that contain given text.

        See also `locator.filter()` that allows to match by another criteria, like an accessible role, and then
        filter by the text content.

        **Usage**

        Consider the following DOM structure:

        ```html
        <div>Hello <span>world</span></div>
        <div>Hello</div>
        ```

        You can locate by text substring, exact string, or a regular expression:

        ```py
        # Matches <span>
        page.get_by_text("world")

        # Matches first <div>
        page.get_by_text("Hello world")

        # Matches second <div>
        page.get_by_text("Hello", exact=True)

        # Matches both <div>s
        page.get_by_text(re.compile("Hello"))

        # Matches second <div>
        page.get_by_text(re.compile("^hello$", re.IGNORECASE))
        ```

        **Details**

        Matching by text always normalizes whitespace, even with exact match. For example, it turns multiple spaces into
        one, turns line breaks into spaces and ignores leading and trailing whitespace.

        Input elements of the type `button` and `submit` are matched by their `value` instead of the text content. For
        example, locating by text `"Log in"` matches `<input type=button value="Log in">`.

        Parameters
        ----------
        text : Union[Pattern[str], str]
            Text to locate the element for.
        exact : Union[bool, None]
            Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        r  rS  r  s      rI   rT  zLocator.get_by_textR?  rU  rK   c                b    t        j                  | j                  j                  ||            S )a<  Locator.get_by_title

        Allows locating elements by their title attribute.

        **Usage**

        Consider the following DOM structure.

        ```html
        <span title='Issues count'>25 issues</span>
        ```

        You can check the issues count after locating it by the title text:

        ```py
        await expect(page.get_by_title("Issues count")).to_have_text("25 issues")
        ```

        Parameters
        ----------
        text : Union[Pattern[str], str]
            Text to locate the element for.
        exact : Union[bool, None]
            Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a
            regular expression. Note that exact match still trims whitespace.

        Returns
        -------
        Locator
        r  rW  r  s      rI   rX  zLocator.get_by_title?  rY  rK   r,  c                 `    t        j                  | j                  j                  |            S )a  Locator.frame_locator

        When working with iframes, you can create a frame locator that will enter the iframe and allow locating elements in
        that iframe:

        **Usage**

        ```py
        locator = page.frame_locator("iframe").get_by_text("Submit")
        await locator.click()
        ```

        Parameters
        ----------
        selector : str
            A selector to use when resolving DOM element.

        Returns
        -------
        FrameLocator
        r.  r[  r1  s     rI   r\  zLocator.frame_locator?  s'    .   !=!=x!=!PQQrK   r'   c                |   K   t        j                  | j                  j                  |       d{         S 7 w)aC  Locator.element_handle

        Resolves given locator to the first matching DOM element. If there are no matching elements, waits for one. If
        multiple elements match the locator, throws.

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        ElementHandle
        r  N)r   rY   rE   element_handler  s     rI   r  zLocator.element_handle?  s1     &   t~~'D'DW'D'U!UVV!Ur   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zLocator.element_handles

        Resolves given locator to all matching DOM elements. If there are no matching elements, returns an empty list.

        Returns
        -------
        List[ElementHandle]
        N)r   rv   rE   element_handlesrG   s    rI   r  zLocator.element_handles?  s,      %%DNN,J,J,L&LMM&Lrk   r  c                 `    t        j                  | j                  j                  |            S )aU  Locator.nth

        Returns locator to the n-th matching element. It's zero based, `nth(0)` selects the first element.

        **Usage**

        ```py
        banana = await page.get_by_role("listitem").nth(2)
        ```

        Parameters
        ----------
        index : int

        Returns
        -------
        Locator
        r  r  r  s     rI   r  zLocator.nth?  s'    (   !3!3%!3!@AArK   c                    t        j                  | j                  j                  |||r|j                  nd|r|j                              S d            S )a}	  Locator.filter

        This method narrows existing locator according to the options, for example filters by text. It can be chained to
        filter multiple times.

        **Usage**

        ```py
        row_locator = page.locator("tr")
        # ...
        await row_locator.filter(has_text="text in column 1").filter(
            has=page.get_by_role("button", name="column 2 button")
        ).screenshot()

        ```

        Parameters
        ----------
        has_text : Union[Pattern[str], str, None]
            Matches elements containing specified text somewhere inside, possibly in a child or a descendant element. When
            passed a [string], matching is case-insensitive and searches for a substring. For example, `"Playwright"` matches
            `<article><div>Playwright</div></article>`.
        has_not_text : Union[Pattern[str], str, None]
            Matches elements that do not contain specified text somewhere inside, possibly in a child or a descendant element.
            When passed a [string], matching is case-insensitive and searches for a substring.
        has : Union[Locator, None]
            Narrows down the results of the method to those which contain elements matching this relative locator. For example,
            `article` that has `text=Playwright` matches `<article><div>Playwright</div></article>`.

            Inner locator **must be relative** to the outer locator and is queried starting with the outer locator match, not
            the document root. For example, you can find `content` that has `div` in
            `<article><content><div>Playwright</div></content></article>`. However, looking for `content` that has `article
            div` will fail, because the inner locator must be relative and should not use any elements outside the `content`.

            Note that outer and inner locators must belong to the same frame. Inner locator must not contain `FrameLocator`s.
        has_not : Union[Locator, None]
            Matches elements that do not contain an element that matches an inner locator. Inner locator is queried against the
            outer one. For example, `article` that does not have `div` matches `<article><span>Playwright</span></article>`.

            Note that outer and inner locators must belong to the same frame. Inner locator must not contain `FrameLocator`s.

        Returns
        -------
        Locator
        N)r  r  r  r  )r   rY   rE   filter)rH   r  r  r  r  s        rI   r  zLocator.filter	@  sd    l   NN!! '%(CMMd,3w((	 " 
 	

 :>	 " 
 	
rK   c                 t    t        j                  | j                  j                  |j                              S )a  Locator.or_

        Creates a locator matching all elements that match one or both of the two locators.

        Note that when both locators match something, the resulting locator will have multiple matches, potentially causing
        a [locator strictness](https://playwright.dev/python/docs/locators#strictness) violation.

        **Usage**

        Consider a scenario where you'd like to click on a "New email" button, but sometimes a security settings dialog
        shows up instead. In this case, you can wait for either a "New email" button, or a dialog and act accordingly.

        **NOTE** If both "New email" button and security dialog appear on screen, the "or" locator will match both of them,
        possibly throwing the ["strict mode violation" error](https://playwright.dev/python/docs/locators#strictness). In this case, you can use
        `locator.first()` to only match one of them.

        ```py
        new_email = page.get_by_role("button", name="New")
        dialog = page.get_by_text("Confirm security settings")
        await expect(new_email.or_(dialog).first).to_be_visible()
        if (await dialog.is_visible()):
          await page.get_by_role("button", name="Dismiss").click()
        await new_email.click()
        ```

        Parameters
        ----------
        locator : Locator
            Alternative locator to match.

        Returns
        -------
        Locator
        r_  )r   rY   rE   or_ra  s     rI   r  zLocator.or_H@  s.    H   !3!3G<M<M!3!NOOrK   c                 t    t        j                  | j                  j                  |j                              S )a  Locator.and_

        Creates a locator that matches both this locator and the argument locator.

        **Usage**

        The following example finds a button with a specific title.

        ```py
        button = page.get_by_role("button").and_(page.getByTitle("Subscribe"))
        ```

        Parameters
        ----------
        locator : Locator
            Additional locator to match.

        Returns
        -------
        Locator
        r_  )r   rY   rE   and_ra  s     rI   r  zLocator.and_n@  s-    .   !4!4W=N=N!4!OPPrK   c                |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Locator.focus

        Calls [focus](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus) on the matching element.

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        r  Nr  r  s     rI   r  zLocator.focus@  s1      &&T^^-A-A'-A-R'RSS'Rr   c                |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Locator.blur

        Calls [blur](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/blur) on the element.

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        r  N)r   rD   rE   blurr  s     rI   r  zLocator.blur@  s1      &&T^^-@-@-@-Q'QRR'Qr   c                 x   K   t        j                  | j                  j                          d{         S 7 w)a  Locator.all

        When the locator points to a list of elements, this returns an array of locators, pointing to their respective
        elements.

        **NOTE** `locator.all()` does not wait for elements to match the locator, and instead immediately returns
        whatever is present in the page.

        When the list of elements changes dynamically, `locator.all()` will produce unpredictable and flaky
        results.

        When the list of elements is stable, but loaded dynamically, wait for the full list to finish loading before
        calling `locator.all()`.

        **Usage**

        ```py
        for li in await page.get_by_role('listitem').all():
          await li.click();
        ```

        Returns
        -------
        List[Locator]
        N)r   rv   rE   allrG   s    rI   r  zLocator.all@  s,     6 %%DNN,>,>,@&@AA&@rk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)a  Locator.count

        Returns the number of elements matching the locator.

        **NOTE** If you need to assert the number of elements on the page, prefer `locator_assertions.to_have_count()`
        to avoid flakiness. See [assertions guide](https://playwright.dev/python/docs/test-assertions) for more details.

        **Usage**

        ```py
        count = await page.get_by_role("listitem").count()
        ```

        Returns
        -------
        int
        N)r   rD   rE   countrG   s    rI   r  zLocator.count@  s,     & &&T^^-A-A-C'CDD'Crk   )r  r  r   r  rm  rn  rp  rm  rn  c                   K   t        j                  | j                  j                  |j                  ||||||       d{         S 7 w)ax  Locator.drag_to

        Drag the source element towards the target element and drop it.

        **Details**

        This method drags the locator to another target locator or target position. It will first move to the source
        element, perform a `mousedown`, then move to the target element or position and perform a `mouseup`.

        **Usage**

        ```py
        source = page.locator("#source")
        target = page.locator("#target")

        await source.drag_to(target)
        # or specify exact positions relative to the top-left corners of the elements:
        await source.drag_to(
          target,
          source_position={"x": 34, "y": 7},
          target_position={"x": 10, "y": 20}
        )
        ```

        Parameters
        ----------
        target : Locator
            Locator of the element to drag to.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        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.
        source_position : Union[{x: float, y: float}, None]
            Clicks on the source element at this point relative to the top-left corner of the element's padding box. If not
            specified, some visible point of the element is used.
        target_position : Union[{x: float, y: float}, None]
            Drops on the target element at this point relative to the top-left corner of the element's padding box. If not
            specified, some visible point of the element is used.
        )rp  r  r  r   r  rr  rs  N)r   rD   rE   drag_to)rH   rp  r  r  r   r  rm  rn  s           rI   r  zLocator.drag_to@  sX     t &&..(('').. )  

 
	
r  c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)a  Locator.get_attribute

        Returns the matching element's attribute value.

        **NOTE** If you need to assert an element's attribute, prefer `locator_assertions.to_have_attribute()` to
        avoid flakiness. See [assertions guide](https://playwright.dev/python/docs/test-assertions) for more details.

        Parameters
        ----------
        name : str
            Attribute name to get the value for.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        Union[str, None]
        )ry   r   Nr  )rH   ry   r   s      rI   r  zLocator.get_attributeA  s8     . &&....D'.JJ
 	
Jr"  r  c          
         K   t        j                  | j                  j                  t        j                  |      |||||       d{         S 7 w)a	  Locator.hover

        Hover over the matching element.

        **Usage**

        ```py
        await page.get_by_role("link").hover()
        ```

        **Details**

        This method hovers over the element by performing the following steps:
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the element, unless `force` option is set.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to hover over the center of the element, or the specified `position`.

        If the element is detached from the DOM at any moment during the action, this method throws.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        Parameters
        ----------
        modifiers : Union[Sequence[Union["Alt", "Control", "ControlOrMeta", "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. "ControlOrMeta" resolves to
            "Control" on Windows and Linux and to "Meta" on macOS.
        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, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        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. Note that keyboard
            `modifiers` will be pressed regardless of `trial` to allow testing elements which are only visible when those keys
            are pressed.
        r  Nr  r  s          rI   r  zLocator.hover6A  sX     t &&..&&!//)4!) '  	
 		
r  c                |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Locator.inner_html

        Returns the [`element.innerHTML`](https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML).

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        str
        r  Nr  r  s     rI   r  zLocator.inner_html{A  s1       &&T^^-F-Fw-F-W'WXX'Wr   c                |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Locator.inner_text

        Returns the [`element.innerText`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText).

        **NOTE** If you need to assert text on the page, prefer `locator_assertions.to_have_text()` with
        `useInnerText` option to avoid flakiness. See [assertions guide](https://playwright.dev/python/docs/test-assertions) for more details.

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        str
        r  Nr  r  s     rI   r  zLocator.inner_textA  s1     & &&T^^-F-Fw-F-W'WXX'Wr   c                |   K   t        j                  | j                  j                  |       d{         S 7 w)ah  Locator.input_value

        Returns the value for the matching `<input>` or `<textarea>` or `<select>` element.

        **NOTE** If you need to assert input value, prefer `locator_assertions.to_have_value()` to avoid flakiness.
        See [assertions guide](https://playwright.dev/python/docs/test-assertions) for more details.

        **Usage**

        ```py
        value = await page.get_by_role("textbox").input_value()
        ```

        **Details**

        Throws elements that are not an input, textarea or a select. However, if the element is inside the `<label>`
        element that has an associated
        [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), returns the value of the
        control.

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        str
        r  Nr  r  s     rI   r  zLocator.input_valueA  s7     @ &&..,,W,==
 	
=r   c                |   K   t        j                  | j                  j                  |       d{         S 7 w)aI  Locator.is_checked

        Returns whether the element is checked. Throws if the element is not a checkbox or radio input.

        **NOTE** If you need to assert that checkbox is checked, prefer `locator_assertions.to_be_checked()` to avoid
        flakiness. See [assertions guide](https://playwright.dev/python/docs/test-assertions) for more details.

        **Usage**

        ```py
        checked = await page.get_by_role("checkbox").is_checked()
        ```

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        bool
        r  Nr  r  s     rI   r  zLocator.is_checkedA  1     2 &&T^^-F-Fw-F-W'WXX'Wr   c                |   K   t        j                  | j                  j                  |       d{         S 7 w)al  Locator.is_disabled

        Returns whether the element is disabled, the opposite of [enabled](https://playwright.dev/python/docs/actionability#enabled).

        **NOTE** If you need to assert that an element is disabled, prefer `locator_assertions.to_be_disabled()` to
        avoid flakiness. See [assertions guide](https://playwright.dev/python/docs/test-assertions) for more details.

        **Usage**

        ```py
        disabled = await page.get_by_role("button").is_disabled()
        ```

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        bool
        r  Nr  r  s     rI   r  zLocator.is_disabledA  s6     2 &&..,,W,==
 	
=r   c                |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Locator.is_editable

        Returns whether the element is [editable](https://playwright.dev/python/docs/actionability#editable). If the target element is not an `<input>`,
        `<textarea>`, `<select>`, `[contenteditable]` and does not have a role allowing `[aria-readonly]`, this method
        throws an error.

        **NOTE** If you need to assert that an element is editable, prefer `locator_assertions.to_be_editable()` to
        avoid flakiness. See [assertions guide](https://playwright.dev/python/docs/test-assertions) for more details.

        **Usage**

        ```py
        editable = await page.get_by_role("textbox").is_editable()
        ```

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        bool
        r  Nr  r  s     rI   r  zLocator.is_editableA  s6     6 &&..,,W,==
 	
=r   c                |   K   t        j                  | j                  j                  |       d{         S 7 w)aM  Locator.is_enabled

        Returns whether the element is [enabled](https://playwright.dev/python/docs/actionability#enabled).

        **NOTE** If you need to assert that an element is enabled, prefer `locator_assertions.to_be_enabled()` to
        avoid flakiness. See [assertions guide](https://playwright.dev/python/docs/test-assertions) for more details.

        **Usage**

        ```py
        enabled = await page.get_by_role("button").is_enabled()
        ```

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        bool
        r  Nr  r  s     rI   r  zLocator.is_enabledB  r  r   c                |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Locator.is_hidden

        Returns whether the element is hidden, the opposite of [visible](https://playwright.dev/python/docs/actionability#visible).

        **NOTE** If you need to assert that element is hidden, prefer `locator_assertions.to_be_hidden()` to avoid
        flakiness. See [assertions guide](https://playwright.dev/python/docs/test-assertions) for more details.

        **Usage**

        ```py
        hidden = await page.get_by_role("button").is_hidden()
        ```

        Parameters
        ----------
        timeout : Union[float, None]
            Deprecated: This option is ignored. `locator.is_hidden()` does not wait for the element to become hidden and returns immediately.

        Returns
        -------
        bool
        r  Nr  r  s     rI   r  zLocator.is_hidden8B  s1     0 &&T^^-E-Eg-E-V'VWW'Vr   c                |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Locator.is_visible

        Returns whether the element is [visible](https://playwright.dev/python/docs/actionability#visible).

        **NOTE** If you need to assert that element is visible, prefer `locator_assertions.to_be_visible()` to avoid
        flakiness. See [assertions guide](https://playwright.dev/python/docs/test-assertions) for more details.

        **Usage**

        ```py
        visible = await page.get_by_role("button").is_visible()
        ```

        Parameters
        ----------
        timeout : Union[float, None]
            Deprecated: This option is ignored. `locator.is_visible()` does not wait for the element to become visible and returns immediately.

        Returns
        -------
        bool
        r  Nr  r  s     rI   r  zLocator.is_visibleRB  s1     0 &&T^^-F-Fw-F-W'WXX'Wr   r  r0  c                   K   t        j                  | j                  j                  ||||       d{         S 7 w)a/
  Locator.press

        Focuses the matching element and presses a combination of the keys.

        **Usage**

        ```py
        await page.get_by_role("textbox").press("Backspace")
        ```

        **Details**

        Focuses the element, and then uses `keyboard.down()` and `keyboard.up()`.

        `key` can specify the intended
        [keyboardEvent.key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) value or a single character
        to generate the text for. A superset of the `key` values can be found
        [here](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values). Examples of the keys are:

        `F1` - `F12`, `Digit0`- `Digit9`, `KeyA`- `KeyZ`, `Backquote`, `Minus`, `Equal`, `Backslash`, `Backspace`, `Tab`,
        `Delete`, `Escape`, `ArrowDown`, `End`, `Enter`, `Home`, `Insert`, `PageDown`, `PageUp`, `ArrowRight`, `ArrowUp`,
        etc.

        Following modification shortcuts are also supported: `Shift`, `Control`, `Alt`, `Meta`, `ShiftLeft`,
        `ControlOrMeta`. `ControlOrMeta` resolves to `Control` on Windows and Linux and to `Meta` on macOS.

        Holding down `Shift` will type the text that corresponds to the `key` in the upper case.

        If `key` is a single character, it is case-sensitive, so the values `a` and `A` will generate different respective
        texts.

        Shortcuts such as `key: "Control+o"`, `key: "Control++` or `key: "Control+Shift+T"` are supported as well. When
        specified with the modifier, modifier is pressed and being held while the subsequent key is being pressed.

        Parameters
        ----------
        key : str
            Name of the key to press or a character to generate, such as `ArrowLeft` or `a`.
        delay : Union[float, None]
            Time to wait between `keydown` and `keyup` in milliseconds. Defaults to 0.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        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`.
            Deprecated: This option will default to `true` in the future.
        r  Nr@  r  s        rI   rA  zLocator.presslB  sF     t &&..&&ug= '  
 	
rY  r  r  r   r  r  r  r  r  r  r  r!  r  r  r  c                   K   t        j                  | j                  j                  ||||||||t        j                  |	      |
|       d{         S 7 w)a5  Locator.screenshot

        Take a screenshot of the element matching the locator.

        **Usage**

        ```py
        await page.get_by_role("link").screenshot()
        ```

        Disable animations and save screenshot to a file:

        ```py
        await page.get_by_role("link").screenshot(animations="disabled", path="link.png")
        ```

        **Details**

        This method captures a screenshot of the page, clipped to the size and position of a particular element matching
        the locator. If the element is covered by other elements, it will not be actually visible on the screenshot. If the
        element is a scrollable container, only the currently scrolled content will be visible on the screenshot.

        This method waits for the [actionability](https://playwright.dev/python/docs/actionability) checks, then scrolls element into view before taking
        a screenshot. If the element is detached from DOM, the method throws an error.

        Returns the buffer with the captured screenshot.

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        type : Union["jpeg", "png", None]
            Specify screenshot type, defaults to `png`.
        path : Union[pathlib.Path, str, None]
            The file path to save the image to. The screenshot type will be inferred from file extension. If `path` is a
            relative path, then it is resolved relative to the current working directory. If no path is provided, the image
            won't be saved to the disk.
        quality : Union[int, None]
            The quality of the image, between 0-100. Not applicable to `png` images.
        omit_background : Union[bool, None]
            Hides default white background and allows capturing screenshots with transparency. Not applicable to `jpeg` images.
            Defaults to `false`.
        animations : Union["allow", "disabled", None]
            When set to `"disabled"`, stops CSS animations, CSS transitions and Web Animations. Animations get different
            treatment depending on their duration:
            - finite animations are fast-forwarded to completion, so they'll fire `transitionend` event.
            - infinite animations are canceled to initial state, and then played over after the screenshot.

            Defaults to `"allow"` that leaves animations untouched.
        caret : Union["hide", "initial", None]
            When set to `"hide"`, screenshot will hide text caret. When set to `"initial"`, text caret behavior will not be
            changed.  Defaults to `"hide"`.
        scale : Union["css", "device", None]
            When set to `"css"`, screenshot will have a single pixel per each css pixel on the page. For high-dpi devices, this
            will keep screenshots small. Using `"device"` option will produce a single pixel per each device pixel, so
            screenshots of high-dpi devices will be twice as large or even larger.

            Defaults to `"device"`.
        mask : Union[Sequence[Locator], None]
            Specify locators that should be masked when the screenshot is taken. Masked elements will be overlaid with a pink
            box `#FF00FF` (customized by `maskColor`) that completely covers its bounding box.
        mask_color : Union[str, None]
            Specify the color of the overlay box for masked elements, in
            [CSS color format](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value). Default color is pink `#FF00FF`.
        style : Union[str, None]
            Text of the stylesheet to apply while making the screenshot. This is where you can hide dynamic elements, make
            elements invisible or change their properties to help you creating repeatable screenshots. This stylesheet pierces
            the Shadow DOM and applies to the inner frames.

        Returns
        -------
        bytes
        r%  Nr(  r*  s               rI   r)  zLocator.screenshotB  sg     t &&..++.%__T*$ ,  
 	
r+  c                |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Locator.aria_snapshot

        Captures the aria snapshot of the given element. Read more about [aria snapshots](https://playwright.dev/python/docs/aria-snapshots) and
        `locator_assertions.to_match_aria_snapshot()` for the corresponding assertion.

        **Usage**

        ```py
        await page.get_by_role("link").aria_snapshot()
        ```

        **Details**

        This method captures the aria snapshot of the given element. The snapshot is a string that represents the state of
        the element and its children. The snapshot can be used to assert the state of the element in the test, or to
        compare it to state in the future.

        The ARIA snapshot is represented using [YAML](https://yaml.org/spec/1.2.2/) markup language:
        - The keys of the objects are the roles and optional accessible names of the elements.
        - The values are either text content or an array of child elements.
        - Generic static text can be represented with the `text` key.

        Below is the HTML markup and the respective ARIA snapshot:

        ```html
        <ul aria-label="Links">
          <li><a href="/">Home</a></li>
          <li><a href="/about">About</a></li>
        <ul>
        ```

        ```yml
        - list "Links":
          - listitem:
            - link "Home"
          - listitem:
            - link "About"
        ```

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        str
        r  N)r   rD   rE   aria_snapshotr  s     rI   r  zLocator.aria_snapshotC  s7     f &&....w.??
 	
?r   c                |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Locator.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 completely visible as defined by
        [IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API)'s `ratio`.

        See [scrolling](https://playwright.dev/python/docs/input#scrolling) for alternative ways to scroll.

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        r  Nr  r  s     rI   r  z"Locator.scroll_into_view_if_neededMC  s6     $ &&..;;G;LL
 	
Lr   )r  r  r  r   r  r  r  r  c                   K   t        j                  | j                  j                  t        j                  |      t        j                  |      t        j                  |      t        j                  |      |||       d{         S 7 w)a
  Locator.select_option

        Selects option or options in `<select>`.

        **Details**

        This method waits for [actionability](https://playwright.dev/python/docs/actionability) checks, waits until all specified options are present in
        the `<select>` element and selects these options.

        If the target element is not a `<select>` element, this method throws an error. However, if the element is inside
        the `<label>` element that has an associated
        [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be used
        instead.

        Returns the array of option values that have been successfully selected.

        Triggers a `change` and `input` event once all the provided options have been selected.

        **Usage**

        ```html
        <select multiple>
          <option value="red">Red</div>
          <option value="green">Green</div>
          <option value="blue">Blue</div>
        </select>
        ```

        ```py
        # single selection matching the value or label
        await element.select_option("blue")
        # single selection matching the label
        await element.select_option(label="blue")
        # multiple selection for blue, red and second option
        await element.select_option(value=["red", "green", "blue"])
        ```

        Parameters
        ----------
        value : Union[Sequence[str], str, None]
            Options to select by value. If the `<select>` has the `multiple` attribute, all given options are selected,
            otherwise only the first option matching one of the passed options is selected. Optional.
        index : Union[Sequence[int], int, None]
            Options to select by index. Optional.
        label : Union[Sequence[str], str, None]
            Options to select by label. If the `<select>` 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, Sequence[ElementHandle], None]
            Option elements to select. Optional.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.

        Returns
        -------
        List[str]
        )r  r  r  r  r   r  r  Nr  )rH   r  r  r  r  r   r  r  s           rI   r  zLocator.select_optioncC  sv     X &&....ooe,ooe,ooe,0) /  

 
	
r  r  c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)at  Locator.select_text

        This method waits for [actionability](https://playwright.dev/python/docs/actionability) checks, then focuses the element and selects all its
        text content.

        If the element is inside the `<label>` element that has an associated
        [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), focuses and selects text in
        the control instead.

        Parameters
        ----------
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        r  Nr  r  s      rI   r  zLocator.select_textC  r  r"  r  r  c                   K   t        j                  | j                  j                  t        j                  |      ||       d{         S 7 w)aq  Locator.set_input_files

        Upload file or multiple files into `<input type=file>`. For inputs with a `[webkitdirectory]` attribute, only a
        single directory path is supported.

        **Usage**

        ```py
        # Select one file
        await page.get_by_label("Upload file").set_input_files('myfile.pdf')

        # Select multiple files
        await page.get_by_label("Upload files").set_input_files(['file1.txt', 'file2.txt'])

        # Select a directory
        await page.get_by_label("Upload directory").set_input_files('mydir')

        # Remove all the selected files
        await page.get_by_label("Upload file").set_input_files([])

        # Upload buffer from memory
        await page.get_by_label("Upload file").set_input_files(
            files=[
                {"name": "test.txt", "mimeType": "text/plain", "buffer": b"this is a test"}
            ],
        )
        ```

        **Details**

        Sets the value of the file input to these file paths or files. If some of the `filePaths` are relative paths, then
        they are resolved relative to the current working directory. For empty array, clears the selected files.

        This method expects `Locator` to point to an
        [input element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input). However, if the element is inside
        the `<label>` element that has an associated
        [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), targets the control instead.

        Parameters
        ----------
        files : Union[Sequence[Union[pathlib.Path, str]], Sequence[{name: str, mimeType: str, buffer: bytes}], pathlib.Path, str, {name: str, mimeType: str, buffer: bytes}]
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        r  Nr  r  s       rI   r  zLocator.set_input_filesC  sM     | &&..00ooe,g= 1  
 	
r  r  c          
         K   t        j                  | j                  j                  t        j                  |      |||||       d{         S 7 w)a	  Locator.tap

        Perform a tap gesture on the element matching the locator.

        **Details**

        This method taps the element by performing the following steps:
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the element, unless `force` option is set.
        1. Scroll the element into view if needed.
        1. Use `page.touchscreen` to tap the center of the element, or the specified `position`.

        If the element is detached from the DOM at any moment during the action, this method throws.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        **NOTE** `element.tap()` requires that the `hasTouch` option of the browser context be set to true.

        Parameters
        ----------
        modifiers : Union[Sequence[Union["Alt", "Control", "ControlOrMeta", "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. "ControlOrMeta" resolves to
            "Control" on Windows and Linux and to "Meta" on macOS.
        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, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        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. Note that keyboard
            `modifiers` will be pressed regardless of `trial` to allow testing elements which are only visible when those keys
            are pressed.
        r  Nr  r  s          rI   rb  zLocator.tapD  sX     l &&..$$!//)4!) %  	
 		
r  c                |   K   t        j                  | j                  j                  |       d{         S 7 w)a  Locator.text_content

        Returns the [`node.textContent`](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent).

        **NOTE** If you need to assert text on the page, prefer `locator_assertions.to_have_text()` to avoid
        flakiness. See [assertions guide](https://playwright.dev/python/docs/test-assertions) for more details.

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.

        Returns
        -------
        Union[str, None]
        r  Nr  r  s     rI   r  zLocator.text_content\D  s6     * &&..--g->>
 	
>r   c                   K   t        j                  | j                  j                  ||||       d{         S 7 w)a  Locator.type

        Focuses the element, and then sends a `keydown`, `keypress`/`input`, and `keyup` event for each character in the
        text.

        To press a special key, like `Control` or `ArrowDown`, use `locator.press()`.

        **Usage**

        Parameters
        ----------
        text : str
            A text to type into a focused element.
        delay : Union[float, None]
            Time to wait between key presses in milliseconds. Defaults to 0.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        r  Nr=  r  s        rI   r>  zLocator.typeuD  r  rY  c                   K   t        j                  | j                  j                  ||||       d{         S 7 w)a  Locator.press_sequentially

        **NOTE** In most cases, you should use `locator.fill()` instead. You only need to press keys one by one if
        there is special keyboard handling on the page.

        Focuses the element, and then sends a `keydown`, `keypress`/`input`, and `keyup` event for each character in the
        text.

        To press a special key, like `Control` or `ArrowDown`, use `locator.press()`.

        **Usage**

        ```py
        await locator.press_sequentially("hello") # types instantly
        await locator.press_sequentially("world", delay=100) # types slower, like a user
        ```

        An example of typing into a text field and then submitting the form:

        ```py
        locator = page.get_by_label("Password")
        await locator.press_sequentially("my password")
        await locator.press("Enter")
        ```

        Parameters
        ----------
        text : str
            String of characters to sequentially press into a focused element.
        delay : Union[float, None]
            Time to wait between key presses in milliseconds. Defaults to 0.
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        r  N)r   rD   rE   press_sequentiallyr  s        rI   r  zLocator.press_sequentiallyD  sF     ^ &&..33] 4  
 	
rY  c          	         K   t        j                  | j                  j                  |||||       d{         S 7 w)aC  Locator.uncheck

        Ensure that checkbox or radio element is unchecked.

        **Usage**

        ```py
        await page.get_by_role("checkbox").uncheck()
        ```

        **Details**

        This method unchecks the element by performing the following steps:
        1. Ensure that element is a checkbox or a radio input. If not, this method throws. If the element is already
           unchecked, this method returns immediately.
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the element, unless `force` option is set.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to click in the center of the element.
        1. Ensure that the element is now unchecked. If not, this method throws.

        If the element is detached from the DOM at any moment during the action, this method throws.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        Parameters
        ----------
        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, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        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.
        r  Nr
  r  s         rI   r  zLocator.uncheckD  sL     h &&..((!) )  
 	
rV  c                 x   K   t        j                  | j                  j                          d{         S 7 w)a  Locator.all_inner_texts

        Returns an array of `node.innerText` values for all matching nodes.

        **NOTE** If you need to assert text on the page, prefer `locator_assertions.to_have_text()` with
        `useInnerText` option to avoid flakiness. See [assertions guide](https://playwright.dev/python/docs/test-assertions) for more details.

        **Usage**

        ```py
        texts = await page.get_by_role("link").all_inner_texts()
        ```

        Returns
        -------
        List[str]
        N)r   rD   rE   all_inner_textsrG   s    rI   r  zLocator.all_inner_textsE  s,     & &&T^^-K-K-M'MNN'Mrk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)a  Locator.all_text_contents

        Returns an array of `node.textContent` values for all matching nodes.

        **NOTE** If you need to assert text on the page, prefer `locator_assertions.to_have_text()` to avoid
        flakiness. See [assertions guide](https://playwright.dev/python/docs/test-assertions) for more details.

        **Usage**

        ```py
        texts = await page.get_by_role("link").all_text_contents()
        ```

        Returns
        -------
        List[str]
        N)r   rD   rE   all_text_contentsrG   s    rI   r  zLocator.all_text_contents"E  s,     & &&T^^-M-M-O'OPP'Ork   r   r>  r>  rI  c                ~   K   t        j                  | j                  j                  ||       d{         S 7 w)a  Locator.wait_for

        Returns when element specified by locator satisfies the `state` option.

        If target element already satisfies the condition, the method returns immediately. Otherwise, waits for up to
        `timeout` milliseconds until the condition is met.

        **Usage**

        ```py
        order_sent = page.locator("#order-sent")
        await order_sent.wait_for()
        ```

        Parameters
        ----------
        timeout : Union[float, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        state : Union["attached", "detached", "hidden", "visible", None]
            Defaults to `'visible'`. Can be either:
            - `'attached'` - wait for element to be present in DOM.
            - `'detached'` - wait for element to not be present in DOM.
            - `'visible'` - wait for element to have non-empty bounding box and no `visibility:hidden`. Note that element
              without any content or with `display:none` has an empty bounding box and is not considered visible.
            - `'hidden'` - wait for element to be either detached from DOM, or have an empty bounding box or
              `visibility:hidden`. This is opposite to the `'visible'` option.
        r  N)r   rD   rE   wait_for)rH   r   r>  s      rI   r  zLocator.wait_for7E  s9     J &&..))')GG
 	
Gr"  c          
         K   t        j                  | j                  j                  ||||||       d{         S 7 w)a  Locator.set_checked

        Set the state of a checkbox or a radio element.

        **Usage**

        ```py
        await page.get_by_role("checkbox").set_checked(True)
        ```

        **Details**

        This method checks or unchecks an element by performing the following steps:
        1. Ensure that matched element is a checkbox or a radio input. If not, this method throws.
        1. If the element already has the right checked state, this method returns immediately.
        1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the matched element, unless `force` option is set. If
           the element is detached during the checks, the whole action is retried.
        1. Scroll the element into view if needed.
        1. Use `page.mouse` to click in the center of the element.
        1. Ensure that the element is now checked or unchecked. If not, this method throws.

        When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`.
        Passing zero timeout disables this.

        Parameters
        ----------
        checked : bool
            Whether to check or uncheck the checkbox.
        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, None]
            Maximum time 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()` or `page.set_default_timeout()` methods.
        force : Union[bool, None]
            Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`.
        no_wait_after : Union[bool, None]
            This option has no effect.
            Deprecated: This option has no effect.
        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.
        r  Nr   r  s          rI   r  zLocator.set_checked`E  sO     l &&..,,!) -  	
 		
r  c                 x   K   t        j                  | j                  j                          d{         S 7 w)zLocator.highlight

        Highlight the corresponding element(s) on the screen. Useful for debugging, don't commit the code that uses
        `locator.highlight()`.
        N)r   rD   rE   	highlightrG   s    rI   r  zLocator.highlightE  s,      &&T^^-E-E-G'GHH'Grk   ra  r  r  r   )r  r3   rA   r3   r   )Ur   r   r   r   rY  r  r  r  r   r   r   r   r  r   r   r  rO  r   r   rU  rX  r   r   r  r   ri  r|  rn  r  r  r   r  r  r  r  r  rG  rO  rT  rX  r\  r  r   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  rA  r   r   r   r)  r  r  r  r  r   r  rb  r  r>  r  r  r  r  r  r  r  r   rK   rI   r3   r3   4;  sx   	6 	6 	7 	7 6 6" ? ?4 48)
 //%0)
		#)
\ /3*.'+/3'+<
 //(+<
 '	<

 t$<
 t,<
 t$<
 
<
F .2(,FJ,0*.'+/3'+\
 ??OOG$VWX
\
 //(+\
 u%\
 (A BC\
 __S)\
 '\
 t$\
 t,\
 t$\
 
\
F .2(,FJ*.'+/3'+G
 ??OOG$VWX
G
 //(+G
 u%G
 (A BCG
 'G
 t$G
 t,G
 t$G
 
G
X 48<

 +/<
<
 OOFKK0<

 '<
 
<
B ,0/

 +//
/
 __VZZ(/

 '/
 
/
d CG(
(
$*OOFJJ$?(
	(
Z ,0.

 +/.
.
 __VZZ(.

 '.
 
.
h +//3'+0
0
 '	0

 t,0
 t$0
 
0
j +//3'++
 '+
 t,	+

 t$+
 
+
b MQPT*..28
#\\#y.98
 //&,,sFNN34G/G"HI	8

 oofll3s8K3K&LM8
 __Y'8
 +8
 
8
| (,	#Yll3s 334#Y t$	#Y
 
#YR (,	'Vll3s 334'V t$	'V
 
'VZ (,	'
ll3s 334'
 t$	'

 
'
@ *.*.*.04&*HL)-*.'+G
QS
G
n &oG
p //$'qG
r //$'sG
t -uG
v s#wG
x oofll3s0C+CDEyG
z &{G
| //$'}G
~ t$G
@ 
AG
R$P||C)<$<=$P	$PT (,	>Ull3s 334>U t$	>U
 
>UH (,	%Vll3s 334%V t$	%V
 
%VNRc Rn R4 48W //%0W	W*
Nv{{?'C 
NB B B2 MQPT*..2=
 //&,,sFNN34G/G"HI=
 oofll3s8K3K&LM	=

 __Y'=
 +=
 
=
~$PLQ2 @D Tfooe&< T T ?C SV__U%; St SB6;;y1 B:ES E2 (,/3*.'+5959D
D
 t$	D

 t,D
 'D
 t$D
  2D
  2D
 
D
N ?C

%+__U%;
		
@ .2*./3'+'+C
 ??OOG$VWX
C
 //(+C
 'C
 t,C
 t$C
 t$C
 
C
J EI Y6??5+A YS Y$ EI Y6??5+A YS Y* FJ "
FOOE,B "
c "
H EI Y6??5+A YT Y6 FJ 
FOOE,B 
d 
: FJ 
FOOE,B 
d 
> EI Y6??5+A YT Y6 DH X&//%*@ XD X4 EI Y6??5+A YT Y< )-*./3>
>
 u%	>

 '>
 t,>
 
>
F +/8<AE(,15DH=A;?<@+/&*h
 'h
 oogm45	h

 oofll3+<=>h
 %h
  .h
 OOG,?$@Ah
 w'89:h
 w78h
 oofooi89h
 OOC(h
 s#h
 
h
T HL 5
fooe.D 5
PS 5
p 48
 //%0
	
0 KOV
 KOJN *./3'+V
v||C1E,EFGV
 v||C1E,EFG	V

 v||C1E,EFGV
 LL&///*JJK
V
 'V
 t,V
 t$V
 
S	V
v (,*.	
 t$
 '	

 

L +//3B
||LLOOFLLgll):;<OOK(	*
B
 'B
 t,B
 
B
R .2*.'+/3'+?
 ??OOG$VWX
?
 //(+?
 '?
 t$?
 t,?
 t$?
 
?
D 48
 //%0
		
: )-*./3#
#
 u%	#

 '#
 t,#
 
#
R )-*./33
3
 u%	3

 '3
 t,3
 
3
p /3*.'+/3'+<
 //(+<
 '	<

 t$<
 t,<
 t$<
 
<
|Ov{{3'7 O*QS)9 Q0 +/ '
 ''
 ?@
	'
 
'
Z /3*.'+/3'+?
?
 //(+	?

 '?
 t$?
 t,?
 t$?
 
?
BIrK   r3   c                      e Zd Zedefd       Zedefd       Zedefd       Z	edefd       Z
edej                  eef   fd       Zedej                  e   fd       ZdefdZdefd	Zdej(                  fd
ZddZy)r+   rA   c                 T    t        j                  | j                  j                        S )zAPIResponse.ok

        Contains a boolean stating whether the response was successful (status in the range 200-299) or not.

        Returns
        -------
        bool
        r   rG   s    rI   r   zAPIResponse.okE  r   rK   c                 T    t        j                  | j                  j                        S )zpAPIResponse.url

        Contains the URL of the response.

        Returns
        -------
        str
        rC   rG   s    rI   rF   zAPIResponse.urlE  rJ   rK   c                 T    t        j                  | j                  j                        S )zAPIResponse.status

        Contains the status code of the response (e.g., 200 for a success).

        Returns
        -------
        int
        r   rG   s    rI   r   zAPIResponse.statusE  rP   rK   c                 T    t        j                  | j                  j                        S )zAPIResponse.status_text

        Contains the status text of the response (e.g. usually an "OK" for a success).

        Returns
        -------
        str
        r   rG   s    rI   r   zAPIResponse.status_textE  r   rK   c                 T    t        j                  | j                  j                        S )zAPIResponse.headers

        An object with all the response HTTP headers associated with this response.

        Returns
        -------
        Dict[str, str]
        rf   rG   s    rI   rg   zAPIResponse.headersE  r  rK   c                 T    t        j                  | j                  j                        S )a@  APIResponse.headers_array

        An array with all the response HTTP headers associated with this response. Header names are not lower-cased.
        Headers with multiple entries, such as `Set-Cookie`, appear in the array multiple times.

        Returns
        -------
        List[{name: str, value: str}]
        ru   rG   s    rI   rw   zAPIResponse.headers_arrayE  s     %%dnn&B&BCCrK   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zxAPIResponse.body

        Returns the buffer with response body.

        Returns
        -------
        bytes
        Nr   rG   s    rI   r   zAPIResponse.bodyE  r   rk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zAPIResponse.text

        Returns the text representation of response body.

        Returns
        -------
        str
        Nr   rG   s    rI   r   zAPIResponse.textF  r   rk   c                 x   K   t        j                  | j                  j                          d{         S 7 w)zAPIResponse.json

        Returns the JSON representation of response body.

        This method will throw if the response body is not parsable via `JSON.parse`.

        Returns
        -------
        Any
        Nr   rG   s    rI   r   zAPIResponse.jsonF  r   rk   Nc                 x   K   t        j                  | j                  j                          d{         S 7 w)zAPIResponse.dispose

        Disposes the body of this response. If not called then the body will stay in memory until the context closes.
        Nr{  rG   s    rI   r|  zAPIResponse.disposeF  r}  rk   r   )r   r   r   r   r   r   r   rF   r   r   r   r   r   rg   r   r   rw   r   r   r   r   r   r|  r   rK   rI   r+   r+   E  s    	:D 	: 	: 	;S 	; 	; 	> 	> 	> 	CS 	C 	C 	?S#X. 	? 	? 
Dv{{95 
D 
D
DE 
D
DC 
DDFJJ DGrK   r+   c                   j   e Zd Zdddej                  e   ddfdZddddddddddd
dedej                  ej                  ej                  eej                  ee	e
f   f   ef      d	ej                  ej                  eef      d
ej                  ej                  ej                  eef      dej                  ej                  eej                  ee	e
f   f      dej                  ej                  eej                  ee
e	eef   f      dej                  e	   dej                  e
   dej                  e
   dej                  e   dej                  e   ddfdZddddddddddd
dedej                  ej                  ej                  eej                  ee	e
f   f   ef      d	ej                  ej                  eef      d
ej                  ej                  ej                  eef      dej                  ej                  eej                  ee	e
f   f      dej                  ej                  eej                  ee
e	eef   f      dej                  e	   dej                  e
   dej                  e
   dej                  e   dej                  e   ddfdZddddddddddd
dedej                  ej                  ej                  eej                  ee	e
f   f   ef      d	ej                  ej                  eef      d
ej                  ej                  ej                  eef      dej                  ej                  eej                  ee	e
f   f      dej                  ej                  eej                  ee
e	eef   f      dej                  e	   dej                  e
   dej                  e
   dej                  e   dej                  e   ddfdZddddddddddd
dedej                  ej                  ej                  eej                  ee	e
f   f   ef      d	ej                  ej                  eef      d
ej                  ej                  ej                  eef      dej                  ej                  eej                  ee	e
f   f      dej                  ej                  eej                  ee
e	eef   f      dej                  e	   dej                  e
   dej                  e
   dej                  e   dej                  e   ddfdZddddddddddd
dedej                  ej                  ej                  eej                  ee	e
f   f   ef      d	ej                  ej                  eef      d
ej                  ej                  ej                  eef      dej                  ej                  eej                  ee	e
f   f      dej                  ej                  eej                  ee
e	eef   f      dej                  e	   dej                  e
   dej                  e
   dej                  e   dej                  e   ddfdZddddddddddd
dedej                  ej                  ej                  eej                  ee	e
f   f   ef      d	ej                  ej                  eef      d
ej                  ej                  ej                  eef      dej                  ej                  eej                  ee	e
f   f      dej                  ej                  eej                  ee
e	eef   f      dej                  e	   dej                  e
   dej                  e
   dej                  e   dej                  e   ddfdZdddddddddddddej                  edf   dej                  ej                  ej                  eej                  ee	e
f   f   ef      dej                  e   d	ej                  ej                  eef      d
ej                  ej                  ej                  eef      dej                  ej                  eej                  ee	e
f   f      dej                  ej                  eej                  ee
e	eef   f      dej                  e	   dej                  e
   dej                  e
   dej                  e   dej                  e   ddfdZdddej                  ej                  eej.                  f      defd Zy)!r*   Nr  r  rA   c                |   K   t        j                  | j                  j                  |       d{         S 7 w)a  APIRequestContext.dispose

        All responses returned by `a_pi_request_context.get()` and similar methods are stored in the memory, so that
        you can later call `a_pi_response.body()`.This method discards all its resources, calling any method on
        disposed `APIRequestContext` will throw an exception.

        Parameters
        ----------
        reason : Union[str, None]
            The reason to be reported to the operations interrupted by the context disposal.
        r  Nr{  r  s     rI   r|  zAPIRequestContext.dispose-F  s1      &&T^^-C-C6-C-R'RSS'Rr   )
r  rg   datar	  	multipartr   fail_on_status_coder  r   r   rF   r  rg   r  r	  r  r   r  r  r   r   r+   c       
         N  K   t        j                  | j                  j                  |t        j                  |      t        j                  |      t        j                  |      t        j                  |      t        j                  |      |||	|
|       d{         S 7 w)a  APIRequestContext.delete

        Sends HTTP(S) [DELETE](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/DELETE) request and returns its
        response. The method will populate request cookies from the context and update context cookies from the response.
        The method will automatically follow redirects.

        Parameters
        ----------
        url : str
            Target URL.
        params : Union[Dict[str, Union[bool, float, str]], str, None]
            Query parameters to be sent with the URL.
        headers : Union[Dict[str, str], None]
            Allows to set HTTP headers. These headers will apply to the fetched request as well as any redirects initiated by
            it.
        data : Union[Any, bytes, str, None]
            Allows to set post data of the request. If the data parameter is an object, it will be serialized to json string
            and `content-type` header will be set to `application/json` if not explicitly set. Otherwise the `content-type`
            header will be set to `application/octet-stream` if not explicitly set.
        form : Union[Dict[str, Union[bool, float, str]], None]
            Provides an object that will be serialized as html form using `application/x-www-form-urlencoded` encoding and sent
            as this request body. If this parameter is specified `content-type` header will be set to
            `application/x-www-form-urlencoded` unless explicitly provided.
        multipart : Union[Dict[str, Union[bool, bytes, float, str, {name: str, mimeType: str, buffer: bytes}]], None]
            Provides an object that will be serialized as html form using `multipart/form-data` encoding and sent as this
            request body. If this parameter is specified `content-type` header will be set to `multipart/form-data` unless
            explicitly provided. File values can be passed as file-like object containing file name, mime-type and its content.
        timeout : Union[float, None]
            Request timeout in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
        fail_on_status_code : Union[bool, None]
            Whether to throw on response codes other than 2xx and 3xx. By default response object is returned for all status
            codes.
        ignore_https_errors : Union[bool, None]
            Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.
        max_redirects : Union[int, None]
            Maximum number of request redirects that will be followed automatically. An error will be thrown if the number is
            exceeded. Defaults to `20`. Pass `0` to not follow redirects.
        max_retries : Union[int, None]
            Maximum number of times network errors should be retried. Currently only `ECONNRESET` error is retried. Does not
            retry based on HTTP response codes. An error will be thrown if the limit is exceeded. Defaults to `0` - no retries.

        Returns
        -------
        APIResponse
        rF   r  rg   r  r	  r  r   failOnStatusCoder  r   r   N)r   rY   rE   r  r   rH   rF   r  rg   r  r	  r  r   r  r  r   r   s               rI   r  zAPIRequestContext.delete<F  s     B   ..''v.0__T*__T*!//)4!4"5*& (  
 	
   BB%B#	B%c       
         N  K   t        j                  | j                  j                  |t        j                  |      t        j                  |      t        j                  |      t        j                  |      t        j                  |      |||	|
|       d{         S 7 w)a  APIRequestContext.head

        Sends HTTP(S) [HEAD](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/HEAD) request and returns its
        response. The method will populate request cookies from the context and update context cookies from the response.
        The method will automatically follow redirects.

        Parameters
        ----------
        url : str
            Target URL.
        params : Union[Dict[str, Union[bool, float, str]], str, None]
            Query parameters to be sent with the URL.
        headers : Union[Dict[str, str], None]
            Allows to set HTTP headers. These headers will apply to the fetched request as well as any redirects initiated by
            it.
        data : Union[Any, bytes, str, None]
            Allows to set post data of the request. If the data parameter is an object, it will be serialized to json string
            and `content-type` header will be set to `application/json` if not explicitly set. Otherwise the `content-type`
            header will be set to `application/octet-stream` if not explicitly set.
        form : Union[Dict[str, Union[bool, float, str]], None]
            Provides an object that will be serialized as html form using `application/x-www-form-urlencoded` encoding and sent
            as this request body. If this parameter is specified `content-type` header will be set to
            `application/x-www-form-urlencoded` unless explicitly provided.
        multipart : Union[Dict[str, Union[bool, bytes, float, str, {name: str, mimeType: str, buffer: bytes}]], None]
            Provides an object that will be serialized as html form using `multipart/form-data` encoding and sent as this
            request body. If this parameter is specified `content-type` header will be set to `multipart/form-data` unless
            explicitly provided. File values can be passed as file-like object containing file name, mime-type and its content.
        timeout : Union[float, None]
            Request timeout in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
        fail_on_status_code : Union[bool, None]
            Whether to throw on response codes other than 2xx and 3xx. By default response object is returned for all status
            codes.
        ignore_https_errors : Union[bool, None]
            Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.
        max_redirects : Union[int, None]
            Maximum number of request redirects that will be followed automatically. An error will be thrown if the number is
            exceeded. Defaults to `20`. Pass `0` to not follow redirects.
        max_retries : Union[int, None]
            Maximum number of times network errors should be retried. Currently only `ECONNRESET` error is retried. Does not
            retry based on HTTP response codes. An error will be thrown if the limit is exceeded. Defaults to `0` - no retries.

        Returns
        -------
        APIResponse
        r  N)r   rY   rE   headr   r  s               rI   r  zAPIRequestContext.headF  s     B   ..%%v.0__T*__T*!//)4!4"5*& &  
 	
r  c       
         N  K   t        j                  | j                  j                  |t        j                  |      t        j                  |      t        j                  |      t        j                  |      t        j                  |      |||	|
|       d{         S 7 w)a&  APIRequestContext.get

        Sends HTTP(S) [GET](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET) request and returns its
        response. The method will populate request cookies from the context and update context cookies from the response.
        The method will automatically follow redirects.

        **Usage**

        Request parameters can be configured with `params` option, they will be serialized into the URL search parameters:

        ```python
        query_params = {
          "isbn": "1234",
          "page": "23"
        }
        api_request_context.get("https://example.com/api/getText", params=query_params)
        ```

        Parameters
        ----------
        url : str
            Target URL.
        params : Union[Dict[str, Union[bool, float, str]], str, None]
            Query parameters to be sent with the URL.
        headers : Union[Dict[str, str], None]
            Allows to set HTTP headers. These headers will apply to the fetched request as well as any redirects initiated by
            it.
        data : Union[Any, bytes, str, None]
            Allows to set post data of the request. If the data parameter is an object, it will be serialized to json string
            and `content-type` header will be set to `application/json` if not explicitly set. Otherwise the `content-type`
            header will be set to `application/octet-stream` if not explicitly set.
        form : Union[Dict[str, Union[bool, float, str]], None]
            Provides an object that will be serialized as html form using `application/x-www-form-urlencoded` encoding and sent
            as this request body. If this parameter is specified `content-type` header will be set to
            `application/x-www-form-urlencoded` unless explicitly provided.
        multipart : Union[Dict[str, Union[bool, bytes, float, str, {name: str, mimeType: str, buffer: bytes}]], None]
            Provides an object that will be serialized as html form using `multipart/form-data` encoding and sent as this
            request body. If this parameter is specified `content-type` header will be set to `multipart/form-data` unless
            explicitly provided. File values can be passed as file-like object containing file name, mime-type and its content.
        timeout : Union[float, None]
            Request timeout in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
        fail_on_status_code : Union[bool, None]
            Whether to throw on response codes other than 2xx and 3xx. By default response object is returned for all status
            codes.
        ignore_https_errors : Union[bool, None]
            Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.
        max_redirects : Union[int, None]
            Maximum number of request redirects that will be followed automatically. An error will be thrown if the number is
            exceeded. Defaults to `20`. Pass `0` to not follow redirects.
        max_retries : Union[int, None]
            Maximum number of times network errors should be retried. Currently only `ECONNRESET` error is retried. Does not
            retry based on HTTP response codes. An error will be thrown if the limit is exceeded. Defaults to `0` - no retries.

        Returns
        -------
        APIResponse
        r  N)r   rY   rE   getr   r  s               rI   r  zAPIRequestContext.getF  s     Z   ..$$v.0__T*__T*!//)4!4"5*& %  
 	
r  c       
         N  K   t        j                  | j                  j                  |t        j                  |      t        j                  |      t        j                  |      t        j                  |      t        j                  |      |||	|
|       d{         S 7 w)a  APIRequestContext.patch

        Sends HTTP(S) [PATCH](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PATCH) request and returns its
        response. The method will populate request cookies from the context and update context cookies from the response.
        The method will automatically follow redirects.

        Parameters
        ----------
        url : str
            Target URL.
        params : Union[Dict[str, Union[bool, float, str]], str, None]
            Query parameters to be sent with the URL.
        headers : Union[Dict[str, str], None]
            Allows to set HTTP headers. These headers will apply to the fetched request as well as any redirects initiated by
            it.
        data : Union[Any, bytes, str, None]
            Allows to set post data of the request. If the data parameter is an object, it will be serialized to json string
            and `content-type` header will be set to `application/json` if not explicitly set. Otherwise the `content-type`
            header will be set to `application/octet-stream` if not explicitly set.
        form : Union[Dict[str, Union[bool, float, str]], None]
            Provides an object that will be serialized as html form using `application/x-www-form-urlencoded` encoding and sent
            as this request body. If this parameter is specified `content-type` header will be set to
            `application/x-www-form-urlencoded` unless explicitly provided.
        multipart : Union[Dict[str, Union[bool, bytes, float, str, {name: str, mimeType: str, buffer: bytes}]], None]
            Provides an object that will be serialized as html form using `multipart/form-data` encoding and sent as this
            request body. If this parameter is specified `content-type` header will be set to `multipart/form-data` unless
            explicitly provided. File values can be passed as file-like object containing file name, mime-type and its content.
        timeout : Union[float, None]
            Request timeout in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
        fail_on_status_code : Union[bool, None]
            Whether to throw on response codes other than 2xx and 3xx. By default response object is returned for all status
            codes.
        ignore_https_errors : Union[bool, None]
            Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.
        max_redirects : Union[int, None]
            Maximum number of request redirects that will be followed automatically. An error will be thrown if the number is
            exceeded. Defaults to `20`. Pass `0` to not follow redirects.
        max_retries : Union[int, None]
            Maximum number of times network errors should be retried. Currently only `ECONNRESET` error is retried. Does not
            retry based on HTTP response codes. An error will be thrown if the limit is exceeded. Defaults to `0` - no retries.

        Returns
        -------
        APIResponse
        r  N)r   rY   rE   patchr   r  s               rI   r  zAPIRequestContext.patch;G  s     B   ..&&v.0__T*__T*!//)4!4"5*& '  
 	
r  c       
         N  K   t        j                  | j                  j                  |t        j                  |      t        j                  |      t        j                  |      t        j                  |      t        j                  |      |||	|
|       d{         S 7 w)a  APIRequestContext.put

        Sends HTTP(S) [PUT](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT) request and returns its
        response. The method will populate request cookies from the context and update context cookies from the response.
        The method will automatically follow redirects.

        Parameters
        ----------
        url : str
            Target URL.
        params : Union[Dict[str, Union[bool, float, str]], str, None]
            Query parameters to be sent with the URL.
        headers : Union[Dict[str, str], None]
            Allows to set HTTP headers. These headers will apply to the fetched request as well as any redirects initiated by
            it.
        data : Union[Any, bytes, str, None]
            Allows to set post data of the request. If the data parameter is an object, it will be serialized to json string
            and `content-type` header will be set to `application/json` if not explicitly set. Otherwise the `content-type`
            header will be set to `application/octet-stream` if not explicitly set.
        form : Union[Dict[str, Union[bool, float, str]], None]
            Provides an object that will be serialized as html form using `application/x-www-form-urlencoded` encoding and sent
            as this request body. If this parameter is specified `content-type` header will be set to
            `application/x-www-form-urlencoded` unless explicitly provided.
        multipart : Union[Dict[str, Union[bool, bytes, float, str, {name: str, mimeType: str, buffer: bytes}]], None]
            Provides an object that will be serialized as html form using `multipart/form-data` encoding and sent as this
            request body. If this parameter is specified `content-type` header will be set to `multipart/form-data` unless
            explicitly provided. File values can be passed as file-like object containing file name, mime-type and its content.
        timeout : Union[float, None]
            Request timeout in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
        fail_on_status_code : Union[bool, None]
            Whether to throw on response codes other than 2xx and 3xx. By default response object is returned for all status
            codes.
        ignore_https_errors : Union[bool, None]
            Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.
        max_redirects : Union[int, None]
            Maximum number of request redirects that will be followed automatically. An error will be thrown if the number is
            exceeded. Defaults to `20`. Pass `0` to not follow redirects.
        max_retries : Union[int, None]
            Maximum number of times network errors should be retried. Currently only `ECONNRESET` error is retried. Does not
            retry based on HTTP response codes. An error will be thrown if the limit is exceeded. Defaults to `0` - no retries.

        Returns
        -------
        APIResponse
        r  N)r   rY   rE   putr   r  s               rI   r  zAPIRequestContext.putG  s     B   ..$$v.0__T*__T*!//)4!4"5*& %  
 	
r  c       
         N  K   t        j                  | j                  j                  |t        j                  |      t        j                  |      t        j                  |      t        j                  |      t        j                  |      |||	|
|       d{         S 7 w)a  APIRequestContext.post

        Sends HTTP(S) [POST](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST) request and returns its
        response. The method will populate request cookies from the context and update context cookies from the response.
        The method will automatically follow redirects.

        **Usage**

        JSON objects can be passed directly to the request:

        ```python
        data = {
            "title": "Book Title",
            "body": "John Doe",
        }
        api_request_context.post("https://example.com/api/createBook", data=data)
        ```

        To send form data to the server use `form` option. Its value will be encoded into the request body with
        `application/x-www-form-urlencoded` encoding (see below how to use `multipart/form-data` form encoding to send
        files):

        The common way to send file(s) in the body of a request is to upload them as form fields with `multipart/form-data`
        encoding. Use `FormData` to construct request body and pass it to the request as `multipart` parameter:

        ```python
        api_request_context.post(
          "https://example.com/api/uploadScript'",
          multipart={
            "fileField": {
              "name": "f.js",
              "mimeType": "text/javascript",
              "buffer": b"console.log(2022);",
            },
          })
        ```

        Parameters
        ----------
        url : str
            Target URL.
        params : Union[Dict[str, Union[bool, float, str]], str, None]
            Query parameters to be sent with the URL.
        headers : Union[Dict[str, str], None]
            Allows to set HTTP headers. These headers will apply to the fetched request as well as any redirects initiated by
            it.
        data : Union[Any, bytes, str, None]
            Allows to set post data of the request. If the data parameter is an object, it will be serialized to json string
            and `content-type` header will be set to `application/json` if not explicitly set. Otherwise the `content-type`
            header will be set to `application/octet-stream` if not explicitly set.
        form : Union[Dict[str, Union[bool, float, str]], None]
            Provides an object that will be serialized as html form using `application/x-www-form-urlencoded` encoding and sent
            as this request body. If this parameter is specified `content-type` header will be set to
            `application/x-www-form-urlencoded` unless explicitly provided.
        multipart : Union[Dict[str, Union[bool, bytes, float, str, {name: str, mimeType: str, buffer: bytes}]], None]
            Provides an object that will be serialized as html form using `multipart/form-data` encoding and sent as this
            request body. If this parameter is specified `content-type` header will be set to `multipart/form-data` unless
            explicitly provided. File values can be passed as file-like object containing file name, mime-type and its content.
        timeout : Union[float, None]
            Request timeout in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
        fail_on_status_code : Union[bool, None]
            Whether to throw on response codes other than 2xx and 3xx. By default response object is returned for all status
            codes.
        ignore_https_errors : Union[bool, None]
            Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.
        max_redirects : Union[int, None]
            Maximum number of request redirects that will be followed automatically. An error will be thrown if the number is
            exceeded. Defaults to `20`. Pass `0` to not follow redirects.
        max_retries : Union[int, None]
            Maximum number of times network errors should be retried. Currently only `ECONNRESET` error is retried. Does not
            retry based on HTTP response codes. An error will be thrown if the limit is exceeded. Defaults to `0` - no retries.

        Returns
        -------
        APIResponse
        r  N)r   rY   rE   postr   r  s               rI   r  zAPIRequestContext.postG  s     @   ..%%v.0__T*__T*!//)4!4"5*& &  
 	
r  )r  rO   rg   r  r	  r  r   r  r  r   r   url_or_requestr4   rO   c                P  K   t        j                  | j                  j                  |t        j                  |      |t        j                  |      t        j                  |      t        j                  |      t        j                  |      ||	|
||       d{         S 7 w)a  APIRequestContext.fetch

        Sends HTTP(S) request and returns its response. The method will populate request cookies from the context and
        update context cookies from the response. The method will automatically follow redirects.

        **Usage**

        JSON objects can be passed directly to the request:

        ```python
        data = {
            "title": "Book Title",
            "body": "John Doe",
        }
        api_request_context.fetch("https://example.com/api/createBook", method="post", data=data)
        ```

        The common way to send file(s) in the body of a request is to upload them as form fields with `multipart/form-data`
        encoding, by specifiying the `multipart` parameter:

        Parameters
        ----------
        url_or_request : Union[Request, str]
            Target URL or Request to get all parameters from.
        params : Union[Dict[str, Union[bool, float, str]], str, None]
            Query parameters to be sent with the URL.
        method : Union[str, None]
            If set changes the fetch method (e.g. [PUT](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT) or
            [POST](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST)). If not specified, GET method is used.
        headers : Union[Dict[str, str], None]
            Allows to set HTTP headers. These headers will apply to the fetched request as well as any redirects initiated by
            it.
        data : Union[Any, bytes, str, None]
            Allows to set post data of the request. If the data parameter is an object, it will be serialized to json string
            and `content-type` header will be set to `application/json` if not explicitly set. Otherwise the `content-type`
            header will be set to `application/octet-stream` if not explicitly set.
        form : Union[Dict[str, Union[bool, float, str]], None]
            Provides an object that will be serialized as html form using `application/x-www-form-urlencoded` encoding and sent
            as this request body. If this parameter is specified `content-type` header will be set to
            `application/x-www-form-urlencoded` unless explicitly provided.
        multipart : Union[Dict[str, Union[bool, bytes, float, str, {name: str, mimeType: str, buffer: bytes}]], None]
            Provides an object that will be serialized as html form using `multipart/form-data` encoding and sent as this
            request body. If this parameter is specified `content-type` header will be set to `multipart/form-data` unless
            explicitly provided. File values can be passed as file-like object containing file name, mime-type and its content.
        timeout : Union[float, None]
            Request timeout in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
        fail_on_status_code : Union[bool, None]
            Whether to throw on response codes other than 2xx and 3xx. By default response object is returned for all status
            codes.
        ignore_https_errors : Union[bool, None]
            Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.
        max_redirects : Union[int, None]
            Maximum number of request redirects that will be followed automatically. An error will be thrown if the number is
            exceeded. Defaults to `20`. Pass `0` to not follow redirects.
        max_retries : Union[int, None]
            Maximum number of times network errors should be retried. Currently only `ECONNRESET` error is retried. Does not
            retry based on HTTP response codes. An error will be thrown if the limit is exceeded. Defaults to `0` - no retries.

        Returns
        -------
        APIResponse
        )urlOrRequestr  rO   rg   r  r	  r  r   r  r  r   r   Nr   )rH   r  r  rO   rg   r  r	  r  r   r  r  r   r   s                rI   r   zAPIRequestContext.fetchMH  s     f   ..&&+v.0__T*__T*!//)4!4"5*& '  
 	
s   BB&B$	B&r  r   c                |   K   t        j                  | j                  j                  |       d{         S 7 w)a  APIRequestContext.storage_state

        Returns storage state for this request context, contains current cookies and local storage snapshot if it was
        passed to the constructor.

        Parameters
        ----------
        path : Union[pathlib.Path, str, None]
            The file path to save the storage state to. If `path` is a relative path, then it is resolved relative to current
            working directory. If no path is provided, storage state is still returned, but won't be saved to the disk.

        Returns
        -------
        {cookies: List[{name: str, value: str, domain: str, path: str, expires: float, httpOnly: bool, secure: bool, sameSite: Union["Lax", "None", "Strict"]}], origins: List[{origin: str, localStorage: List[{name: str, value: str}]}]}
        r  Nr  r
  s     rI   r  zAPIRequestContext.storage_stateH  s1     &   t~~'C'C'C'N!NOO!Nr   )r   r   r   r   r   r   r|  r   r   r   r   r   r   r   r   r  r  r  r  r  r  r   r   r   r   r  r   rK   rI   r*   r*   +F  s   >B Tvs'; Tt T* :>FJRV *.5959.2,0#O
O
 LLS&,,sE47G*H%HI3NO
	O
 S#X!67O
 oofll6::sE+ABCO
 oofkk#v||C<L/M*MNOO
 ??KKV\\%uc;*NOOP
O
 'O
 $__T2O
 $__T2O
  s+!O
" __S)#O
$ 
%O
n :>FJRV *.5959.2,0#O
O
 LLS&,,sE47G*H%HI3NO
	O
 S#X!67O
 oofll6::sE+ABCO
 oofkk#v||C<L/M*MNOO
 ??KKV\\%uc;*NOOP
O
 'O
 $__T2O
 $__T2O
  s+!O
" __S)#O
$ 
%O
n :>FJRV *.5959.2,0#[
[
 LLS&,,sE47G*H%HI3NO
	[
 S#X!67[
 oofll6::sE+ABC[
 oofkk#v||C<L/M*MNO[
 ??KKV\\%uc;*NOOP
[
 '[
 $__T2[
 $__T2[
  s+![
" __S)#[
$ 
%[
F :>FJRV *.5959.2,0#O
O
 LLS&,,sE47G*H%HI3NO
	O
 S#X!67O
 oofll6::sE+ABCO
 oofkk#v||C<L/M*MNOO
 ??KKV\\%uc;*NOOP
O
 'O
 $__T2O
 $__T2O
  s+!O
" __S)#O
$ 
%O
n :>FJRV *.5959.2,0#O
O
 LLS&,,sE47G*H%HI3NO
	O
 S#X!67O
 oofll6::sE+ABCO
 oofkk#v||C<L/M*MNOO
 ??KKV\\%uc;*NOOP
O
 'O
 $__T2O
 $__T2O
  s+!O
" __S)#O
$ 
%O
n :>FJRV *.5959.2,0#n
n
 LLS&,,sE47G*H%HI3NO
	n
 S#X!67n
 oofll6::sE+ABCn
 oofkk#v||C<L/M*MNOn
 ??KKV\\%uc;*NOOP
n
 'n
 $__T2n
 $__T2n
  s+!n
" __S)#n
$ 
%n
l '+:>FJRV *.5959.2,0%b
S)^4b
 LLS&,,sE47G*H%HI3NO
	b
 $b
 S#X!67b
 oofll6::sE+ABCb
 oofkk#v||C<L/M*MNOb
 ??KKV\\%uc;*NOOP
b
 'b
 $__T2b
  $__T2!b
" s+#b
$ __S)%b
& 
'b
J KOPv||C4E'FGP	PrK   r*   c                      e Zd Zdddddddddd	dej                  e   dej                  ej                  eef      dej                  e   dej                  e   dej                  e	   dej                  e   d	ej                  e
   d
ej                  ej                  eeej                  f      dej                  ej                  e      ddfdZy)r)   N)	r  r  r  r  r  r  r   r  r  r  r  r  r  r  r  r   r  r  rA   r*   c       	            K   t        j                  | j                  j                  |t        j                  |      |||||||		       d{         S 7 w)a  APIRequest.new_context

        Creates new instances of `APIRequestContext`.

        Parameters
        ----------
        base_url : Union[str, None]
            Methods like `a_pi_request_context.get()` take the base URL into consideration by using the
            [`URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor for building the corresponding URL.
            Examples:
            - baseURL: `http://localhost:3000` and sending request to `/bar.html` results in `http://localhost:3000/bar.html`
            - baseURL: `http://localhost:3000/foo/` and sending request to `./bar.html` results in
              `http://localhost:3000/foo/bar.html`
            - baseURL: `http://localhost:3000/foo` (without trailing slash) and navigating to `./bar.html` results in
              `http://localhost:3000/bar.html`
        extra_http_headers : Union[Dict[str, str], None]
            An object containing additional HTTP headers to be sent with every request. Defaults to none.
        http_credentials : Union[{username: str, password: str, origin: Union[str, None], send: Union["always", "unauthorized", None]}, None]
            Credentials for [HTTP authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication). If no
            origin is specified, the username and password are sent to any servers upon unauthorized responses.
        ignore_https_errors : Union[bool, None]
            Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.
        proxy : Union[{server: str, bypass: Union[str, None], username: Union[str, None], password: Union[str, None]}, None]
            Network proxy settings.
        user_agent : Union[str, None]
            Specific user agent to use in this context.
        timeout : Union[float, None]
            Maximum time in milliseconds to wait for the response. Defaults to `30000` (30 seconds). Pass `0` to disable
            timeout.
        storage_state : Union[pathlib.Path, str, {cookies: Sequence[{name: str, value: str, domain: str, path: str, expires: float, httpOnly: bool, secure: bool, sameSite: Union["Lax", "None", "Strict"]}], origins: Sequence[{origin: str, localStorage: Sequence[{name: str, value: str}]}]}, None]
            Populates context with given storage state. This option can be used to initialize context with logged-in
            information obtained via `browser_context.storage_state()` or `a_pi_request_context.storage_state()`.
            Either a path to the file with saved storage, or the value returned by one of
            `browser_context.storage_state()` or `a_pi_request_context.storage_state()` methods.
        client_certificates : Union[Sequence[{origin: str, certPath: Union[pathlib.Path, str, None], cert: Union[bytes, None], keyPath: Union[pathlib.Path, str, None], key: Union[bytes, None], pfxPath: Union[pathlib.Path, str, None], pfx: Union[bytes, None], passphrase: Union[str, None]}], None]
            TLS Client Authentication allows the server to request a client certificate and verify it.

            **Details**

            An array of client certificates to be used. Each certificate object must have either both `certPath` and `keyPath`,
            a single `pfxPath`, or their corresponding direct value equivalents (`cert` and `key`, or `pfx`). Optionally,
            `passphrase` property should be provided if the certificate is encrypted. The `origin` property should be provided
            with an exact match to the request origin that the certificate is valid for.

            **NOTE** When using WebKit on macOS, accessing `localhost` will not pick up client certificates. You can make it
            work by replacing `localhost` with `local.playwright`.


        Returns
        -------
        APIRequestContext
        )	r  r  r  r  r  r  r   r  r  Nr  )
rH   r  r  r  r  r  r  r   r  r  s
             rI   r  zAPIRequest.new_contextH  sb     H   ..,, !(1C!D 0"5$*#6 - 
 

 	

r  )r   r   r   r   r   r   r   r
   r   r   r   r   r   r   r   r   r   r  r   rK   rI   r)   r)   H  s   
 *.EI=A5904+/*. OSP
 //#&P
 #OOFKKS,AB	P

 !///:P
 $__T2P
 }-P
 OOC(P
 'P
 LLsGLL89
P
 $__V[[9J-KLP
 
P
rK   r)   c            	          e Zd Zdddej                  ej
                  e   ef   dej                  e   ddfdZ	dddej                  ej
                  e   ef   dej                  e   ddfdZ
dddd	ej                  eej
                  e   f   dej                  e   d
ej                  e   ddfdZdddd	ej                  ej
                  e   ef   dej                  e   d
ej                  e   ddfdZy)r   Nr  title_or_reg_expr   rA   c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)a  PageAssertions.to_have_title

        Ensures the page has the given title.

        **Usage**

        ```py
        import re
        from playwright.async_api import expect

        # ...
        await expect(page).to_have_title(re.compile(r".*checkout"))
        ```

        Parameters
        ----------
        title_or_reg_exp : Union[Pattern[str], str]
            Expected title or RegExp.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        TtitleOrRegExpr   N)r   rD   rE   to_have_titlerH   r  r   __tracebackhide__s       rI   r  zPageAssertions.to_have_title$I  sG     6 !&&..... /  
 	
rY  c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)a\  PageAssertions.not_to_have_title

        The opposite of `page_assertions.to_have_title()`.

        Parameters
        ----------
        title_or_reg_exp : Union[Pattern[str], str]
            Expected title or RegExp.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  N)r   rD   rE   not_to_have_titler  s       rI   r  z PageAssertions.not_to_have_titleGI  sG     " !&&..22. 3  
 	
rY  )r   ignore_caseurl_or_reg_expr  c                   K   d}t        j                  | j                  j                  |||       d{         S 7 w)a  PageAssertions.to_have_url

        Ensures the page is navigated to the given URL.

        **Usage**

        ```py
        import re
        from playwright.async_api import expect

        # ...
        await expect(page).to_have_url(re.compile(".*checkout"))
        ```

        Parameters
        ----------
        url_or_reg_exp : Union[Pattern[str], str]
            Expected URL string or RegExp.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        ignore_case : Union[bool, None]
            Whether to perform case-insensitive match. `ignoreCase` option takes precedence over the corresponding regular
            expression flag if specified.
        TurlOrRegExpr   
ignoreCaseN)r   rD   rE   to_have_urlrH   r  r   r  r  s        rI   r  zPageAssertions.to_have_url`I  sI     > !&&..,,*G -  
 	
rV  c                   K   d}t        j                  | j                  j                  |||       d{         S 7 w)a(  PageAssertions.not_to_have_url

        The opposite of `page_assertions.to_have_url()`.

        Parameters
        ----------
        url_or_reg_exp : Union[Pattern[str], str]
            Expected URL string or RegExp.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        ignore_case : Union[bool, None]
            Whether to perform case-insensitive match. `ignoreCase` option takes precedence over the corresponding regular
            expression flag if specified.
        Tr  N)r   rD   rE   not_to_have_urlr  s        rI   r  zPageAssertions.not_to_have_urlI  sI     * !&&..00*G 1  
 	
rV  )r   r   r   r   r   r  r   r   r   r  r  r   r  r  r   rK   rI   r   r   "I  sH    +/	!
 ,,v~~c':C'?@!
 '	!

 
!
N +/	
 ,,v~~c':C'?@
 '	

 

: +/-1%
S&..*=%=>%
 '	%

 __T*%
 
%
V +/-1
V^^C%8#%=>
 '	

 __T*
 

rK   r   c                   t   e Zd Zdddddej                  ej
                  e   ej
                  ej                  e      ej
                  ej                  ej                  e   ef      ej                  e   ef   dej                  e	   dej                  e
   dej                  e	   ddf
dZdddddej                  ej
                  e   ej
                  ej                  e      ej
                  ej                  ej                  e   ef      ej                  e   ef   dej                  e	   dej                  e
   dej                  e	   ddf
d	Zddd
dedej                  eej                  e   f   dej                  e	   dej                  e
   ddf
dZddd
dedej                  eej                  e   f   dej                  e	   dej                  e
   ddf
dZdddej                  ej
                  e   ej
                  ej                  e      ej
                  ej                  ej                  e   ef      ej                  e   ef   dej                  e
   ddfdZdddej                  ej
                  e   ej
                  ej                  e      ej
                  ej                  ej                  e   ef      ej                  e   ef   dej                  e
   ddfdZdddedej                  e
   ddfdZdddedej                  e
   ddfdZdddedej                  eej                  e   f   dej                  e
   ddfdZdddedej                  eej                  e   f   dej                  e
   ddfdZdddej                  eej                  e   f   dej                  e
   ddfdZdddej                  eej                  e   f   dej                  e
   ddfdZdddedej0                  dej                  e
   ddfdZdddedej0                  dej                  e
   ddfdZdddej                  eej                  e   f   dej                  e
   ddfdZdddej                  eej                  e   f   dej                  e
   ddfdZdddej                  ej
                  e   ej
                  ej                  e      ej
                  ej                  ej                  e   ef      f   dej                  e
   ddfdZdddej                  ej
                  e   ej
                  ej                  e      ej
                  ej                  ej                  e   ef      f   dej                  e
   ddfd Zdddddej                  ej
                  e   ej
                  ej                  e      ej
                  ej                  ej                  e   ef      ej                  e   ef   dej                  e	   dej                  e
   dej                  e	   ddf
d!Zdddddej                  ej
                  e   ej
                  ej                  e      ej
                  ej                  ej                  e   ef      ej                  e   ef   dej                  e	   dej                  e
   dej                  e	   ddf
d"Z ddd#d$ej                  e	   dej                  e
   ddfd%Z!dddd&dej                  e
   d'ej                  e	   d(ej                  e	   ddfd)Z"ddd#d$ej                  e	   dej                  e
   ddfd*Z#dddej                  e
   ddfd+Z$dddej                  e
   ddfd,Z%dddej                  e
   ddfd-Z&ddd.d/ej                  e	   dej                  e
   ddfd0Z'ddd.d/ej                  e	   dej                  e
   ddfd1Z(dddej                  e
   ddfd2Z)dddej                  e
   ddfd3Z*ddd4d5ej                  e	   dej                  e
   ddfd6Z+ddd4d5ej                  e	   dej                  e
   ddfd7Z,dddej                  e
   ddfd8Z-dddej                  e
   ddfd9Z.ddd:d;ej                  e	   dej                  e
   ddfd<Z/ddd:d;ej                  e	   dej                  e
   ddfd=Z0dddej                  e
   ddfd>Z1dddej                  e
   ddfd?Z2ddd@dAej                  e
   dej                  e
   ddfdBZ3ddd@dAej                  e
   dej                  e
   ddfdCZ4ddd
dDej                  eej                  e   f   dej                  e	   dej                  e
   ddfdEZ5ddd
dej                  eej                  e   f   dej                  e	   dej                  e
   ddfdFZ6ddd
dej                  eej                  e   f   dej                  e	   dej                  e
   ddfdGZ7ddd
dej                  eej                  e   f   dej                  e	   dej                  e
   ddfdHZ8dddIe9dJ   dej                  e
   ddfdKZ:ddd
dLej                  eej                  e   f   dej                  e	   dej                  e
   ddfdMZ;ddd
dLej                  eej                  e   f   dej                  e	   dej                  e
   ddfdNZ<dddIe9dJ   dej                  e
   ddfdOZ=dddedej                  e
   ddfdPZ>dddedej                  e
   ddfdQZ?y)Rr   N)use_inner_textr   r  expectedr  r   r  rA   c                   K   d}t        j                  | j                  j                  t        j                  |      |||       d{         S 7 w)u
  LocatorAssertions.to_contain_text

        Ensures the `Locator` points to an element that contains the given text. All nested elements will be considered
        when computing the text content of the element. You can use regular expressions for the value as well.

        **Details**

        When `expected` parameter is a string, Playwright will normalize whitespaces and line breaks both in the actual
        text and in the expected string before matching. When regular expression is used, the actual text is matched as is.

        **Usage**

        ```py
        import re
        from playwright.async_api import expect

        locator = page.locator('.title')
        await expect(locator).to_contain_text("substring")
        await expect(locator).to_contain_text(re.compile(r"\d messages"))
        ```

        If you pass an array as an expected value, the expectations are:
        1. Locator resolves to a list of elements.
        1. Elements from a **subset** of this list contain text from the expected array, respectively.
        1. The matching subset of elements has the same order as the expected array.
        1. Each text value from the expected array is matched by some element from the list.

        For example, consider the following list:

        ```html
        <ul>
          <li>Item Text 1</li>
          <li>Item Text 2</li>
          <li>Item Text 3</li>
        </ul>
        ```

        Let's see how we can use the assertion:

        ```py
        from playwright.async_api import expect

        # ✓ Contains the right items in the right order
        await expect(page.locator("ul > li")).to_contain_text(["Text 1", "Text 3", "Text 4"])

        # ✖ Wrong order
        await expect(page.locator("ul > li")).to_contain_text(["Text 3", "Text 2"])

        # ✖ No item contains this text
        await expect(page.locator("ul > li")).to_contain_text(["Some 33"])

        # ✖ Locator points to the outer list element, not to the list items
        await expect(page.locator("ul")).to_contain_text(["Text 3"])
        ```

        Parameters
        ----------
        expected : Union[Pattern[str], Sequence[Pattern[str]], Sequence[Union[Pattern[str], str]], Sequence[str], str]
            Expected substring or RegExp or a list of those.
        use_inner_text : Union[bool, None]
            Whether to use `element.innerText` instead of `element.textContent` when retrieving DOM node text.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        ignore_case : Union[bool, None]
            Whether to perform case-insensitive match. `ignoreCase` option takes precedence over the corresponding regular
            expression flag if specified.
        Tr  useInnerTextr   r  N)r   rD   rE   to_contain_textr   rH   r  r  r   r  r  s         rI   r  z!LocatorAssertions.to_contain_textI  sX     b !&&..00 2+&	 1  
 	
r  c                   K   d}t        j                  | j                  j                  t        j                  |      |||       d{         S 7 w)a'  LocatorAssertions.not_to_contain_text

        The opposite of `locator_assertions.to_contain_text()`.

        Parameters
        ----------
        expected : Union[Pattern[str], Sequence[Pattern[str]], Sequence[Union[Pattern[str], str]], Sequence[str], str]
            Expected substring or RegExp or a list of those.
        use_inner_text : Union[bool, None]
            Whether to use `element.innerText` instead of `element.textContent` when retrieving DOM node text.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        ignore_case : Union[bool, None]
            Whether to perform case-insensitive match. `ignoreCase` option takes precedence over the corresponding regular
            expression flag if specified.
        Tr  N)r   rD   rE   not_to_contain_textr   r  s         rI   r  z%LocatorAssertions.not_to_contain_textJ  sW     < !&&..44 2+&	 5  
 	
r  )r  r   ry   r  c                   K   d}t        j                  | j                  j                  ||||       d{         S 7 w)a%  LocatorAssertions.to_have_attribute

        Ensures the `Locator` points to an element with given attribute.

        **Usage**

        ```py
        from playwright.async_api import expect

        locator = page.locator("input")
        await expect(locator).to_have_attribute("type", "text")
        ```

        Parameters
        ----------
        name : str
            Attribute name.
        value : Union[Pattern[str], str]
            Expected attribute value.
        ignore_case : Union[bool, None]
            Whether to perform case-insensitive match. `ignoreCase` option takes precedence over the corresponding regular
            expression flag if specified.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Try   r  r  r   N)r   rD   rE   to_have_attributerH   ry   r  r  r   r  s         rI   r  z#LocatorAssertions.to_have_attribute/J  sL     B !&&..22; 3  
 	
r  c                   K   d}t        j                  | j                  j                  ||||       d{         S 7 w)a[  LocatorAssertions.not_to_have_attribute

        The opposite of `locator_assertions.to_have_attribute()`.

        Parameters
        ----------
        name : str
            Attribute name.
        value : Union[Pattern[str], str]
            Expected attribute value.
        ignore_case : Union[bool, None]
            Whether to perform case-insensitive match. `ignoreCase` option takes precedence over the corresponding regular
            expression flag if specified.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  N)r   rD   rE   not_to_have_attributer  s         rI   r
  z'LocatorAssertions.not_to_have_attributeXJ  sK     0 !&&..66; 7  
 	
r  r  c                   K   d}t        j                  | j                  j                  t        j                  |      |       d{         S 7 w)a  LocatorAssertions.to_have_class

        Ensures the `Locator` points to an element with given CSS classes. When a string is provided, it must fully match
        the element's `class` attribute. To match individual classes or perform partial matches, use a regular expression:

        **Usage**

        ```html
        <div class='middle selected row' id='component'></div>
        ```

        ```py
        from playwright.async_api import expect

        locator = page.locator("#component")
        await expect(locator).to_have_class(re.compile(r"(^|\\s)selected(\\s|$)"))
        await expect(locator).to_have_class("middle selected row")
        ```

        When an array is passed, the method asserts that the list of elements located matches the corresponding list of
        expected class values. Each element's class attribute is matched against the corresponding string or regular
        expression in the array:

        ```py
        from playwright.async_api import expect

        locator = page.locator("list > .component")
        await expect(locator).to_have_class(["component", "component selected", "component"])
        ```

        Parameters
        ----------
        expected : Union[Pattern[str], Sequence[Pattern[str]], Sequence[Union[Pattern[str], str]], Sequence[str], str]
            Expected class or RegExp or a list of those.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  r   N)r   rD   rE   to_have_classr   rH   r  r   r  s       rI   r  zLocatorAssertions.to_have_classxJ  sQ     b !&&.... 2G /  
 	
r  c                   K   d}t        j                  | j                  j                  t        j                  |      |       d{         S 7 w)a  LocatorAssertions.not_to_have_class

        The opposite of `locator_assertions.to_have_class()`.

        Parameters
        ----------
        expected : Union[Pattern[str], Sequence[Pattern[str]], Sequence[Union[Pattern[str], str]], Sequence[str], str]
            Expected class or RegExp or a list of those.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  N)r   rD   rE   not_to_have_classr   r  s       rI   r  z#LocatorAssertions.not_to_have_classJ  sP     . !&&..22 2G 3  
 	
r  r  c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)a   LocatorAssertions.to_have_count

        Ensures the `Locator` resolves to an exact number of DOM nodes.

        **Usage**

        ```py
        from playwright.async_api import expect

        locator = page.locator("list > .component")
        await expect(locator).to_have_count(3)
        ```

        Parameters
        ----------
        count : int
            Expected count.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  r   N)r   rD   rE   to_have_countrH   r  r   r  s       rI   r  zLocatorAssertions.to_have_countJ  s>     . !&&....UG.LL
 	
LrY  c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)a8  LocatorAssertions.not_to_have_count

        The opposite of `locator_assertions.to_have_count()`.

        Parameters
        ----------
        count : int
            Expected count.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  N)r   rD   rE   not_to_have_countr  s       rI   r  z#LocatorAssertions.not_to_have_countJ  s>      !&&..222PP
 	
PrY  c                   K   d}t        j                  | j                  j                  |||       d{         S 7 w)a`  LocatorAssertions.to_have_css

        Ensures the `Locator` resolves to an element with the given computed CSS style.

        **Usage**

        ```py
        from playwright.async_api import expect

        locator = page.get_by_role("button")
        await expect(locator).to_have_css("display", "flex")
        ```

        Parameters
        ----------
        name : str
            CSS property name.
        value : Union[Pattern[str], str]
            CSS property value.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Try   r  r   N)r   rD   rE   to_have_cssrH   ry   r  r   r  s        rI   r  zLocatorAssertions.to_have_cssK  s@     : !&&..,,$eW,UU
 	
UrV  c                   K   d}t        j                  | j                  j                  |||       d{         S 7 w)a  LocatorAssertions.not_to_have_css

        The opposite of `locator_assertions.to_have_css()`.

        Parameters
        ----------
        name : str
            CSS property name.
        value : Union[Pattern[str], str]
            CSS property value.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  N)r   rD   rE   not_to_have_cssr  s        rI   r  z!LocatorAssertions.not_to_have_css$K  sI     ( !&&..00 1  
 	
rV  idc                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)a  LocatorAssertions.to_have_id

        Ensures the `Locator` points to an element with the given DOM Node ID.

        **Usage**

        ```py
        from playwright.async_api import expect

        locator = page.get_by_role("textbox")
        await expect(locator).to_have_id("lastname")
        ```

        Parameters
        ----------
        id : Union[Pattern[str], str]
            Element id.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  r   N)r   rD   rE   
to_have_idrH   r  r   r  s       rI   r   zLocatorAssertions.to_have_id@K  s>     4 !&&..++r7+CC
 	
CrY  c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)a@  LocatorAssertions.not_to_have_id

        The opposite of `locator_assertions.to_have_id()`.

        Parameters
        ----------
        id : Union[Pattern[str], str]
            Element id.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  N)r   rD   rE   not_to_have_idr!  s       rI   r#  z LocatorAssertions.not_to_have_id`K  s>     " !&&..//2w/GG
 	
GrY  c                   K   d}t        j                  | j                  j                  |t        j                  |      |       d{         S 7 w)a  LocatorAssertions.to_have_js_property

        Ensures the `Locator` points to an element with given JavaScript property. Note that this property can be of a
        primitive type as well as a plain serializable JavaScript object.

        **Usage**

        ```py
        from playwright.async_api import expect

        locator = page.locator(".component")
        await expect(locator).to_have_js_property("loaded", True)
        ```

        Parameters
        ----------
        name : str
            Property name.
        value : Any
            Property value.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  N)r   rD   rE   to_have_js_propertyr   r  s        rI   r%  z%LocatorAssertions.to_have_js_propertywK  sR     4 !&&..44!7 5  
 	
r  c                   K   d}t        j                  | j                  j                  |t        j                  |      |       d{         S 7 w)ar  LocatorAssertions.not_to_have_js_property

        The opposite of `locator_assertions.to_have_js_property()`.

        Parameters
        ----------
        name : str
            Property name.
        value : Any
            Property value.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  N)r   rD   rE   not_to_have_js_propertyr   r  s        rI   r'  z)LocatorAssertions.not_to_have_js_propertyK  sR       !&&..88!7 9  
 	
r  c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)a  LocatorAssertions.to_have_value

        Ensures the `Locator` points to an element with the given input value. You can use regular expressions for the
        value as well.

        **Usage**

        ```py
        import re
        from playwright.async_api import expect

        locator = page.locator("input[type=number]")
        await expect(locator).to_have_value(re.compile(r"[0-9]"))
        ```

        Parameters
        ----------
        value : Union[Pattern[str], str]
            Expected value.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  r   N)r   rD   rE   to_have_valuerH   r  r   r  s       rI   r*  zLocatorAssertions.to_have_valueK  s>     8 !&&....UG.LL
 	
LrY  c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)aM  LocatorAssertions.not_to_have_value

        The opposite of `locator_assertions.to_have_value()`.

        Parameters
        ----------
        value : Union[Pattern[str], str]
            Expected value.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr)  N)r   rD   rE   not_to_have_valuer+  s       rI   r-  z#LocatorAssertions.not_to_have_valueK  s>     " !&&..222PP
 	
PrY  valuesc                   K   d}t        j                  | j                  j                  t        j                  |      |       d{         S 7 w)a/  LocatorAssertions.to_have_values

        Ensures the `Locator` points to multi-select/combobox (i.e. a `select` with the `multiple` attribute) and the
        specified values are selected.

        **Usage**

        For example, given the following element:

        ```html
        <select id="favorite-colors" multiple>
          <option value="R">Red</option>
          <option value="G">Green</option>
          <option value="B">Blue</option>
        </select>
        ```

        ```py
        import re
        from playwright.async_api import expect

        locator = page.locator("id=favorite-colors")
        await locator.select_option(["R", "G"])
        await expect(locator).to_have_values([re.compile(r"R"), re.compile(r"G")])
        ```

        Parameters
        ----------
        values : Union[Sequence[Pattern[str]], Sequence[Union[Pattern[str], str]], Sequence[str]]
            Expected options currently selected.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr.  r   N)r   rD   rE   to_have_valuesr   rH   r.  r   r  s       rI   r1  z LocatorAssertions.to_have_valuesK  sQ     V !&&..//v. 0  
 	
r  c                   K   d}t        j                  | j                  j                  t        j                  |      |       d{         S 7 w)a  LocatorAssertions.not_to_have_values

        The opposite of `locator_assertions.to_have_values()`.

        Parameters
        ----------
        values : Union[Sequence[Pattern[str]], Sequence[Union[Pattern[str], str]], Sequence[str]]
            Expected options currently selected.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr0  N)r   rD   rE   not_to_have_valuesr   r2  s       rI   r4  z$LocatorAssertions.not_to_have_valuesL  sP     * !&&..33v. 4  
 	
r  c                   K   d}t        j                  | j                  j                  t        j                  |      |||       d{         S 7 w)u
  LocatorAssertions.to_have_text

        Ensures the `Locator` points to an element with the given text. All nested elements will be considered when
        computing the text content of the element. You can use regular expressions for the value as well.

        **Details**

        When `expected` parameter is a string, Playwright will normalize whitespaces and line breaks both in the actual
        text and in the expected string before matching. When regular expression is used, the actual text is matched as is.

        **Usage**

        ```py
        import re
        from playwright.async_api import expect

        locator = page.locator(".title")
        await expect(locator).to_have_text(re.compile(r"Welcome, Test User"))
        await expect(locator).to_have_text(re.compile(r"Welcome, .*"))
        ```

        If you pass an array as an expected value, the expectations are:
        1. Locator resolves to a list of elements.
        1. The number of elements equals the number of expected values in the array.
        1. Elements from the list have text matching expected array values, one by one, in order.

        For example, consider the following list:

        ```html
        <ul>
          <li>Text 1</li>
          <li>Text 2</li>
          <li>Text 3</li>
        </ul>
        ```

        Let's see how we can use the assertion:

        ```py
        from playwright.async_api import expect

        # ✓ Has the right items in the right order
        await expect(page.locator("ul > li")).to_have_text(["Text 1", "Text 2", "Text 3"])

        # ✖ Wrong order
        await expect(page.locator("ul > li")).to_have_text(["Text 3", "Text 2", "Text 1"])

        # ✖ Last item does not match
        await expect(page.locator("ul > li")).to_have_text(["Text 1", "Text 2", "Text"])

        # ✖ Locator points to the outer list element, not to the list items
        await expect(page.locator("ul")).to_have_text(["Text 1", "Text 2", "Text 3"])
        ```

        Parameters
        ----------
        expected : Union[Pattern[str], Sequence[Pattern[str]], Sequence[Union[Pattern[str], str]], Sequence[str], str]
            Expected string or RegExp or a list of those.
        use_inner_text : Union[bool, None]
            Whether to use `element.innerText` instead of `element.textContent` when retrieving DOM node text.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        ignore_case : Union[bool, None]
            Whether to perform case-insensitive match. `ignoreCase` option takes precedence over the corresponding regular
            expression flag if specified.
        Tr  N)r   rD   rE   to_have_textr   r  s         rI   r6  zLocatorAssertions.to_have_text:L  sX     ` !&&..-- 2+&	 .  
 	
r  c                   K   d}t        j                  | j                  j                  t        j                  |      |||       d{         S 7 w)a  LocatorAssertions.not_to_have_text

        The opposite of `locator_assertions.to_have_text()`.

        Parameters
        ----------
        expected : Union[Pattern[str], Sequence[Pattern[str]], Sequence[Union[Pattern[str], str]], Sequence[str], str]
            Expected string or RegExp or a list of those.
        use_inner_text : Union[bool, None]
            Whether to use `element.innerText` instead of `element.textContent` when retrieving DOM node text.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        ignore_case : Union[bool, None]
            Whether to perform case-insensitive match. `ignoreCase` option takes precedence over the corresponding regular
            expression flag if specified.
        Tr  N)r   rD   rE   not_to_have_textr   r  s         rI   r8  z"LocatorAssertions.not_to_have_textL  sW     < !&&..11 2+&	 2  
 	
r  rJ  r   rJ  c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)a  LocatorAssertions.to_be_attached

        Ensures that `Locator` points to an element that is
        [connected](https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected) to a Document or a ShadowRoot.

        **Usage**

        ```py
        await expect(page.get_by_text("Hidden text")).to_be_attached()
        ```

        Parameters
        ----------
        attached : Union[bool, None]
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr9  N)r   rD   rE   to_be_attachedrH   rJ  r   r  s       rI   r;  z LocatorAssertions.to_be_attachedL  s>     . !&&..//7/SS
 	
SrY  r   r  indeterminater  r>  c                   K   d}t        j                  | j                  j                  |||       d{         S 7 w)ay  LocatorAssertions.to_be_checked

        Ensures the `Locator` points to a checked input.

        **Usage**

        ```py
        from playwright.async_api import expect

        locator = page.get_by_label("Subscribe to newsletter")
        await expect(locator).to_be_checked()
        ```

        Parameters
        ----------
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        checked : Union[bool, None]
            Provides state to assert for. Asserts for input to be checked by default. This option can't be used when
            `indeterminate` is set to true.
        indeterminate : Union[bool, None]
            Asserts that the element is in the indeterminate (mixed) state. Only supported for checkboxes and radio buttons.
            This option can't be true when `checked` is provided.
        Tr=  N)r   rD   rE   to_be_checked)rH   r   r  r>  r  s        rI   r@  zLocatorAssertions.to_be_checkedL  sI     > !&&.... /  
 	
rV  c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)a/  LocatorAssertions.not_to_be_attached

        The opposite of `locator_assertions.to_be_attached()`.

        Parameters
        ----------
        attached : Union[bool, None]
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr9  N)r   rD   rE   not_to_be_attachedr<  s       rI   rB  z$LocatorAssertions.not_to_be_attachedM  >       !&&..33Xw3WW
 	
WrY  c                   K   d}t        j                  | j                  j                  |       d{         S 7 w)a  LocatorAssertions.not_to_be_checked

        The opposite of `locator_assertions.to_be_checked()`.

        Parameters
        ----------
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  N)r   rD   rE   not_to_be_checkedrH   r   r  s      rI   rE  z#LocatorAssertions.not_to_be_checkedM  <      !&&..2272CC
 	
CrH  c                   K   d}t        j                  | j                  j                  |       d{         S 7 w)ay  LocatorAssertions.to_be_disabled

        Ensures the `Locator` points to a disabled element. Element is disabled if it has "disabled" attribute or is
        disabled via
        ['aria-disabled'](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-disabled). Note
        that only native control elements such as HTML `button`, `input`, `select`, `textarea`, `option`, `optgroup` can be
        disabled by setting "disabled" attribute. "disabled" attribute on other elements is ignored by the browser.

        **Usage**

        ```py
        from playwright.async_api import expect

        locator = page.locator("button.submit")
        await expect(locator).to_be_disabled()
        ```

        Parameters
        ----------
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  N)r   rD   rE   to_be_disabledrF  s      rI   rI  z LocatorAssertions.to_be_disabled*M  s<     . !&&..///@@
 	
@rH  c                   K   d}t        j                  | j                  j                  |       d{         S 7 w)a
  LocatorAssertions.not_to_be_disabled

        The opposite of `locator_assertions.to_be_disabled()`.

        Parameters
        ----------
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  N)r   rD   rE   not_to_be_disabledrF  s      rI   rK  z$LocatorAssertions.not_to_be_disabledGM  s<      !&&..33G3DD
 	
DrH  r?  r   r?  c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)a  LocatorAssertions.to_be_editable

        Ensures the `Locator` points to an editable element.

        **Usage**

        ```py
        from playwright.async_api import expect

        locator = page.get_by_role("textbox")
        await expect(locator).to_be_editable()
        ```

        Parameters
        ----------
        editable : Union[bool, None]
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        TrL  N)r   rD   rE   to_be_editablerH   r?  r   r  s       rI   rN  z LocatorAssertions.to_be_editableYM  s>     2 !&&..//7/SS
 	
SrY  c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)a/  LocatorAssertions.not_to_be_editable

        The opposite of `locator_assertions.to_be_editable()`.

        Parameters
        ----------
        editable : Union[bool, None]
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        TrL  N)r   rD   rE   not_to_be_editablerO  s       rI   rQ  z$LocatorAssertions.not_to_be_editablexM  rC  rY  c                   K   d}t        j                  | j                  j                  |       d{         S 7 w)a  LocatorAssertions.to_be_empty

        Ensures the `Locator` points to an empty editable element or to a DOM node that has no text.

        **Usage**

        ```py
        from playwright.async_api import expect

        locator = page.locator("div.warning")
        await expect(locator).to_be_empty()
        ```

        Parameters
        ----------
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  N)r   rD   rE   to_be_emptyrF  s      rI   rS  zLocatorAssertions.to_be_emptyM  s<     & !&&..,,W,==
 	
=rH  c                   K   d}t        j                  | j                  j                  |       d{         S 7 w)a  LocatorAssertions.not_to_be_empty

        The opposite of `locator_assertions.to_be_empty()`.

        Parameters
        ----------
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  N)r   rD   rE   not_to_be_emptyrF  s      rI   rU  z!LocatorAssertions.not_to_be_emptyM  s<      !&&..000AA
 	
ArH  r@  r   r@  c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)a  LocatorAssertions.to_be_enabled

        Ensures the `Locator` points to an enabled element.

        **Usage**

        ```py
        from playwright.async_api import expect

        locator = page.locator("button.submit")
        await expect(locator).to_be_enabled()
        ```

        Parameters
        ----------
        enabled : Union[bool, None]
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        TrV  N)r   rD   rE   to_be_enabledrH   r@  r   r  s       rI   rX  zLocatorAssertions.to_be_enabledM  s>     2 !&&....w.PP
 	
PrY  c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)a,  LocatorAssertions.not_to_be_enabled

        The opposite of `locator_assertions.to_be_enabled()`.

        Parameters
        ----------
        enabled : Union[bool, None]
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        TrV  N)r   rD   rE   not_to_be_enabledrY  s       rI   r[  z#LocatorAssertions.not_to_be_enabledM  >       !&&..227G2TT
 	
TrY  c                   K   d}t        j                  | j                  j                  |       d{         S 7 w)a-  LocatorAssertions.to_be_hidden

        Ensures that `Locator` either does not resolve to any DOM node, or resolves to a
        [non-visible](https://playwright.dev/python/docs/actionability#visible) one.

        **Usage**

        ```py
        from playwright.async_api import expect

        locator = page.locator('.my-element')
        await expect(locator).to_be_hidden()
        ```

        Parameters
        ----------
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  N)r   rD   rE   to_be_hiddenrF  s      rI   r^  zLocatorAssertions.to_be_hiddenM  s<     ( !&&..--g->>
 	
>rH  c                   K   d}t        j                  | j                  j                  |       d{         S 7 w)a  LocatorAssertions.not_to_be_hidden

        The opposite of `locator_assertions.to_be_hidden()`.

        Parameters
        ----------
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  N)r   rD   rE   not_to_be_hiddenrF  s      rI   r`  z"LocatorAssertions.not_to_be_hiddenN  s<      !&&..11'1BB
 	
BrH  rC  r   rC  c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)a  LocatorAssertions.to_be_visible

        Ensures that `Locator` points to an attached and [visible](https://playwright.dev/python/docs/actionability#visible) DOM node.

        To check that at least one element from the list is visible, use `locator.first()`.

        **Usage**

        ```py
        # A specific element is visible.
        await expect(page.get_by_text("Welcome")).to_be_visible()

        # At least one item in the list is visible.
        await expect(page.get_by_test_id("todo-item").first).to_be_visible()

        # At least one of the two elements is visible, possibly both.
        await expect(
            page.get_by_role("button", name="Sign in")
            .or_(page.get_by_role("button", name="Sign up"))
            .first
        ).to_be_visible()
        ```

        Parameters
        ----------
        visible : Union[bool, None]
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tra  N)r   rD   rE   to_be_visiblerH   rC  r   r  s       rI   rc  zLocatorAssertions.to_be_visibleN  s?     F !&&....w.PP
 	
PrY  c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)a,  LocatorAssertions.not_to_be_visible

        The opposite of `locator_assertions.to_be_visible()`.

        Parameters
        ----------
        visible : Union[bool, None]
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tra  N)r   rD   rE   not_to_be_visiblerd  s       rI   rf  z#LocatorAssertions.not_to_be_visible?N  r\  rY  c                   K   d}t        j                  | j                  j                  |       d{         S 7 w)a  LocatorAssertions.to_be_focused

        Ensures the `Locator` points to a focused DOM node.

        **Usage**

        ```py
        from playwright.async_api import expect

        locator = page.get_by_role("textbox")
        await expect(locator).to_be_focused()
        ```

        Parameters
        ----------
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  N)r   rD   rE   to_be_focusedrF  s      rI   rh  zLocatorAssertions.to_be_focusedUN  s<     & !&&....w.??
 	
?rH  c                   K   d}t        j                  | j                  j                  |       d{         S 7 w)a  LocatorAssertions.not_to_be_focused

        The opposite of `locator_assertions.to_be_focused()`.

        Parameters
        ----------
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  N)r   rD   rE   not_to_be_focusedrF  s      rI   rj  z#LocatorAssertions.not_to_be_focusednN  rG  rH  ratior   rl  c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)ah  LocatorAssertions.to_be_in_viewport

        Ensures the `Locator` points to an element that intersects viewport, according to the
        [intersection observer API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API).

        **Usage**

        ```py
        from playwright.async_api import expect

        locator = page.get_by_role("button")
        # Make sure at least some part of element intersects viewport.
        await expect(locator).to_be_in_viewport()
        # Make sure element is fully outside of viewport.
        await expect(locator).not_to_be_in_viewport()
        # Make sure that at least half of the element intersects viewport.
        await expect(locator).to_be_in_viewport(ratio=0.5)
        ```

        Parameters
        ----------
        ratio : Union[float, None]
            The minimal ratio of the element to intersect viewport. If equals to `0`, then element should intersect viewport at
            any positive ratio. Defaults to `0`.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Trk  N)r   rD   rE   to_be_in_viewportrH   rl  r   r  s       rI   rn  z#LocatorAssertions.to_be_in_viewportN  s?     B !&&..222PP
 	
PrY  c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)a3  LocatorAssertions.not_to_be_in_viewport

        The opposite of `locator_assertions.to_be_in_viewport()`.

        Parameters
        ----------
        ratio : Union[float, None]
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Trk  N)r   rD   rE   not_to_be_in_viewportro  s       rI   rq  z'LocatorAssertions.not_to_be_in_viewportN  s>       !&&..66UG6TT
 	
TrY  descriptionc                   K   d}t        j                  | j                  j                  |||       d{         S 7 w)aU  LocatorAssertions.to_have_accessible_description

        Ensures the `Locator` points to an element with a given
        [accessible description](https://w3c.github.io/accname/#dfn-accessible-description).

        **Usage**

        ```py
        locator = page.get_by_test_id("save-button")
        await expect(locator).to_have_accessible_description("Save results to disk")
        ```

        Parameters
        ----------
        description : Union[Pattern[str], str]
            Expected accessible description.
        ignore_case : Union[bool, None]
            Whether to perform case-insensitive match. `ignoreCase` option takes precedence over the corresponding regular
            expression flag if specified.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        T)rr  r  r   N)r   rD   rE   to_have_accessible_description)rH   rr  r  r   r  s        rI   rt  z0LocatorAssertions.to_have_accessible_descriptionN  sJ     : !&&..??'K @  
 	
rV  c                   K   d}t        j                  | j                  j                  |||       d{         S 7 w)aL  LocatorAssertions.not_to_have_accessible_description

        The opposite of `locator_assertions.to_have_accessible_description()`.

        Parameters
        ----------
        name : Union[Pattern[str], str]
            Expected accessible description.
        ignore_case : Union[bool, None]
            Whether to perform case-insensitive match. `ignoreCase` option takes precedence over the corresponding regular
            expression flag if specified.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Try   r  r   N)r   rD   rE   "not_to_have_accessible_descriptionrH   ry   r  r   r  s        rI   rw  z4LocatorAssertions.not_to_have_accessible_descriptionN  sJ     * !&&..CCk7 D  
 	
rV  c                   K   d}t        j                  | j                  j                  |||       d{         S 7 w)a#  LocatorAssertions.to_have_accessible_name

        Ensures the `Locator` points to an element with a given
        [accessible name](https://w3c.github.io/accname/#dfn-accessible-name).

        **Usage**

        ```py
        locator = page.get_by_test_id("save-button")
        await expect(locator).to_have_accessible_name("Save to disk")
        ```

        Parameters
        ----------
        name : Union[Pattern[str], str]
            Expected accessible name.
        ignore_case : Union[bool, None]
            Whether to perform case-insensitive match. `ignoreCase` option takes precedence over the corresponding regular
            expression flag if specified.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Trv  N)r   rD   rE   to_have_accessible_namerx  s        rI   rz  z)LocatorAssertions.to_have_accessible_nameN  sI     : !&&..88k7 9  
 	
rV  c                   K   d}t        j                  | j                  j                  |||       d{         S 7 w)a7  LocatorAssertions.not_to_have_accessible_name

        The opposite of `locator_assertions.to_have_accessible_name()`.

        Parameters
        ----------
        name : Union[Pattern[str], str]
            Expected accessible name.
        ignore_case : Union[bool, None]
            Whether to perform case-insensitive match. `ignoreCase` option takes precedence over the corresponding regular
            expression flag if specified.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Trv  N)r   rD   rE   not_to_have_accessible_namerx  s        rI   r|  z-LocatorAssertions.not_to_have_accessible_name$O  sI     * !&&..<<k7 =  
 	
rV  r  r  c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)ah  LocatorAssertions.to_have_role

        Ensures the `Locator` points to an element with a given [ARIA role](https://www.w3.org/TR/wai-aria-1.2/#roles).

        Note that role is matched as a string, disregarding the ARIA role hierarchy. For example, asserting  a superclass
        role `"checkbox"` on an element with a subclass role `"switch"` will fail.

        **Usage**

        ```py
        locator = page.get_by_test_id("save-button")
        await expect(locator).to_have_role("button")
        ```

        Parameters
        ----------
        role : Union["alert", "alertdialog", "application", "article", "banner", "blockquote", "button", "caption", "cell", "checkbox", "code", "columnheader", "combobox", "complementary", "contentinfo", "definition", "deletion", "dialog", "directory", "document", "emphasis", "feed", "figure", "form", "generic", "grid", "gridcell", "group", "heading", "img", "insertion", "link", "list", "listbox", "listitem", "log", "main", "marquee", "math", "menu", "menubar", "menuitem", "menuitemcheckbox", "menuitemradio", "meter", "navigation", "none", "note", "option", "paragraph", "presentation", "progressbar", "radio", "radiogroup", "region", "row", "rowgroup", "rowheader", "scrollbar", "search", "searchbox", "separator", "slider", "spinbutton", "status", "strong", "subscript", "superscript", "switch", "tab", "table", "tablist", "tabpanel", "term", "textbox", "time", "timer", "toolbar", "tooltip", "tree", "treegrid", "treeitem"]
            Required aria role.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  r   N)r   rD   rE   to_have_rolerH   r  r   r  s       rI   r  zLocatorAssertions.to_have_roleAO  s?     \ !&&..--4-II
 	
IrY  error_messagec                   K   d}t        j                  | j                  j                  |||       d{         S 7 w)aP  LocatorAssertions.to_have_accessible_error_message

        Ensures the `Locator` points to an element with a given
        [aria errormessage](https://w3c.github.io/aria/#aria-errormessage).

        **Usage**

        ```py
        locator = page.get_by_test_id("username-input")
        await expect(locator).to_have_accessible_error_message("Username is required.")
        ```

        Parameters
        ----------
        error_message : Union[Pattern[str], str]
            Expected accessible error message.
        ignore_case : Union[bool, None]
            Whether to perform case-insensitive match. `ignoreCase` option takes precedence over the corresponding regular
            expression flag if specified.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        TerrorMessager  r   N)r   rD   rE    to_have_accessible_error_messagerH   r  r  r   r  s        rI   r  z2LocatorAssertions.to_have_accessible_error_messageO  sJ     : !&&..AA*{G B  
 	
rV  c                   K   d}t        j                  | j                  j                  |||       d{         S 7 w)a[  LocatorAssertions.not_to_have_accessible_error_message

        The opposite of `locator_assertions.to_have_accessible_error_message()`.

        Parameters
        ----------
        error_message : Union[Pattern[str], str]
            Expected accessible error message.
        ignore_case : Union[bool, None]
            Whether to perform case-insensitive match. `ignoreCase` option takes precedence over the corresponding regular
            expression flag if specified.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  N)r   rD   rE   $not_to_have_accessible_error_messager  s        rI   r  z6LocatorAssertions.not_to_have_accessible_error_messageO  sJ     * !&&..EE*{G F  
 	
rV  c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)a  LocatorAssertions.not_to_have_role

        The opposite of `locator_assertions.to_have_role()`.

        Parameters
        ----------
        role : Union["alert", "alertdialog", "application", "article", "banner", "blockquote", "button", "caption", "cell", "checkbox", "code", "columnheader", "combobox", "complementary", "contentinfo", "definition", "deletion", "dialog", "directory", "document", "emphasis", "feed", "figure", "form", "generic", "grid", "gridcell", "group", "heading", "img", "insertion", "link", "list", "listbox", "listitem", "log", "main", "marquee", "math", "menu", "menubar", "menuitem", "menuitemcheckbox", "menuitemradio", "meter", "navigation", "none", "note", "option", "paragraph", "presentation", "progressbar", "radio", "radiogroup", "region", "row", "rowgroup", "rowheader", "scrollbar", "search", "searchbox", "separator", "slider", "spinbutton", "status", "strong", "subscript", "superscript", "switch", "tab", "table", "tablist", "tabpanel", "term", "textbox", "time", "timer", "toolbar", "tooltip", "tree", "treegrid", "treeitem"]
            Required aria role.
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr~  N)r   rD   rE   not_to_have_roler  s       rI   r  z"LocatorAssertions.not_to_have_roleO  s?     H !&&..11tW1MM
 	
MrY  c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)aw  LocatorAssertions.to_match_aria_snapshot

        Asserts that the target element matches the given [accessibility snapshot](https://playwright.dev/python/docs/aria-snapshots).

        **Usage**

        ```py
        await page.goto("https://demo.playwright.dev/todomvc/")
        await expect(page.locator('body')).to_match_aria_snapshot('''
          - heading "todos"
          - textbox "What needs to be done?"
        ''')
        ```

        Parameters
        ----------
        expected : str
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  N)r   rD   rE   to_match_aria_snapshotr  s       rI   r  z(LocatorAssertions.to_match_aria_snapshotaP  sG     . !&&..77!7 8  
 	
rY  c                   K   d}t        j                  | j                  j                  ||       d{         S 7 w)a1  LocatorAssertions.not_to_match_aria_snapshot

        The opposite of `locator_assertions.to_match_aria_snapshot()`.

        Parameters
        ----------
        expected : str
        timeout : Union[float, None]
            Time to retry the assertion for in milliseconds. Defaults to `5000`.
        Tr  N)r   rD   rE   not_to_match_aria_snapshotr  s       rI   r  z,LocatorAssertions.not_to_match_aria_snapshotP  sG      !&&..;;!7 <  
 	
rY  )@r   r   r   r   r   rO  r   r  r   r   r   r  r  r  r
  r  r  r   r  r  r  r  r   r#  r   r%  r'  r*  r-  r1  r4  r6  r8  r;  r@  rB  rE  rI  rK  rN  rQ  rS  rU  rX  r[  r^  r`  rc  rf  rh  rj  rn  rq  rt  rw  rz  r|  r   r  r  r  r  r  r  r   rK   rI   r   r   I  s    15*.-1Z
,,OOC OOFNN3/0OOFLL)<c)ABCNN3	
Z
 -Z
 'Z
 __T*Z
 
Z
L 15*.-1'
,,OOC OOFNN3/0OOFLL)<c)ABCNN3	
'
 -'
 ''
 __T*'
 
'
\ .2*.'
'
 ||C!445'

 __T*'
 ''
 
'
\ .2*.

 ||C!445

 __T*
 '
 

T +/7
,,OOC OOFNN3/0OOFLL)<c)ABCNN3	
7
 '7
 
7
F +/
,,OOC OOFNN3/0OOFLL)<c)ABCNN3	

 '
 

@ @D

&,ooe&<
	
< @D

&,ooe&<
	
2 +/!
!
 ||C!445!

 '!
 
!
P +/

 ||C!445

 '
 

@ +/	
LLfnnS112
 '	

 

H +/	
LLfnnS112
 '	

 

0 RV 
 
 &

 
8>8N 
	 
F RV

 &


8>8N
	
8 +/	 
||C!445 
 '	 

 
 
L +/	
||C!445
 '	

 

> +/1
OOC OOFNN3/0OOFLL)<c)ABCE
1
 '1
 
1
v +/
OOC OOFNN3/0OOFLL)<c)ABCE

 '
 

N 15*.-1Y
,,OOC OOFNN3/0OOFLL)<c)ABCNN3	
Y
 -Y
 'Y
 __T*Y
 
Y
J 15*.-1'
,,OOC OOFNN3/0OOFLL)<c)ABCNN3	
'
 -'
 ''
 __T*'
 
'
X +/*.	
 //$'
 '	

 

@ +/)-/3%
 '%
 &	%

 t,%
 
%
T +/*.	
 //$'
 '	

 

. 48
 //%0
	
$ IM 
vu/E 
QU 
< 48
 //%0
	
* +/*.	
 //$'
 '	

 

D +/*.	
 //$'
 '	

 

, FJ 
FOOE,B 
d 
2 JN 
0F 
RV 
& *.*.	
 &
 '	

 

D *.*.	
 &
 '	

 

, GK 
V__U-C 
t 
4 KO 
1G 
SW 
& *.*.	'
 &'
 '	'

 
'
X *.*.	
 &
 '	

 

, HL 
fooe.D 
PT 
4 48
 //%0
	
* )-*.	%
 u%%
 '	%

 
%
T )-*.	
 u%
 '	

 

4 .2*.#
\\#v~~c':":;#
 __T*	#

 '#
 
#
R .2*.
ll3s 334
 __T*	

 '
 

B .2*.#
ll3s 334#
 __T*	#

 '#
 
#
R .2*.
ll3s 334
 __T*	

 '
 

h +/or
QS
r
n 'or
p 
qr
p .2*.#
||C)<$<=#
 __T*	#

 '#
 
#
R .2*.
||C)<$<=
 __T*	

 '
 

h +/oh
QS
h
n 'oh
p 
qh
V CG

)/)?
	
@ CG

)/)?
	
rK   r   c                       e Zd ZddZddZy)r   Nc                 |   K   d}t        j                  | j                  j                          d{         S 7 w)a  APIResponseAssertions.to_be_ok

        Ensures the response status code is within `200..299` range.

        **Usage**

        ```py
        from playwright.async_api import expect

        # ...
        await expect(response).to_be_ok()
        ```
        TN)r   rD   rE   to_be_okrH   r  s     rI   r  zAPIResponseAssertions.to_be_okP  s2      !&&T^^-D-D-F'FGG'Fr   c                 |   K   d}t        j                  | j                  j                          d{         S 7 w)zkAPIResponseAssertions.not_to_be_ok

        The opposite of `a_pi_response_assertions.to_be_ok()`.
        TN)r   rD   rE   not_to_be_okr  s     rI   r  z"APIResponseAssertions.not_to_be_okP  s2     
 !&&T^^-H-H-J'JKK'Jr   r   )r   r   r   r  r  r   rK   rI   r   r   P  s    H$LrK   r   )r  r   r   r   playwright._impl._accessibilityr   AccessibilityImpl playwright._impl._api_structuresr   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   playwright._impl._assertionsr   APIResponseAssertionsImplr   LocatorAssertionsImplr   PageAssertionsImplplaywright._impl._async_baser   r   r   r   playwright._impl._browserr   BrowserImpl!playwright._impl._browser_contextr    BrowserContextImplplaywright._impl._browser_typer!   BrowserTypeImplplaywright._impl._cdp_sessionr"   CDPSessionImplplaywright._impl._clockr#   	ClockImpl!playwright._impl._console_messager$   ConsoleMessageImplplaywright._impl._dialogr%   
DialogImplplaywright._impl._downloadr&   DownloadImpl playwright._impl._element_handler'   ElementHandleImplplaywright._impl._errorsr(   playwright._impl._fetchr)   APIRequestImplr*   APIRequestContextImplr+   APIResponseImplplaywright._impl._file_chooserr,   FileChooserImplplaywright._impl._framer-   	FrameImplplaywright._impl._inputr.   KeyboardImplr/   	MouseImplr0   TouchscreenImplplaywright._impl._js_handler1   JSHandleImplplaywright._impl._locatorr2   FrameLocatorImplr3   LocatorImplplaywright._impl._networkr4   RequestImplr5   ResponseImplr6   	RouteImplr7   WebSocketImplr8   WebSocketRouteImplplaywright._impl._pager9   PageImplr:   
WorkerImplplaywright._impl._playwrightr;   PlaywrightImplplaywright._impl._selectorsr<   SelectorsImplplaywright._impl._tracingr=   TracingImplplaywright._impl._videor>   	VideoImplplaywright._impl._web_errorr?   WebErrorImplr  r   rK   rI   <module>r     s        N     * T M  = R I F 6 R 9 ? O * @ N B I 6 < 6 B @ F < < > 8 @ J 3 7 E B < 6 @gUi gUT	   g &gDy gDT   x (D
I D
N
   E "{C	 {C|   	 *y
Y y
x   #^ 4^Yy ^YB   x (R
I R
j   E "K) K(   + .VJy VJr   x (]
H ]
@)   "M 2<
I <
~   "M 2G
) G
T   + .N+
I N+
bV   E "[	B9 [	B|   !< 0_
Y _
D   V $\
	 \
~   	 *iXI iXX   E "<?Y <?~   #^ 4GGY GGT   V $hFy hFV   x (#FI #FL   E "dM
 dM
N[   4  7y 76   x (SR( SRl(   #^ 4F FB    ,H
L! H
LV   g &E	
) E	
P   + .xD xDv    ,cIi cIL   g &t)Ii t)InS   g &wG) wGt   + .Y
P	 Y
Px   &(9 :R
 R
j    ,@
Y @
F   #^ 4k
	 k
\7   &(9 :LI L<   *,A BrK   