Downloads chromedriver from source. :return: path to downloaded file
(self)
| 140 | return urlopen(self.url_repo + path).read().decode() |
| 141 | |
| 142 | def fetch_package(self): |
| 143 | """Downloads chromedriver from source. |
| 144 | :return: path to downloaded file """ |
| 145 | from urllib.request import urlretrieve |
| 146 | |
| 147 | u = "%s/%s/%s" % ( |
| 148 | self.url_repo, self.version_full, self.zip_name |
| 149 | ) |
| 150 | logger.debug("Downloading from %s" % u) |
| 151 | return urlretrieve(u)[0] |
| 152 | |
| 153 | def unzip_package(self, fp): |
| 154 | """ :return: path to unpacked executable """ |