Skip to content

Commit

Permalink
Fixed NameError: name 'for_firefox' is not defined (on MacOS)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzc0d3r authored Aug 11, 2024
1 parent 2bca6f0 commit 0846341
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/WebDriverInstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ def __init__(self, browser_name: str, custom_browser_location=None):
self.platform[1].append('linux32')
elif sys.platform == "darwin":
self.platform[0] = 'mac'
if for_firefox:
if self.browser_name == MOZILLA_FIREFOX:
self.platform[1] = ['macos']
elif platform.processor() == "arm":
self.platform[1] = ['mac-arm64', 'mac_arm64', 'mac64_m1']
if for_firefox:
if self.browser_name == MOZILLA_FIREFOX:
self.platform[1] = ['macos-aarch64']
elif platform.processor() == "i386":
self.platform[1] = ['mac64', 'mac-x64']
Expand Down

0 comments on commit 0846341

Please sign in to comment.