We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28bea50 commit f501013Copy full SHA for f501013
ddcz/tests/test_ui/cases.py
@@ -248,7 +248,13 @@ def download_and_extract_chromedriver(url, download_path):
248
.lower()
249
== "y"
250
):
251
- os.rename(extracted_chromedriver_path, chromedriver_path)
+ try:
252
+ os.rename(extracted_chromedriver_path, chromedriver_path)
253
+ except PermissionError:
254
+ print(
255
+ "Insufficient permissions to move chromedriver from {extracted_chromedriver_path} {chromedriver_path}; provide password to move with sudo."
256
+ )
257
+ os.system(f"sudo mv {extracted_chromedriver_path} {chromedriver_path}")
258
os.chmod(chromedriver_path, 755)
259
else:
260
print(
0 commit comments