browsers.create()
method to generate a CDP websocket URL for your browser automation framework.
browsers.create()
requires the runtime’s invocation_id
when you deploy and launch your app on Kernel. This is provided to you in the runtimeContext
object generated during the invocation’s lifecycle:
contexts()[0]
and pages()[0]
), rather than trying to create a new one.browser.close()
at the end of your action to ensure the
browser connection is properly closed.