
    ^j                     N    d dl mZmZ d dlmZ d dlmZ ddlmZ	  G d de      Z
y)	    )AnyDict)Self)CanExecuteCommands   )MobileCommandc                   D    e Zd Zdeeef   fdZdeeef   defdZddZ	y)Settingsreturnc                 H    | j                  t        j                  i       d   S )a/  Returns the appium server Settings for the current session.

        Do not get Settings confused with Desired Capabilities, they are
        separate concepts. See https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/settings.md

        Returns:
            Current settings
        value)executeCommandGET_SETTINGSselfs    X/home/ubuntu/.local/lib/python3.12/site-packages/appium/webdriver/extensions/settings.pyget_settingszSettings.get_settings   s      ||G00"5g>>    settingsc                 J    | j                  t        j                  d|i       | S )a  Set settings for the current session.

        For more on settings, see: https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/settings.md

        Args:
            settings: dictionary of settings to apply to the current test session
        r   )r   r   UPDATE_SETTINGS)r   r   s     r   update_settingszSettings.update_settings$   s"     	W,,z8.DEr   Nc                     | j                   j                  t        j                  dd       | j                   j                  t        j                  dd       y )NGETz#/session/$sessionId/appium/settingsPOST)command_executoradd_commandr   r   r   r   s    r   _add_commandszSettings._add_commands/   s@    ))'*>*>Glm))'*A*A6Kpqr   )r   N)
__name__
__module____qualname__r   strr   r   r   r   r    r   r   r
   r
      s7    	?d38n 	?	S#X 	4 	rr   r
   N)typingr   r   typing_extensionsr   /appium.protocols.webdriver.can_execute_commandsr   mobilecommandr   r   r
   r$   r   r   <module>r)      s"     " N 4r! rr   