You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Can't use it with Botright, can not init AsyncInput when browser is Botright
Code Sample
async def runnnn():
from cdp_patches.input import AsyncInput
botright_client = await botright.Botright()
proxy = "user:pass@host:port"
browser = await botright_client.new_browser(proxy=proxy)
# open a new page
page = await browser.new_page()
page.goto('https://horrods.com')
async_input = await AsyncInput(browser=browser) <- fails here
await async_input.click("left", 100, 100)
To Reproduce
Steps to reproduce the behavior:
Code above fails on the specified line because of this assertion:
Since Botright creates playwright browser using persistent context and in that case browser.browser returns None
The text was updated successfully, but these errors were encountered:
Describe the bug
Can't use it with Botright, can not init AsyncInput when browser is Botright
Code Sample
To Reproduce
Steps to reproduce the behavior:
Code above fails on the specified line because of this assertion:
Since Botright creates playwright browser using persistent context and in that case
browser.browser
returnsNone
The text was updated successfully, but these errors were encountered: