class ChromeBrowserSession : ChromeDPSession
browser |
The Browser domain defines methods and events for browser managing. val browser: BrowserDomain |
target |
Supports additional targets discovery and allows to attach to them. val target: TargetDomain |
tethering |
The Tethering domain defines methods and events for browser port binding. val tethering: TetheringDomain |
attachTo |
Creates a new ChromeTargetSession attached to the target with the given targetId. The new session shares the same underlying web socket connection as this ChromeBrowserSession. suspend fun ChromeBrowserSession.attachTo(targetId: TargetID, browserContextID: BrowserContextID? = null): ChromeTargetSession |
attachToNewPage |
Creates and attaches to a new page (tab) initially navigated to the given url. The underlying web socket connection of this ChromeBrowserSession is reused for the new ChromeTargetSession. suspend fun ChromeBrowserSession.attachToNewPage(url: String, incognito: Boolean = true, width: Int = 1024, height: Int = 768, background: Boolean = false): ChromeTargetSession |
watchTargetsIn |
Watches the available targets in this browser. fun ChromeBrowserSession.watchTargetsIn(coroutineScope: CoroutineScope): StateFlow<Map<TargetID, TargetInfo>> |