Skip to content

Commit 9851700

Browse files
author
mdshakib007
committed
Environment variable added fro arch differentiate in webdriver_manager
1 parent 223d322 commit 9851700

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Framework/Built_In_Automation/Web/Selenium/BuiltInFunctions.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,14 @@ def Open_Electron_App(data_set):
466466
opts.binary_location = desktop_app_path
467467
opts.add_argument("--remote-debugging-port=9222")
468468
# service = Service(executable_path=electron_chrome_path)
469+
arch = platform.machine().lower()
470+
if platform.system() == "Darwin" and arch == "arm64":
471+
os.environ['WDM_ARCHITECTURE'] = 'arm64'
472+
elif platform.system() == "Windows" and arch not in ("amd64", "x86_64"):
473+
os.environ['WDM_ARCHITECTURE'] = 'x32'
474+
else:
475+
os.environ['WDM_ARCHITECTURE'] = 'x64'
476+
469477
driver_bin_path = ChromeDriverManager(driver_version=chrome_version).install()
470478

471479
service = Service(driver_bin_path)

0 commit comments

Comments
 (0)