
    vKg8
                     8    S SK Jr   " S S5      r " S S5      rg)   )Commandc                   J    \ rS rSrS r\S 5       r\S 5       r\S 5       rSr	g)_ConnectionType   c                     Xl         g )Nmask)selfr	   s     `/var/www/highfloat_scraper/venv/lib/python3.13/site-packages/selenium/webdriver/remote/mobile.py__init___ConnectionType.__init__   s    	    c                 &    U R                   S-  S:H  $ N   r   r   r
   s    r   airplane_mode_ConnectionType.airplane_mode   s    yy1}!!r   c                 ,    U R                   S-  S-  S:H  $ r   r   r   s    r   wifi_ConnectionType.wifi   s    		A"a''r   c                 &    U R                   S-  S:  $ )N       r   r   s    r   data_ConnectionType.data!   s    		A""r   r   N)
__name__
__module____qualname____firstlineno__r   propertyr   r   r   __static_attributes__ r   r   r   r      sC     " " ( ( # #r   r   c                       \ rS rSr\r\" S5      r\" S5      r\" S5      r\" S5      r	S r
\S 5       rS r\S	 5       r\R                  SS j5       r\S 5       rSrg
)Mobile&      r   r   r   c                 8    SS K nUR                  U5      U l        g )Nr   )weakrefproxy_driver)r
   driverr)   s      r   r   Mobile.__init__-   s    }}V,r   c                 x    U R                  U R                  R                  [        R                  5      S   5      $ )Nvalue)ConnectionTyper+   executer   GET_NETWORK_CONNECTIONr   s    r   network_connectionMobile.network_connection2   s.    ""4<<#7#78V8V#WX_#`aar   c                     [        XR                  5      (       a  UR                  OUnU R                  U R                  R	                  [
        R                  SSU0S.5      S   5      $ )zSet the network connection for the remote device.

Example of setting airplane mode::

    driver.mobile.set_network_connection(driver.mobile.AIRPLANE_MODE)
r3   type)name
parametersr/   )
isinstancer0   r	   r+   r1   r   SET_NETWORK_CONNECTION)r
   networkmodes      r   set_network_connectionMobile.set_network_connection6   sd      *'3F3FGGw||W""LL  ..9M^dfj]k0l
 	
r   c                 T    U R                   R                  [        R                  5      $ )z0Returns the current context (Native or WebView).)r+   r1   r   CURRENT_CONTEXT_HANDLEr   s    r   contextMobile.contextD   s     ||##G$B$BCCr   Nc                 \    U R                   R                  [        R                  SU05        g)zSets the current context.r7   N)r+   r1   r   SWITCH_TO_CONTEXT)r
   new_contexts     r   rA   rB   I   s#     	W668MNr   c                 T    U R                   R                  [        R                  5      $ )z%Returns a list of available contexts.)r+   r1   r   CONTEXT_HANDLESr   s    r   contextsMobile.contextsN   s     ||##G$;$;<<r   )r+   )returnN)r   r   r   r    r   r0   ALL_NETWORKWIFI_NETWORKDATA_NETWORKAIRPLANE_MODEr   r!   r3   r=   rA   setterrH   r"   r#   r   r   r%   r%   &   s    $N #K!!$L!!$L"1%M-
 b b
 D D ^^O O = =r   r%   N)commandr   r   r%   r#   r   r   <module>rQ      s   $ # #"+= +=r   