ó
    ¼®i%4  ã                   óð   • S SK r S SKJrJr  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 " S S5      r " S S5      r " S S5      r " S S5      r " S S\S9r " S S\5      rg)é    N)ÚABCMetaÚabstractmethod)ÚEnum)ÚOptional)ÚInvalidArgumentException)ÚProxyc                   ó$   • \ rS rSrSrSrSrSrSrg)ÚPageLoadStrategyé   an  Enum of possible page load strategies.

Selenium support following strategies:
    * normal (default) - waits for all resources to download
    * eager - DOM access is ready, but other resources like images may still be loading
    * none - does not block `WebDriver` at all

Docs: https://www.selenium.dev/documentation/webdriver/drivers/options/#pageloadstrategy.
ÚnormalÚeagerÚnone© N)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   Ú__static_attributes__r   ó    ÚNC:\des-py\RoboSAPF\venv\Lib\site-packages\selenium\webdriver\common\options.pyr
   r
      s   † ñð €FØ€EØƒDr   r
   c                   ó&   • \ rS rSrS rS rS rSrg)Ú_BaseOptionsDescriptoré+   c                 ó   • Xl         g ©N©Úname©Úselfr   s     r   Ú__init__Ú_BaseOptionsDescriptor.__init__,   ó   € Ø�	r   c                 óà  • U R                   S:X  a6  UR                  R                  S5      nUSL =(       d    [        U[        5      $ U R                   S:X  a>  UR                  R                  U R                   5      n[        U[        5      (       d  S $ U$ U R                   S;   a&  UR                  R                  U R                   S5      $ UR                  R                  U R                   5      $ )NÚ
enableBidiÚwebSocketUrlT)ÚacceptInsecureCertsÚstrictFileInteractabilityÚsetWindowRectúse:downloadsEnabledF)r   Ú_capsÚgetÚ
isinstanceÚstr)r    ÚobjÚclsÚvalues       r   Ú__get__Ú_BaseOptionsDescriptor.__get__/   s¬   € Ø�9‰9˜Ó$à—I‘I—M‘M .Ó1ˆEØ˜D�=×:¤J¨u´cÓ$:Ð:Ø�9‰9˜Ó&à—I‘I—M‘M $§)¡)Ó,ˆEÜ)¨%´×5Ñ5�4Ð@¸5Ð@Ø�9‰9ÐtÓtØ—9‘9—=‘= §¡¨EÓ2Ð2Ø�y‰y�}‰}˜TŸY™YÓ'Ð'r   c                 ó‚   • U R                   S:X  a  UR                  SU5        g UR                  U R                   U5        g )Nr%   r&   )r   Úset_capability©r    r/   r1   s      r   Ú__set__Ú_BaseOptionsDescriptor.__set__<   s2   € Ø�9‰9˜Ó$Ø×Ñ˜~¨uÕ5à×Ñ˜tŸy™y¨%Õ0r   r   N)r   r   r   r   r!   r2   r7   r   r   r   r   r   r   +   s   † òò(õ1r   r   c                   ó*   • \ rS rSrSrS rS rS rSrg)Ú_PageLoadStrategyDescriptoréC   zÒDetermines the point at which a navigation command is returned:
https://w3c.github.io/webdriver/#dfn-table-of-page-load-strategies.

Args:
    strategy: the strategy corresponding to a document readiness state
