§
    °õiç  ã                   óŒ   — d dl mZmZmZ d dlmZ d dlmZ d dlm	Z	 d dl
mZ d dlmZ  G d„ d¦  «        Z G d	„ d
e	¦  «        ZdS )é    )ÚAnyÚOptionalÚUnion)Ú
deprecated)ÚDesiredCapabilities)Ú
ArgOptions)ÚFirefoxBinary)ÚFirefoxProfilec                   ó"   — e Zd Zdd„Zdefd„ZdS )ÚLogÚreturnNc                 ó   — d | _         d S ©N©Úlevel©Úselfs    ún/var/www/html/nodeJS/PythonScripts/venv3.11/lib/python3.11/site-packages/selenium/webdriver/firefox/options.pyÚ__init__zLog.__init__   s   € ØˆŒ
ˆ
ˆ
ó    c                 ó*   — | j         rdd| j         iiS i S )NÚlogr   r   r   s    r   Úto_capabilitieszLog.to_capabilities   s#   € ØŒ:ð 	2Ø˜G T¤ZÐ0Ð1Ð1Øˆ	r   ©r   N)Ú__name__Ú
__module__Ú__qualname__r   Údictr   © r   r   r   r      sC   € € € € € ðð ð ð ð ð ð ð ð ð ð r   r   c                   óì  ‡ — e Zd ZdZdˆ fd„Ze ed¦  «        defd„¦   «         ¦   «         Zej	         ed¦  «        de
eef         ddfd„¦   «         ¦   «         Zedefd	„¦   «         Zej	        d
eddfd„¦   «         Zedefd„¦   «         Zded
e
eeef         fd„Zedee         fd„¦   «         Zej	        de
eef         ddfd„¦   «         Z	 ddee         fˆ fd„Zdefd„Zedefd„¦   «         Zˆ xZS )ÚOptionszmoz:firefoxOptionsr   Nc                 ó¬   •— t          ¦   «                              ¦   «          d| _        i | _        d| j        d<   d | _        t          ¦   «         | _        d S )NÚ é   zremote.active-protocols)Úsuperr   Ú_binary_locationÚ_preferencesÚ_profiler   r   )r   Ú	__class__s    €r   r   zOptions.__init__(   sO   ø€ Ý‰Œ×ÒÑÔÐØ "ˆÔØ"$ˆÔð 89ˆÔÐ3Ñ4Ø26ˆŒÝ‘5”5ˆŒˆˆr   zuse binary_location insteadc                 ó*   — t          | j        ¦  «        S )z#Returns the FirefoxBinary instance.)r	   r&   r   s    r   ÚbinaryzOptions.binary2   s   € õ ˜TÔ2Ñ3Ô3Ð3r   Ú
new_binaryc                 óf   — t          |t          ¦  «        r|j        }t          |¦  «        | _        dS )z\Sets location of the browser binary, either by string or
        ``FirefoxBinary`` instance.N)Ú
