U
    Of                     @   sD   d dl mZ d dlmZ ddlmZ ddlmZ G dd deZdS )	    )ChromiumDriver)DesiredCapabilities   )Options)Servicec                       s.   e Zd ZdZdeeedd fddZ  ZS )	WebDriverz>Controls the ChromeDriver and allows you to drive the browser.NT)optionsservice
keep_alivereturnc                    s<   |r|nt  }|r|nt }t jtjd d|||d dS )a  Creates a new instance of the chrome driver. Starts the service and
        then creates new instance of chrome driver.

        :Args:
         - options - this takes an instance of ChromeOptions
         - service - Service object for handling the browser driver if you need to pass extra details
         - keep_alive - Whether to configure ChromeRemoteConnection to use HTTP keep-alive.
        ZbrowserNameZgoog)Zbrowser_nameZvendor_prefixr   r	   r
   N)r   r   super__init__r   ZCHROME)selfr   r	   r
   	__class__ G/tmp/pip-unpacked-wheel-ds5t_0qj/selenium/webdriver/chrome/webdriver.pyr      s    zWebDriver.__init__)NNT)	__name__
__module____qualname____doc__r   r   boolr   __classcell__r   r   r   r   r      s      r   N)	Z%selenium.webdriver.chromium.webdriverr   Z.selenium.webdriver.common.desired_capabilitiesr   r   r   r	   r   r   r   r   r   r   <module>   s   