def __init__(self, version="latest", name="chromedriver", url="http://chromedriver.storage.googleapis.com", os_type=OSUtils.os_type()): DriverManager.__init__(self) self.driver = ChromeDriver(driver_url=url, name=name, version=version, os_type=os_type)
def __init__( self, version="latest", name="geckodriver", url="https://github.com/mozilla/geckodriver/releases/download", os_type=OSUtils.os_name()): DriverManager.__init__(self) self.driver = FireFoxDriver(driver_url=url, name=name, version=version, os_type=os_type)
def get_webdriver(self, webdriver_class, webdriver_manager: DriverManager, desired_capabilities: DesiredCapabilities = None, firefox_profile: FirefoxProfile = None, chrome_options: Options = None) -> Remote: call_options = {"executable_path": webdriver_manager.install()} if webdriver_manager else dict() if desired_capabilities: call_options["desired_capabilities"] = desired_capabilities if firefox_profile: call_options["firefox_profile"] = firefox_profile if chrome_options: call_options["options"] = chrome_options return webdriver_class(**call_options)
def __init__(self, version=None, os_type=utils.os_name()): DriverManager.__init__(self) self.driver = GeckoDriver(version=version, os_type=os_type)
def __init__(self, version=None, os_type=utils.os_name()): DriverManager.__init__(self) self.driver = PhantomJsDriver(version, os_type)
def __init__(self, version=None, os_type=utils.os_type()): DriverManager.__init__(self) # there is no driver with 64 bit if os_type == "win64": os_type = "win32" self.driver = ChromeDriver(version=version, os_type=os_type)