isinstancer	   Ú
_start_cmdÚstrÚbinary_location)r   r,   s     r   r+   zOptions.binary8   s2   € õ
 �j¥-Ñ0Ô0ð 	/Ø#Ô.ˆJÝ" :™œˆÔÐÐr   c                 ó   — | j         S )z%:Returns: The location of the binary.)r&   r   s    r   r1   zOptions.binary_locationA   s   € ð Ô$Ð$r   Úvaluec                 óf   — t          |t          ¦  «        st          | j        ¦  «        ‚|| _        dS )z2Sets the location of the browser binary by string.N)r.   r0   Ú	TypeErrorÚBINARY_LOCATION_ERRORr&   )r   r3   s     r   r1   zOptions.binary_locationF   s5   € õ ˜%¥Ñ%Ô%ð 	8Ý˜DÔ6Ñ7Ô7Ð7Ø %ˆÔÐÐr   c                 ó   — | j         S )z :Returns: A dict of preferences.©r'   r   s    r   ÚpreferenceszOptions.preferencesM   s   € ð Ô Ð r   Únamec                 ó   — || j         |<   dS )zSets a preference.Nr8   )r   r:   r3   s      r   Úset_preferencezOptions.set_preferenceR   s   € à"'ˆÔ˜$ÑÐÐr   c                 ó   — | j         S )z%:Returns: The Firefox profile to use.)r(   r   s    r   ÚprofilezOptions.profileV   s   € ð Œ}Ðr   Únew_profilec                 ó\   — t          |t          ¦  «        st          |¦  «        }|| _        dS )z\Sets location of the browser profile to use, either by string or
        ``FirefoxProfile``.N)r.   r
   r(   )r   r?   s     r   r>   zOptions.profile[   s.   € õ ˜+¥~Ñ6Ô6ð 	6Ý(¨Ñ5Ô5ˆKØ#ˆŒˆˆr   úorg.mozilla.firefoxÚandroid_packagec                 óN   •— t          ¦   «                              |||¦  «         d S r   )r%   Úenable_mobile)r   rB   Úandroid_activityÚdevice_serialr)   s       €r   rD   zOptions.enable_mobilec   s(   ø€ õ 	‰Œ×Ò˜oÐ/?ÀÑOÔOÐOÐOÐOr   c                 óf  — | j         }i }| j        r
| j        |d<   | j        r
| j        |d<   | j        r| j        j        |d<   | j        r
| j        |d<   | j        r|                     | j        ¦  «         |                     | j         	                    ¦   «         ¦  «         |r||t          j        <   |S )z>Marshals the Firefox options to a `moz:firefoxOptions` object.r+   Úprefsr>   Úargs)Ú_capsr&   r'   r(   ÚencodedÚ
_argumentsÚmobile_optionsÚupdater   r   r!   ÚKEY)r   ÚcapsÚoptss      r   r   zOptions.to_capabilitiesh   sÄ   € ð ŒzˆØ!ˆàÔ ð 	3Ø!Ô2ˆD�‰NØÔð 	.Ø Ô-ˆD�‰MØŒ=ð 	4Ø"œmÔ3ˆD�‰OØŒ?ð 	+Øœ?ˆD�‰LØÔð 	-Ø�KŠK˜Ô+Ñ,Ô,Ð,à�Š�D”H×,Ò,Ñ.Ô.Ñ/Ô/Ð/àð 	%Ø $ˆD•”Ñàˆr   c                 ó>   — t           j                             ¦   «         S r   )r   ÚFIREFOXÚcopyr   s    r   Údefault_capabilitieszOptions.default_capabilitiesƒ   s   € å"Ô*×/Ò/Ñ1Ô1Ð1r   r   )rA   NN)r   r   r   rO   r   Úpropertyr   r	   r+   Úsetterr   r0   r1   r   r9   ÚintÚboolr<   r   r
   r>   rD   r   rU   Ú__classcell__)r)   s   @r   r!   r!   %   sb  ø€ € € € € Ø
€Cðð ð ð ð ð ð Ø€ZÐ-Ñ.Ô.ð4˜ð 4ð 4ð 4ñ /Ô.ñ „Xð4ð „]Ø€ZÐ-Ñ.Ô.ð/  s¨MÐ'9Ô!:ð /¸tð /ð /ð /ñ /Ô.ñ „]ð/ð ð% ð %ð %ð %ñ „Xð%ð Ôð& Sð &¨Tð &ð &ð &ñ Ôð&ð ð!˜Tð !ð !ð !ñ „Xð!ð( 3ð (¨u°S¸#¸t°^Ô/Dð (ð (ð (ð (ð ð˜ .Ô1ð ð ð ñ „Xðð „^ð$ 5¨¨nÐ)<Ô#=ð $À$ð $ð $ð $ñ „^ð$ð lpðPð PØ'¨œ}ðPð Pð Pð Pð Pð Pð
 ð ð ð ð ð6 ð2 dð 2ð 2ð 2ñ „Xð2ð 2ð 2ð 2ð 2r   r!   N)Útypingr   r   r   Útyping_extensionsr   Ú.selenium.webdriver.common.desired_capabilitiesr   Ú!selenium.webdriver.common.optionsr   Ú)selenium.webdriver.firefox.firefox_binaryr	   Ú*selenium.webdriver.firefox.firefox_profiler
   r   r!   r   r   r   ú<module>ra      så   ðð" (Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'à (Ð (Ð (Ð (Ð (Ð (à NÐ NÐ NÐ NÐ NÐ NØ 8Ð 8Ð 8Ð 8Ð 8Ð 8Ø CÐ CÐ CÐ CÐ CÐ CØ EÐ EÐ EÐ EÐ EÐ Eðð ð ð ð ñ ô ð ð`2ð `2ð `2ð `2ð `2ˆjñ `2ô `2ð `2ð `2ð `2r   