Skip to content

Commit

Permalink
Version detection/download on EdgeChromium fixed.
Browse files Browse the repository at this point in the history
Fixes #41
Fixes #39
  • Loading branch information
rasjani committed Jan 24, 2021
1 parent 911b6a2 commit 72c9955
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webdrivermanager/webdrivermanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,8 @@ def _populate_cache(self, url):

soup = BeautifulSoup(resp.text, 'lxml')

drivers = filter(lambda entry: 'edgedriver_' in entry.contents[0], soup.find_all('url'))
arch_matcher = "{}{}".format(self.os_name, self.bitness)
drivers = filter(lambda entry: 'edgedriver_{}'.format(arch_matcher) in entry.contents[0], soup.find_all('url'))
self._drivers = list(map(lambda entry: entry.contents[0], drivers))
self._versions = set(map(lambda entry: versiontuple(self._extract_ver(entry)), self._drivers))

Expand Down

0 comments on commit 72c9955

Please sign in to comment.