from playwright.sync_api import sync_playwright
with sync_playwright() as p:
    browser = p.firefox.launch(headless=False, executable_path='/usr/bin/firefox')
    page = browser.new_page()
    page.goto('https://example.com', wait_until='domcontentloaded', timeout=120000)
    print('TITLE:', page.title())
    browser.close()