c                 ó   • Xl         g r   r   r   s     r   r!   Ú$_PageLoadStrategyDescriptor.__init__K   r#   r   c                 óL   • UR                   R                  U R                  5      $ r   ©r+   r,   r   ©r    r/   r0   s      r   r2   Ú#_PageLoadStrategyDescriptor.__get__N   ó   € Ø�y‰y�}‰}˜TŸY™YÓ'Ð'r   c                 ó^   • US;   a  UR                  U R                  U5        g [        S5      e)N)r   r   r   z>Strategy can only be one of the following: normal, eager, none©r5   r   Ú
ValueErrorr6   s      r   r7   Ú#_PageLoadStrategyDescriptor.__set__Q   s+   € ØÐ/Ó/Ø×Ñ˜tŸy™y¨%Õ0äÐ]Ó^Ð^r   r   N©	r   r   r   r   r   r!   r2   r7   r   r   r   r   r:   r:   C   s   † ñòò(õ_r   r:   c                   ó*   • \ rS rSrSrS rS rS rSrg)Ú"_UnHandledPromptBehaviorDescriptoréX   aV  How the driver should respond when an alert is present and the:
command sent is not handling the alert:
https://w3c.github.io/webdriver/#dfn-table-of-page-load-strategies:

Args:
    behavior: behavior to use when an alert is encountered

Returns:
    Values for implicit timeout, pageLoad timeout and script timeout if set (in milliseconds)
c                 ó   • Xl         g r   r   r   s     r   r!   Ú+_UnHandledPromptBehaviorDescriptor.__init__d   r#   r   c                 óL   • UR                   R                  U R                  5      $ r   r?   r@   s      r   r2   Ú*_UnHandledPromptBehaviorDescriptor.__get__g   rB   r   c                 ó^   • US;   a  UR                  U R                  U5        g [        S5      e)N)ÚdismissÚacceptzdismiss and notifyzaccept and notifyÚignoreziBehavior can only be one of the following: dismiss, accept, dismiss and notify, accept and notify, ignorerD   r6   s      r   r7   Ú*_UnHandledPromptBehaviorDescriptor.__set__j   s1   € ØÐ^Ó^Ø×Ñ˜tŸy™y¨%Õ0äð,óð r   r   NrG   r   r   r   rI   rI   X   s   † ñ	òò(õr   rI   c                   ó*   • \ rS rSrSrS rS rS rSrg)Ú_TimeoutsDescriptorét   aB  How long the driver should wait for actions to complete before:
returning an error https://w3c.github.io/webdriver/#timeouts:

Args:
    timeouts: values in milliseconds for implicit wait, page load and script timeout

Returns:
    Values for implicit timeout, pageLoad timeout and script timeout if set (in milliseconds)
c                 ó   • Xl         g r   r   r   s     r   r!   Ú_TimeoutsDescriptor.__init__   r#   r   c                 óL   • UR                   R                  U R                  5      $ r   r?   r@   s      r   r2   Ú_TimeoutsDescriptor.__get__‚   rB   r   c                 óœ   • [        S UR                  5        5       5      (       a  UR                  U R                  U5        g [	        S5      e)Nc              3   ó*   #   • U  H	  oS ;   v •  M     g7f))ÚimplicitÚpageLoadÚscriptNr   )Ú.0Úxs     r   Ú	<genexpr>Ú._TimeoutsDescriptor.__set__.<locals>.<genexpr>†   s   é € ÐMÂ¸1Ð6Ö6Âùs   ‚zITimeout keys can only be one of the following: implicit, pageLoad, script)ÚallÚkeysr5   r   rE   r6   s      r   r7   Ú_TimeoutsDescriptor.__set__…   s9   € ÜÑMÀÇ
Á
ÄÓM×MÑMØ×Ñ˜tŸy™y¨%Õ0äÐhÓiÐir   r   NrG   r   r   r   rU   rU   t   s   † ñòò(õjr   rU   c                   ó*   • \ rS rSrSrS rS rS rSrg)Ú_ProxyDescriptoréŒ   z,
Returns:
    Proxy if set, otherwise None.
c                 ó   • Xl         g r   r   r   s     r   r!   Ú_ProxyDescriptor.__init__’   r#   r   c                 ó   • UR                   $ r   )Ú_proxyr@   s      r   r2   Ú_ProxyDescriptor.__get__•   s   € Ø�z‰zÐr   c                 óž   • [        U[        5      (       d  [        S5      eX!l        UR	                  5       UR
                  U R                  '   g )Nz$Only Proxy objects can be passed in.)r-   r   r   rm   Úto_capabilitiesr+   r   r6   s      r   r7   Ú_ProxyDescriptor.__set__˜   s;   € Ü˜%¤×'Ñ'Ü*Ð+QÓRÐRØŒ
