
    ,h                     >    d dl mZ d dlmZ d dlmZ  G d de      Zy)    )Dict)DesiredCapabilities)
ArgOptionsc                        e Zd ZdZd
 fdZedefd       Zej                  deddfd       Zd Z	ede
eef   fd	       Z xZS )Optionszwpe:browserOptionsreturnNc                 0    t         |           d| _        y )N )super__init___binary_location)self	__class__s    f/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/selenium/webdriver/wpewebkit/options.pyr   zOptions.__init__   s     "    c                     | j                   S )zMReturns the location of the browser binary otherwise an empty
        string.)r   r   s    r   binary_locationzOptions.binary_location   s     $$$r   valuec                 \    t        |t              st        | j                        || _        y)zvAllows you to set the browser binary to launch.

        :Args:
         - value : path to the browser binary
        N)
isinstancestr	TypeErrorBINARY_LOCATION_ERRORr   )r   r   s     r   r   zOptions.binary_location%   s'     %%D6677 %r   c                     | j                   }i }| j                  r| j                  |d<   | j                  r| j                  |d<   ||t        j                  <   |S )zpCreates a capabilities with all the options that have been set and
        returns a dictionary with everything.binaryargs)_capsr   	argumentsr   KEY)r   capsbrowser_optionss      r   to_capabilitieszOptions.to_capabilities0   sS     zz(,(<(<OH%>>&*nnOF#+W[[r   c                 >    t         j                  j                         S )N)r   	WPEWEBKITcopyr   s    r   default_capabilitieszOptions.default_capabilities?   s    ",,1133r   )r   N)__name__
__module____qualname__r    r   propertyr   r   setterr#   r   r'   __classcell__)r   s   @r   r   r      sx    
C# % % %
 &S &T & & 4d38n 4 4r   r   N)typingr   .selenium.webdriver.common.desired_capabilitiesr   !selenium.webdriver.common.optionsr   r    r   r   <module>r2      s   $  N 8)4j )4r   