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

Function forSizeToBe

javascript/selenium-webdriver/test/window_test.js:137–142  ·  view source on GitHub ↗
(w, h)

Source from the content-addressed store, hash-verified

135 }
136
137 function forSizeToBe(w, h) {
138 return async function () {
139 let { width, height } = await driver.manage().window().getRect()
140 return width === w && height === h
141 }
142 }
143
144 function forPositionToBe(x, y) {
145 return async function () {

Callers 1

changeSizeByFunction · 0.85

Calls 3

getRectMethod · 0.65
windowMethod · 0.65
manageMethod · 0.65

Tested by

no test coverage detected