* Gets information about all client windows. * @returns {Promise } Array of client window information
()
| 91 | * @returns {Promise<ClientWindowInfo[]>} Array of client window information |
| 92 | */ |
| 93 | async getClientWindows() { |
| 94 | const command = { |
| 95 | method: 'browser.getClientWindows', |
| 96 | params: {}, |
| 97 | } |
| 98 | |
| 99 | const response = await this.bidi.send(command) |
| 100 | return response.result.clientWindows.map((window) => ClientWindowInfo.fromJson(window)) |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | async function getBrowserInstance(driver) { |
no test coverage detected