MCPcopy
hub / github.com/SeleniumHQ/selenium / changeSizeBy

Function changeSizeBy

javascript/selenium-webdriver/test/window_test.js:125–135  ·  view source on GitHub ↗
(dx, dy)

Source from the content-addressed store, hash-verified

123 })
124
125 async function changeSizeBy(dx, dy) {
126 let { width, height } = await driver.manage().window().getRect()
127 width += dx
128 height += dy
129
130 let rect = await driver.manage().window().setRect({ width, height })
131 if (rect.width === width && rect.height === height) {
132 return
133 }
134 return await driver.wait(forSizeToBe(width, height), 1000)
135 }
136
137 function forSizeToBe(w, h) {
138 return async function () {

Callers 1

window_test.jsFile · 0.85

Calls 6

forSizeToBeFunction · 0.85
setRectMethod · 0.80
getRectMethod · 0.65
windowMethod · 0.65
manageMethod · 0.65
waitMethod · 0.45

Tested by

no test coverage detected