
    ih                     2    S SK Jr  S SKJr   " S S\5      rg)    )ChromiumOptions)DesiredCapabilitiesc                      ^  \ 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U 4S	 jjr\S\
4S
 j5       rSrU =r$ )Options   zms:edgeOptionsreturnNc                 0   > [         TU ]  5         SU l        g)z-Initialize EdgeOptions with default settings.FN)super__init___use_webview)self	__class__s    LC:\des-py\RoboSAPF\venv\Lib\site-packages\selenium\webdriver\edge\options.pyr   Options.__init__   s    !    c                     U R                   $ )z<
Returns:
    Whether WebView2 is enabled for Edge browser.
r   r   s    r   use_webviewOptions.use_webview   s        r   valuec                 $    [        U5      U l        g)z|Enables or disables WebView2 support for Edge browser.

Args:
    value: True to enable WebView2 support, False to disable.
N)boolr   )r   r   s     r   r   r   &   s     !Kr   c                 P   > [         TU ]  5       nU R                  (       a  SUS'   U$ )zCreates a capabilities with all the options that have been set.

Returns:
    A dictionary with all set options for Edge browser.
webview2browserName)r
   to_capabilitiesr   )r   capsr   s     r   r   Options.to_capabilities/   s*     w&(",Dr   c                 >    [         R                  R                  5       $ )z9
Returns:
    The default capabilities for Edge browser.
)r   EDGEcopyr   s    r   default_capabilitiesOptions.default_capabilities;   s     #'',,..r   r   )r   N)__name__
__module____qualname____firstlineno__KEYr   propertyr   r   setterdictr   r#   __static_attributes____classcell__)r   s   @r   r   r      sw    
C"
 !T ! ! ( ($ ( (
 
 /d / /r   r   N)#selenium.webdriver.chromium.optionsr   .selenium.webdriver.common.desired_capabilitiesr   r    r   r   <module>r2      s   $ @ N+/o +/r   