File size: 998 Bytes
9b48778
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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()