Skip to content

Commit

Permalink
improvements for drivers without internet
Browse files Browse the repository at this point in the history
  • Loading branch information
s.pirohov committed Jul 11, 2022
1 parent 59407cb commit 57b1a3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webdriver_manager/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ def get_browser_version_from_os(browser_type=None):


def format_version(browser_type, version):
if not version or version == 'latest':
return 'latest'

pattern = PATTERN[browser_type]
result = re.search(pattern, version)
return result.group(0) if result else version
Expand Down

0 comments on commit 57b1a3b

Please sign in to comment.