()
| 16 | |
| 17 | |
| 18 | def cft_binary_location(): |
| 19 | if sys.platform == 'linux': |
| 20 | return 'third_party/chrome/chrome-linux/chrome-linux64/chrome' |
| 21 | elif sys.platform == 'darwin': |
| 22 | arch = 'arm64' if platform.processor().startswith('arm') else 'x64' |
| 23 | return f'third_party/chrome/chrome-mac-{arch}/chrome-mac-{arch}/Google Chrome for Testing.app/Contents' |
| 24 | elif sys.platform == 'win32': |
| 25 | return 'third_party/chrome/chrome-win/chrome-win64/chrome.exe' |
| 26 | |
| 27 | |
| 28 | def handleAccessDeniedOnWindows(func, path, exc): |