MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / _resizeBrowserWindow

Method _resizeBrowserWindow

lib/helper/WebDriver.js:2295–2305  ·  view source on GitHub ↗
(browser, width, height)

Source from the content-addressed store, hash-verified

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') {

Callers 1

_resizeWindowIfNeededMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected