mina-api / tools /test_uc.py
Mina
Fresh deploy without large files
25ae7fe
raw
history blame contribute delete
476 Bytes
import undetected_chromedriver as uc
import time
def test():
print("Starting UC test...")
try:
options = uc.ChromeOptions()
options.add_argument('--headless')
driver = uc.Chrome(options=options)
print("Driver started successfully!")
driver.get("https://www.google.com")
print(f"Title: {driver.title}")
driver.quit()
except Exception as e:
print(f"Error: {e}")
if __name__ == "__main__":
test()