Ø$×4Ñ4Ó6ˆ�	‰	�$—)‘)Òr   r   NrG   r   r   r   rh   rh   Œ   s   † ñò
òõ7r   rh   c            	       óŒ  ^ • \ rS rSrSr\" S5      r \" S5      r \" S5      r \" S5      r	 \" S5      r
 \" S5      r \" S	5      r \" S
5      r \" S5      r \" S5      r \" S5      r \" S5      r SU 4S jjr\S 5       rSS jr   SS\\   S\\   S\\   SS4S jjr\S 5       r\\S 5       5       rSS jr Sr!U =r"$ )ÚBaseOptionséŸ   z*Base class for individual browser options.ÚbrowserVersionÚplatformNamer'   r(   r)   r%   ÚpageLoadStrategyÚunhandledPromptBehaviorÚtimeoutsÚproxyr*   r&   ÚreturnNc                 ó®   >• [         TU ]  5         U R                  U l        S U l        U R                  S[        R                  5        S U l        SU l	        g )Nrw   F)
Úsuperr!   Údefault_capabilitiesr+   rm   r5   r
   r   Úmobile_optionsÚ_ignore_local_proxy©r    Ú	__class__s    €r   r!   ÚBaseOptions.__init__¬  sJ   ø€ Ü‰ÑÔØ×.Ñ.ˆŒ
ØˆŒØ×ÑÐ.Ô0@×0GÑ0GÔHØ8<ˆÔØ#(ˆÕ r   c                 ó   • U R                   $ r   ©r+   ©r    s    r   ÚcapabilitiesÚBaseOptions.capabilities´  s   € à�z‰zÐr   c                 ó    • X R                   U'   g)zSets a capability.Nr…   )r    r   r1   s      r   r5   ÚBaseOptions.set_capability¸  s   € à �
‰
�4Òr   Úandroid_packageÚandroid_activityÚdevice_serialc                 ó�   • U(       d  [        S5      eSU0U l        U(       a  X R                  S'   U(       a  X0R                  S'   gg)záEnables mobile browser use for browsers that support it.

Args:
    android_package: The name of the android package to start
    android_activity: The name of the android activity
    device_serial: The device serial number
z!android_package must be passed inÚandroidPackageÚandroidActivityÚandroidDeviceSerialN)ÚAttributeErrorr   )r    r‹   rŒ   r�   s       r   Úenable_mobileÚBaseOptions.enable_mobile¼  sI   € ö Ü Ð!DÓEÐEØ/°ÐAˆÔÞØ5E×ÑÐ 1Ñ2ÞØ9F×ÑÐ 5Ò6ð r   c                 ó   • g)z-Convert options into capabilities dictionary.Nr   r†   s    r   rp   ÚBaseOptions.to_capabilitiesÑ  ó   � r   c                 ó   • g)z6Return minimal capabilities necessary as a dictionary.Nr   r†   s    r   r~   Ú BaseOptions.default_capabilitiesÕ  r—   r   c                 ó   • SU l         g)úYBy calling this you will ignore HTTP_PROXY and HTTPS_PROXY from
being picked up and used.TN)r€   r†   s    r   Ú(ignore_local_proxy_environment_variablesÚ4BaseOptions.ignore_local_proxy_environment_variablesÚ  s   € ð $(ˆÕ r   )r+   r€   rm   r   ©r{   N)NNN)#r   r   r   r   r   r   Úbrowser_versionÚplatform_nameÚaccept_insecure_certsÚstrict_file_interactabilityÚset_window_rectÚenable_bidir:   Úpage_load_strategyrI   Úunhandled_prompt_behaviorrU   ry   rh   rz   Úenable_downloadsÚweb_socket_urlr!   Úpropertyr‡   r5   r   r.   r“   r   rp   r~   rœ   r   Ú__classcell__©r‚   s   @r   rs   rs   Ÿ   s}  ø† Ù4á,Ð-=Ó>€Oðñ* +¨>Ó:€Mðñ* 3Ð3HÓIÐðñ* #9Ð9TÓ"UÐðñ* -¨_Ó=€Oðñ* )¨Ó6€Kðñ* 5Ð5GÓHÐðñ* !CÐC\Ó ]Ððñ, # :Ó.€Hðñ, ˜WÓ%€Eðñ* .Ð.CÓDÐðñ* ,¨NÓ;€Nð÷*)ð ñó ðô!ð *.Ø*.Ø'+ñ	Gà! #™ðGð # 3™-ðGð   ‘}ð	Gð
 
