§
    FthA  ã                   ó€   — d dl 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 )é    N)ÚUnion)Ú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    úv/var/www/html/mycamper/aliexpress-site/backend/venv/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defd„¦   «         Zej        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fd„¦   «         Zej        de	e
ef         ddfd„¦   «         Zdd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 | _        t          ¦   «         | _        d S r   )Úsuperr   Ú_binaryÚ_preferencesÚ_profiler	   r   )r   Ú	__class__s    €r   r   zOptions.__init__'   s>   ø€ Ý‰Œ×ÒÑÔÐØ7;ˆŒØ"$ˆÔØˆŒÝ‘5”5ˆŒˆˆr   c                 ó   — | j         S )z#Returns the FirefoxBinary instance.)r!   r   s    r   ÚbinaryzOptions.binary.   s   € ð Œ|Ðr   Ú
new_binaryc                 ó\   — t          |t          ¦  «        st          |¦  «        }|| _        dS )z\Sets location of the browser binary, either by string or
        ``FirefoxBinary`` instance.N)Ú
isinstancer   r!   )r   r'   s     r   r&   zOptions.binary3   s.   € õ ˜*¥mÑ4Ô4ð 	3Ý& zÑ2Ô2ˆJØ!ˆŒˆˆr   c                 ó   — | j         j        S )z%:Returns: The location of the binary.)r&   Ú
_start_cmdr   s    r   Úbinary_locationzOptions.binary_location;   s   € ð Œ{Ô%Ð%r   Úvaluec                 óf   — t          |t          ¦  «        st          | j        ¦  «        ‚|| _        dS )z2Sets the location of the browser binary by string.N)r)   ÚstrÚ	TypeErrorÚBINARY_LOCATION_ERRORr&   )r   r-   s     r   r,   zOptions.binary_location@   s2   € õ ˜%¥Ñ%Ô%ð 	8Ý˜DÔ6Ñ7Ô7Ð7ØˆŒˆˆr   c                 ó   — | j         S )z :Returns: A dict of preferences.©r"   r   s    r   ÚpreferenceszOptions.preferencesG   s   € ð Ô Ð r   Únamec                 ó   — || j         |<   dS )zSets a preference.Nr3   )r   r5   r-   s      r   Úset_preferencezOptions.set_preferenceL   s   € à"'ˆÔ˜$ÑÐÐr   c                 ó   — | j         S )z%:Returns: The Firefox profile to use.)r#   r   s    r   ÚprofilezOptions.profileP   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   r9   zOptions.profileU   s.   € õ ˜+¥~Ñ6Ô6ð 	6Ý(¨Ñ5Ô5ˆKØ#ˆŒˆˆr   úorg.mozilla.firefoxÚandroid_packagec                 óN   •— t          ¦   «                              |||¦  «         d S r   )r    Úenable_mobile)r   r=   Úandroid_activityÚdevice_serialr$   s       €r   r?   zOptions.enable_mobile]   s&   ø€ Ý‰Œ×Ò˜oÐ/?ÀÑOÔOÐOÐOÐOr   c                 óp  — | j         }i }| j        r| j        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&   Úprefsr9   Úargs)Ú_capsr!   r+   r"   r#   ÚencodedÚ
_argumentsÚmobile_optionsÚupdater   r   r   ÚKEY)r   ÚcapsÚoptss      r   r   zOptions.to_capabilities`   sÅ   € ð ŒzˆØˆàŒ<ð 	5Ø!œ\Ô4ˆ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   )r<   NN)r   r   r   rJ   r   Úpropertyr   r&   Úsetterr   r/   r,   r   r4   ÚintÚboolr7   r   r9   r?   r   rP   Ú__classcell__)r$   s   @r   r   r   $   s%  ø€ € € € € Ø
€Cðð ð ð ð ð ð ð˜ð ð ð ñ „Xðð „]ð"  s¨MÐ'9Ô!:ð "¸tð "ð "ð "ñ „]ð"ð ð& ð &ð &ð &ñ „Xð&ð Ôð Sð ¨Tð ð ð ñ Ôðð ð!˜Tð !ð !ð !ñ „Xð!ð( 3ð (¨u°S¸#¸t°^Ô/Dð (ð (ð (ð (ð ð˜ð ð ð ñ „Xðð „^ð$ 5¨¨nÐ)<Ô#=ð $À$ð $ð $ð $ñ „^ð$ðPð P¨Sð Pð Pð Pð Pð Pð Pð ð ð ð ð ð6 ð2 dð 2ð 2ð 2ñ „Xð2ð 2ð 2ð 2ð 2r   r   )Útypingr   Ú.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>r[      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ðð ð ð ð ñ ô ð ðY2ð Y2ð Y2ð Y2ð Y2ˆjñ Y2ô Y2ð Y2ð Y2ð Y2r   