From 0846341da989f962cff1c545bcad2c1627579fc0 Mon Sep 17 00:00:00 2001 From: Artem <106631540+rzc0d3r@users.noreply.github.com> Date: Sun, 11 Aug 2024 10:42:41 +0300 Subject: [PATCH] Fixed NameError: name 'for_firefox' is not defined (on MacOS) --- modules/WebDriverInstaller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/WebDriverInstaller.py b/modules/WebDriverInstaller.py index 87edec4f0..8a018d739 100644 --- a/modules/WebDriverInstaller.py +++ b/modules/WebDriverInstaller.py @@ -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']