Spaces:
Sleeping
Sleeping
Jimin Park
commited on
Commit
·
6f37666
1
Parent(s):
ab089c7
debugging
Browse files- util/app.py +13 -0
util/app.py
CHANGED
@@ -15,6 +15,19 @@ from selenium.webdriver.common.by import By
|
|
15 |
from selenium.webdriver.support.ui import WebDriverWait
|
16 |
from selenium.webdriver.support import expected_conditions as EC
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
# Define champion list for dropdowns
|
19 |
CHAMPIONS = [
|
20 |
"Aatrox", "Ahri", "Akali", "Akshan", "Alistar", "Amumu", "Anivia", "Annie", "Aphelios", "Ashe",
|
|
|
15 |
from selenium.webdriver.support.ui import WebDriverWait
|
16 |
from selenium.webdriver.support import expected_conditions as EC
|
17 |
|
18 |
+
import os
|
19 |
+
import shutil
|
20 |
+
|
21 |
+
# Path to the WebDriver Manager cache
|
22 |
+
webdriver_cache_path = os.path.expanduser("~/.wdm")
|
23 |
+
|
24 |
+
# Remove the cache directory if it exists
|
25 |
+
if os.path.exists(webdriver_cache_path):
|
26 |
+
shutil.rmtree(webdriver_cache_path)
|
27 |
+
print("WebDriver cache removed.")
|
28 |
+
|
29 |
+
|
30 |
+
|
31 |
# Define champion list for dropdowns
|
32 |
CHAMPIONS = [
|
33 |
"Aatrox", "Ahri", "Akali", "Akshan", "Alistar", "Amumu", "Anivia", "Annie", "Aphelios", "Ashe",
|