Skip to content

Commit

Permalink
WebDriverInstaller: Extended MacOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
rzc0d3r authored Oct 3, 2024
1 parent 79e118b commit 5930c0f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/WebDriverInstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,11 @@ def get_firefox_version(self):
browser_version = self.get_browser_version_from_cmd(self.custom_browser_location, MOZILLA_FIREFOX_RE)
browser_path = self.custom_browser_location
else:
browser_version = self.get_browser_version_from_cmd('/Applications/Firefox.app/Contents/MacOS/firefox', MOZILLA_FIREFOX_RE)
browser_path = '/Applications/Firefox.app/Contents/MacOS/firefox'
for path in ['/Applications/Firefox.app/Contents/MacOS/firefox', '/application/firefox.app']:
if browser_version is not None:
browser_version = self.get_browser_version_from_cmd(path, MOZILLA_FIREFOX_RE)
browser_path = path
break
elif self.platform[0] == 'win':
paths = [
f'{os.environ.get("SYSTEMDRIVE")}\\Program Files\\Mozilla Firefox',
Expand Down

0 comments on commit 5930c0f

Please sign in to comment.