ó
    ¾®iÕ  ã                   óF   • S SK Jr  S SKJr   " S S5      r " S S\5      rg)é    )ÚDesiredCapabilities)Ú
ArgOptionsc                   ó*   • \ rS rSrSrS rS rS rSrg)Ú_SafariOptionsDescriptoré   aá  _SafariOptionsDescriptor is an implementation of Descriptor protocol:

: Any look-up or assignment to the below attributes in `Options` class will be intercepted
by `__get__` and `__set__` method respectively.

- `automatic_inspection`
- `automatic_profiling`
- `use_technology_preview`

: When an attribute lookup happens,
Example:
    `self.automatic_inspection`
    `__get__` method does a dictionary look up in the dictionary `_caps` of `Options` class
    and returns the value of key `safari:automaticInspection`
: When an attribute assignment happens,
Example:
    `self.automatic_inspection` = True
    `__set__` method sets/updates the value of the key `safari:automaticInspection` in `_caps`
    dictionary in `Options` class.
c                 ó   • Xl         X l        g ©N)ÚnameÚexpected_type)Úselfr
   r   s      ÚNC:\des-py\RoboSAPF\venv\Lib\site-packages\selenium\webdriver\safari\options.pyÚ__init__Ú!_SafariOptionsDescriptor.__init__,   s   € ØŒ	Ø*Õó    c                 ó¼   • U R                   S:X  a(  UR                  R                  S5      U R                   :H  $ UR                  R                  U R                   5      $ )NúSafari Technology PreviewÚbrowserName)r
   Ú_capsÚget)r   ÚobjÚclss      r   Ú__get__Ú _SafariOptionsDescriptor.__get__0   sB   € Ø�9‰9Ð3Ó3Ø—9‘9—=‘= Ó/°4·9±9Ñ<Ð<Ø�y‰y�}‰}˜TŸY™YÓ'Ð'r   c                 ó  • [        X R                  5      (       d$  [        U R                   SU R                   35      eU R                  S:X  a#  U(       a  U R                  OSUR                  S'   g X!R                  U R                  '   g )Nz must be of type r   Úsafarir   )Ú
isinstancer   Ú	TypeErrorr
   r   )r   r   Úvalues      r   Ú__set__Ú _SafariOptionsDescriptor.__set__5   sh   € Ü˜%×!3Ñ!3×4Ñ4Ü˜tŸy™y˜kÐ):¸4×;MÑ;MÐ:NÐOÓPÐPØ�9‰9Ð3Ó3Þ49 t§y¢y¸xˆC�I‰I�mÒ$à#(�I‰I�d—i‘iÒ r   )r   r
   N)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   Ú__static_attributes__© r   r   r   r      s   † ñò*+ò(õ
)r   r   c                   ó~   • \ rS rSrSrSrSr\" \\5      r	 \" \\5      r
 \" \\5      r \S\\\4   4S j5       rSrg)	ÚOptionsé>   zsafari:automaticInspectionzsafari:automaticProfilingr   Úreturnc                 ó>   • [         R                  R                  5       $ r	   )r   ÚSAFARIÚcopy)r   s    r   Údefault_capabilitiesÚOptions.default_capabilitiesp   s   € ä"×)Ñ)×.Ñ.Ó0Ð0r   r'   N)r!   r"   r#   r$   ÚAUTOMATIC_INSPECTIONÚAUTOMATIC_PROFILINGÚSAFARI_TECH_PREVIEWr   ÚboolÚautomatic_inspectionÚautomatic_profilingÚuse_technology_previewÚpropertyÚdictÚstrr/   r&   r'   r   r   r)   r)   >   sv   † à7ÐØ5ÐØ5Ðñ 4Ð4HÈ$ÓOÐðñ 3Ð3FÈÓMÐðñ 6Ð6IÈ4ÓPÐðð ð1 d¨3°¨8¡nó 1ó ó1r   r)   N)Ú.selenium.webdriver.common.desired_capabilitiesr   Ú!selenium.webdriver.common.optionsr   r   r)   r'   r   r   Ú<module>r=      s%   ðõ$ OÝ 8÷%)ñ %)ôP41ˆjõ 41r   