diff --git a/docs/en_US/release_notes_4_20.rst b/docs/en_US/release_notes_4_20.rst index eb5d4917f..0d4dcd4bf 100644 --- a/docs/en_US/release_notes_4_20.rst +++ b/docs/en_US/release_notes_4_20.rst @@ -18,4 +18,5 @@ Bug fixes ********* | `Issue #4237 `_ - Fix an issue where the user can not change the value of DateTime picker control using keyboard. +| `Issue #4942 `_ - Fixed chrome driver download utility issue for Ubuntu. | `Issue #5143 `_ - Fix an accessibility issue to maximize the panel for all alertify dialog. \ No newline at end of file diff --git a/tools/get_chromedriver.py b/tools/get_chromedriver.py index 48c6cc131..01bfff306 100644 --- a/tools/get_chromedriver.py +++ b/tools/get_chromedriver.py @@ -102,6 +102,11 @@ def get_chrome_version(args): print('The specified Chrome executable output an unexpected ' 'version string: {}.'.format(version_str)) sys.exit(1) + # On some linux distro `chrome--version` gives output like + # 'Google Chrome 80.0.3987.132 unknown\n' + # so we need to check and remove the unknown string from the version + if version_str.endswith("unknown\n"): + version_str = version_str.strip("unknown\n").strip() chrome_version = '.'.join(version_str.split()[-1].split('.')[:-1])