0

Error NotImplementedError raises when I try to start Playwright browser "context" by clicking NiceGui button. I also use Thread for multibrowsing in future.

nicegui_program.py

    from nicegui import ui
    from threading import Thread
    from example import start_browser


    ui.button('Start browser', on_click=browser)
    def browser():
        thread2 = Thread(target=start_browser)
        thread2.start()

example.py

    from playwright.async_api import async_playwright

    def start_browser():
      asyncio.run(main())
    
    async def main():
      browser_instance = await async_playwright().start()

Last row raises the error NotImplementedError exception: no description

using the "with" construction also raises the error

async with async_playwright() as p:
Falko
  • 17,076
  • 13
  • 60
  • 105

0 Answers0