fix function: get_cookie_data (macos M-chip version)

This commit is contained in:
Jason Lee
2024-06-23 08:24:51 -05:00
committed by GitHub
parent 1ec95f7d61
commit 0058add84d

View File

@@ -164,7 +164,7 @@ def get_cookie_data(env, config: Dict[str, str]):
elif os_type == 'Linux':
if "arm" in platform.machine():
chrome_cookie_file_path = env.controller.execute_python_command(
"import os; print(os.path.join(os.getenv('HOME'), 'snap/chromium/common/chromium/Default/Preferences'))")[
"import os; print(os.path.join(os.getenv('HOME'), 'snap/chromium/common/chromium/Default/Cookies'))")[
'output'].strip()
else:
chrome_cookie_file_path = env.controller.execute_python_command(