õGð* ñ<ó ð<ð ØñEó ó ðE÷(ò (r   rs   )Ú	metaclassc                   ó|   ^ • \ rS rSrSrSrSU 4S jjr\S 5       rS\	SS4S	 jr
SU 4S
 jjrS r\S 5       rSrU =r$ )Ú
ArgOptionsià  z Binary Location Must be a Stringzfedcm:accountsr{   Nc                 ó0   >• [         TU ]  5         / U l        g r   )r}   r!   Ú
_argumentsr�   s    €r   r!   ÚArgOptions.__init__å  s   ø€ Ü‰ÑÔØ%'ˆ�r   c                 ó   • U R                   $ )z:
Returns:
    A list of arguments needed for the browser.
©r°   r†   s    r   Ú	argumentsÚArgOptions.argumentsé  s   € ð �‰Ðr   Úargumentc                 ó^   • U(       a  U R                   R                  U5        g[        S5      e)zFAdds an argument to the list.

Args:
    argument: Sets the arguments
zargument can not be nullN)r°   ÚappendrE   )r    r¶   s     r   Úadd_argumentÚArgOptions.add_argumentñ  s%   € ö Ø�O‰O×"Ñ" 8Õ,äÐ7Ó8Ð8r   c                 óV   >• [         R                  " S[        SS9  [        TU ]  5         g)r›   a  using ignore_local_proxy_environment_variables in Options has been deprecated, instead, create a Proxy instance with ProxyType.DIRECT to ignore proxy settings, pass the proxy instance into a ClientConfig constructor, pass the client config instance into the Webdriver constructoré   )Ú
stacklevelN)ÚwarningsÚwarnÚDeprecationWarningr}   rœ   r�   s    €r   rœ   Ú3ArgOptions.ignore_local_proxy_environment_variablesü  s,   ø€ ô 	�ŠðMô Øò	
ô 	‰Ñ8Õ:r   c                 ó   • U R                   $ r   r…   r†   s    r   rp   ÚArgOptions.to_capabilities
  s   € Ø�z‰zÐr   c                 ó   • 0 $ r   r   r†   s    r   r~   ÚArgOptions.default_capabilities  s   € àˆ	r   r³   rž   )r   r   r   r   ÚBINARY_LOCATION_ERRORÚFEDCM_CAPABILITYr!   r©   r´   r.   r¹   rœ   rp   r~   r   rª   r«   s   @r   r®   r®   à  sY   ø† Ø>Ðà'Ð÷(ð ñó ðð	9 Sð 	9¨Tô 	9÷;òð ñó ör   r®   )r¾   Úabcr   r   Úenumr   Útypingr   Úselenium.common.exceptionsr   Úselenium.webdriver.common.proxyr   r.   r
   r   r:   rI   rU   rh   rs   r®   r   r   r   Ú<module>rÍ      sx   ðó$ ß 'Ý Ý å ?Ý 1ô�s˜Dô ÷ 1ñ 1÷0_ñ _÷*ñ ÷8jñ j÷07ñ 7ô&~(˜Gò ~(ôB
/�õ /r   