def test_ie_driver_binary(version, use_cache): delete_old_install() ie_driver = IEDriver(version, "win32") if use_cache: cache.download_driver(ie_driver) ie_driver_bin = cache.download_driver(ie_driver) assert ie_driver_bin.name == u'IEDriverServer' assert os.path.exists(ie_driver_bin.path)
def __init__(self, version="latest", os_type=utils.os_type(), name="IEDriverServer", url="http://selenium-release.storage.googleapis.com", latest_release_url=None): super(IEDriverManager, self).__init__() self.driver = IEDriver(version=version, os_type=os_type, name=name, url=url, latest_release_url=latest_release_url)
def __init__(self, version="latest", os_type=utils.os_type(), path=None, name="IEDriverServer", url="http://selenium-release.storage.googleapis.com", latest_release_url=None, log_level=None, print_first_line=True, cache_valid_range=1): super().__init__(path, log_level, print_first_line, cache_valid_range) self.driver = IEDriver(version=version, os_type=os_type, name=name, url=url, latest_release_url=latest_release_url)
def __init__( self, version="latest", os_type=utils.os_type(), path=None, name="IEDriverServer", url="https://github.com/seleniumhq/selenium/releases/download", latest_release_url="https://api.github.com/repos/seleniumhq/selenium/releases", ie_release_tag="https://api.github.com/repos/seleniumhq/selenium/releases/tags/selenium-{0}", log_level=None, print_first_line=True, cache_valid_range=1, ): super().__init__(path, log_level, print_first_line, cache_valid_range) self.driver = IEDriver( version=version, os_type=os_type, name=name, url=url, latest_release_url=latest_release_url, ie_release_tag=ie_release_tag, )
def test_can_get_latest_ie_driver_version(): latest_version = IEDriver("latest", "win32").get_latest_release_version() assert latest_version
def __init__(self, version=None, os_type=utils.os_type()): super(IEDriverManager, self).__init__() self.driver = IEDriver(version=version, os_type=os_type)