
    ^j                     J    d dl mZ d dlmZ d dlmZ ddlmZ  G d de      Zy)	    )Optional)SwitchTo)Self   )MobileCommandc                   "    e Zd Zdee   defdZy)MobileSwitchTocontext_namereturnc                 ^    | j                   j                  t        j                  d|i       | S )a  Sets the context for the current session.
        Passing `None` is equal to switching to native context.

        Args:
            context_name: The name of the context to switch to.

        Usage:
            driver.switch_to.context('WEBVIEW_1')
        name)_driverexecuter   SWITCH_TO_CONTEXT)selfr
   s     N/home/ubuntu/.local/lib/python3.12/site-packages/appium/webdriver/switch_to.pycontextzMobileSwitchTo.context   s(     	]<<v|>TU    N)__name__
__module____qualname__r   strr   r    r   r   r	   r	      s    HSM d r   r	   N)	typingr   #selenium.webdriver.remote.switch_tor   typing_extensionsr   mobilecommandr   r	   r   r   r   <module>r      s     8 " (X r   