UserSyncInterface / verify_debug.py
AUXteam's picture
Upload folder using huggingface_hub
9b48778 verified
raw
history blame contribute delete
998 Bytes
from playwright.sync_api import sync_playwright
import os
def run():
with sync_playwright() as p:
browser = p.chromium.launch(headless=True)
page = browser.new_page()
# Log console messages
page.on("console", lambda msg: print(f"CONSOLE: {msg.text}"))
page.on("pageerror", lambda err: print(f"PAGE ERROR: {err}"))
url = "https://auxteam-usersyncinterface.hf.space"
print(f"Navigating to {url}...")
try:
page.goto(url, timeout=90000)
page.wait_for_selector('text=Branding Content Testing', timeout=60000)
print("Clicking Open Global Chat...")
page.click('text=Open Global Chat')
page.wait_for_timeout(5000)
page.screenshot(path="/home/jules/verification/hf_chat_debug.png")
except Exception as e:
print(f"Error: {e}")
browser.close()
if __name__ == "__main__":
run()