MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / getClientWindows

Method getClientWindows

javascript/selenium-webdriver/bidi/browser.js:93–101  ·  view source on GitHub ↗

* Gets information about all client windows. * @returns {Promise } Array of client window information

()

Source from the content-addressed store, hash-verified

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
104async function getBrowserInstance(driver) {

Callers 2

browser_test.jsFile · 0.45
browser_test.jsFile · 0.45

Calls 3

sendMethod · 0.65
mapMethod · 0.45
fromJsonMethod · 0.45

Tested by

no test coverage detected