B
     h                 @   sD   d dl Z d dlmZ ddlmZ G dd deZG dd deZdS )	    N)	WebDriver   )Optionsc               @   s"   e Zd ZdZd	ddZdd ZdS )
OperaDriverz]Controls the new OperaDriver and allows you
    to drive the Opera browser based on Chromium.Nr   Tc	       	   
   C   sF   |rt jdtdd |}|dk	r$|nd}tj| |||||||d dS )a.  
        Creates a new instance of the operadriver.

        Starts the service and then creates new instance of operadriver.

        :Args:
         - executable_path - path to the executable. If the default is used
                             it assumes the executable is in the $PATH
         - port - port you would like the service to run, if left as 0,
                  a free port will be found.
         - options: this takes an instance of OperaOptions
         - service_args - List of args to pass to the driver service
         - desired_capabilities: Dictionary object with non-browser specific
         - service_log_path - Where to log information from the driver.
         - opera_options - Deprecated argument for options
           capabilities only, such as "proxy" or "loggingPref".
        z$use options instead of opera_options   )
stacklevelNZoperadriver)executable_pathportoptionsservice_argsdesired_capabilitiesservice_log_path
keep_alive)warningswarnDeprecationWarningChromiumDriver__init__)	selfr   r	   r
   r   r   r   Zopera_optionsr    r   _C:\Users\sanjo\AppData\Local\Qlobot\Launcher\ext_packages\selenium\webdriver\opera\webdriver.pyr      s    
zOperaDriver.__init__c             C   s   t  S )N)r   )r   r   r   r   create_options@   s    zOperaDriver.create_options)Nr   NNNNNT)__name__
__module____qualname____doc__r   r   r   r   r   r   r      s      
"r   c               @   s$   e Zd ZG dd dZdddZdS )r   c               @   s   e Zd ZdZdS )zWebDriver.ServiceTyper   N)r   r   r   ZCHROMIUMr   r   r   r   ServiceTypeE   s   r   Nr   c          	   C   s   t j| ||||||d d S )N)r   r	   r
   r   r   r   )r   r   )r   r   r   r	   r   r   r
   r   r   r   r   H   s
    zWebDriver.__init__)NNr   NNN)r   r   r   r   r   r   r   r   r   r   D   s        r   )r   Z#selenium.webdriver.chrome.webdriverr   r   r
   r   r   r   r   r   r   <module>   s   -