AR
from playwright import sync_playwright
def test_aaa():
with sync_playwright() as p:
browser = p.chromium.connect(wsEndpoint='ws://localhost:4444/playwright/chromium')
context = browser.newContext()
page = context.newPage()
page.goto('http://ya.ru')
Ошибка "AttributeError: 'BrowserType' object has no attribute 'connect'"