Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,10 +7,17 @@ from selenium.webdriver.support import expected_conditions as EC
|
|
| 7 |
from selenium.webdriver.chrome.options import Options
|
| 8 |
import time
|
| 9 |
import subprocess
|
|
|
|
| 10 |
|
| 11 |
# Function to log Chrome and ChromeDriver versions
|
| 12 |
def log_versions():
|
| 13 |
try:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
chrome_version = subprocess.check_output(["google-chrome", "--version"]).decode().strip()
|
| 15 |
chromedriver_version = subprocess.check_output(["chromedriver", "--version"]).decode().strip()
|
| 16 |
print(f"Chrome version: {chrome_version}")
|
|
|
|
| 7 |
from selenium.webdriver.chrome.options import Options
|
| 8 |
import time
|
| 9 |
import subprocess
|
| 10 |
+
import os
|
| 11 |
|
| 12 |
# Function to log Chrome and ChromeDriver versions
|
| 13 |
def log_versions():
|
| 14 |
try:
|
| 15 |
+
# Print PATH for debugging
|
| 16 |
+
print(f"System PATH: {os.environ.get('PATH')}")
|
| 17 |
+
# Try finding Chrome binary
|
| 18 |
+
chrome_path = subprocess.check_output(["which", "google-chrome"]).decode().strip()
|
| 19 |
+
print(f"Chrome binary found at: {chrome_path}")
|
| 20 |
+
# Get versions
|
| 21 |
chrome_version = subprocess.check_output(["google-chrome", "--version"]).decode().strip()
|
| 22 |
chromedriver_version = subprocess.check_output(["chromedriver", "--version"]).decode().strip()
|
| 23 |
print(f"Chrome version: {chrome_version}")
|