
    Y j                     ^    S SK Jr  S SKJr  S SKJr  S SKJr   " S S5      r " S S\5      r	g	)
    )Any)DesiredCapabilities)
ArgOptions)FirefoxProfilec                   ,    \ rS rSrSS jrS\4S jrSrg)Log   returnNc                     S U l         g Nlevelselfs    s/root/GenerationalWealth/GenerationalWealth/venv/lib/python3.13/site-packages/selenium/webdriver/firefox/options.py__init__Log.__init__   s	    
    c                 H    U R                   (       a  SSU R                   00$ 0 $ )Nlogr   r   r   s    r   to_capabilitiesLog.to_capabilities   s"    ::GTZZ011	r   r   r
   N)__name__
__module____qualname____firstlineno__r   dictr   __static_attributes__ r   r   r   r      s     r   r   c                   H  ^  \ rS rSrSrSU 4S jjr\S\4S j5       r\R                  S\SS4S j5       r\S\
4S	 j5       rS
\S\\-  \-  4S jr\S\S-  4S j5       r\R                  S\\-  SS4S j5       r SS\S-  4U 4S jjjrS\
4S jr\S\
4S j5       rSrU =r$ )Options#   zmoz:firefoxOptionsr
   Nc                    > [         TU ]  5         SU l        0 U l        SU R                  S'   S U l        [        5       U l        g )N    zremote.active-protocols)superr   _binary_location_preferences_profiler   r   )r   	__class__s    r   r   Options.__init__&   sA     ""$ 8934/35r   c                     U R                   $ )z#Returns the location of the binary.)r(   r   s    r   binary_locationOptions.binary_location0   s     $$$r   valuec                 d    [        U[        5      (       d  [        U R                  5      eXl        g)z2Sets the location of the browser binary by string.N)
isinstancestr	TypeErrorBINARY_LOCATION_ERRORr(   )r   r0   s     r   r.   r/   5   s(     %%%D6677 %r   c                     U R                   $ )zReturns a dict of preferences.r)   r   s    r   preferencesOptions.preferences<   s        r   namec                      X R                   U'   g)zSets a preference.Nr7   )r   r:   r0   s      r   set_preferenceOptions.set_preferenceA   s    "'$r   c                     U R                   $ )z#Returns the Firefox profile to use.)r*   r   s    r   profileOptions.profileE   s     }}r   new_profilec                 P    [        U[        5      (       d  [        U5      nXl        g)zQSet the location of the browser profile to use (string or FirefoxProfile object).N)r2   r   r*   )r   rA   s     r   r?   r@   J   s      +~66(5K#r   android_packagec                 &   > [         TU ]  XU5        g r   )r'   enable_mobile)r   rC   android_activitydevice_serialr+   s       r   rE   Options.enable_mobileQ   s     	oOr   c                    U R                   n0 nU R                  (       a  U R                  US'   U R                  (       a  U R                  US'   U R                  (       a  U R                  R                  US'   U R
                  (       a  U R
                  US'   U R                  (       a  UR                  U R                  5        UR                  U R                  R                  5       5        U(       a  X![        R                  '   U$ )z>Marshals the Firefox options to a `moz:firefoxOptions` object.binaryprefsr?   args)_capsr(   r)   r*   encoded
_argumentsmobile_optionsupdater   r   r"   KEY)r   capsoptss      r   r   Options.to_capabilitiesV   s     zz!  !22DN --DM=="mm33DO????DLKK++,DHH,,./ $r   c                 >    [         R                  R                  5       $ r   )r   FIREFOXcopyr   s    r   default_capabilitiesOptions.default_capabilitiesq   s    "**//11r   )r(   r)   r*   r   r   )zorg.mozilla.firefoxNN)r   r   r   r   rR   r   propertyr3   r.   setterr   r8   intboolr<   r   r?   rE   r   rY   r   __classcell__)r+   s   @r   r"   r"   #   s   
C % % % &S &T & & !T ! !(3 (sSy4/? ( $.   ^^$3#7 $D $ $ imP"TzP P
 6 2d 2 2r   r"   N)
typingr   .selenium.webdriver.common.desired_capabilitiesr   !selenium.webdriver.common.optionsr   *selenium.webdriver.firefox.firefox_profiler   r   r"   r    r   r   <module>rd      s+   $  N 8 E P2j P2r   