§
     žfÞ  ã                   ó\   — d dl Z d dlmZ d dlmZ  G d„ d¦  «        Z G d„ de¦  «        ZdS )é    N)ÚDesiredCapabilities)Ú
ArgOptionsc                   ó$   — e Zd ZdZd„ Zd„ Zd„ ZdS )Ú_SafariOptionsDescriptora!  _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                 ó"   — || _         || _        d S ©N)ÚnameÚexpected_type)Úselfr	   r
   s      úd/var/www/api.educacionweb.es/myenv/lib/python3.11/site-packages/selenium/webdriver/safari/options.pyÚ__init__z!_SafariOptionsDescriptor.__init__-   s   € ØˆŒ	Ø*ˆÔÐÐó    c                 óœ   — | j         dk    r#|j                             d¦  «        | j         k    S |j                             | j         ¦  «        S )NúSafari Technology PreviewÚbrowserName)r	   Ú_capsÚget)r   ÚobjÚclss      r   Ú__get__z _SafariOptionsDescriptor.__get__1   sA   € ØŒ9Ð3Ò3Ð3Ø”9—=’= Ñ/Ô/°4´9Ò<Ð<ØŒy}Š}˜TœYÑ'Ô'Ð'r   c                 óÊ   — t          || j        ¦  «        st          | j        › d| j        › ¦  «        ‚| j        dk    r|r| j        nd|j        d<   d S ||j        | j        <   d S )Nz must be of type r   Úsafarir   )Ú
isinstancer
   Ú	TypeErrorr	   r   )r   r   Úvalues      r   Ú__set__z _SafariOptionsDescriptor.__set__6   sx   € Ý˜% Ô!3Ñ4Ô4ð 	QÝ˜tœyÐOÐO¸4Ô;MÐOÐOÑPÔPÐPØŒ9Ð3Ò3Ð3Ø49Ð'G t¤y y¸xˆCŒImÑ$Ð$Ð$à#(ˆCŒId”iÑ Ð Ð r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   © r   r   r   r      sK   € € € € € ðð ð*+ð +ð +ð(ð (ð (ð
)ð )ð )ð )ð )r   r   c                   óž   — e Zd ZdZdZdZ eee¦  «        Z	  eee¦  «        Z		  eee¦  «        Z
	 edej        eef         fd„¦   «         ZdS )ÚOptionszsafari:automaticInspectionzsafari:automaticProfilingr   Úreturnc                 ó>   — t           j                             ¦   «         S r   )r   ÚSAFARIÚcopy)r   s    r   Údefault_capabilitieszOptions.default_capabilitiesq   s   € å"Ô)×.Ò.Ñ0Ô0Ð0r   N)r   r   r   ÚAUTOMATIC_INSPECTIONÚAUTOMATIC_PROFILINGÚSAFARI_TECH_PREVIEWr   ÚboolÚautomatic_inspectionÚautomatic_profilingÚuse_technology_previewÚpropertyÚtypingÚDictÚstrr(   r!   r   r   r#   r#   ?   s©   € € € € € à7ÐØ5ÐØ5Ðð 4Ð3Ð4HÈ$ÑOÔOÐðð 3Ð2Ð3FÈÑMÔMÐðð 6Ð5Ð6IÈ4ÑPÔPÐðð ð1 f¤k°#°s°(Ô&;ð 1ð 1ð 1ñ „Xð1ð 1ð 1r   r#   )r1   Ú.selenium.webdriver.common.desired_capabilitiesr   Ú!selenium.webdriver.common.optionsr   r   r#   r!   r   r   ú<module>r6      s‘   ðð" €€€à NÐ NÐ NÐ NÐ NÐ NØ 8Ð 8Ð 8Ð 8Ð 8Ð 8ð%)ð %)ð %)ð %)ð %)ñ %)ô %)ð %)ðP41ð 41ð 41ð 41ð 41ˆjñ 41ô 41ð 41ð 41ð 41r   