(browser, width, height)
| 2293 | } |
| 2294 | |
| 2295 | async _resizeBrowserWindow(browser, width, height) { |
| 2296 | if (width === 'maximize') { |
| 2297 | const size = await browser.maximizeWindow() |
| 2298 | this.debugSection('Window Size', size) |
| 2299 | return |
| 2300 | } |
| 2301 | if (browser.isW3C) { |
| 2302 | return browser.setWindowRect(null, null, parseInt(width, 10), parseInt(height, 10)) |
| 2303 | } |
| 2304 | return browser.setWindowSize(parseInt(width, 10), parseInt(height, 10)) |
| 2305 | } |
| 2306 | |
| 2307 | async _resizeWindowIfNeeded(browser, windowSize) { |
| 2308 | if (this.isWeb && windowSize === 'maximize') { |
no outgoing calls
no test coverage detected