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

Function forPositionToBe

javascript/selenium-webdriver/test/window_test.js:144–156  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

142 }
143
144 function forPositionToBe(x, y) {
145 return async function () {
146 let position = await driver.manage().window().getRect()
147 return (
148 position.x === x &&
149 // On OSX, the window height may be bumped down 22px for the top
150 // status bar.
151 // On Linux, Opera's window position will be off by 28px.
152 position.y >= y &&
153 position.y <= y + 28
154 )
155 }
156 }
157
158 function forNewWindowToBeOpened(originalHandles) {
159 return function () {

Callers 1

window_test.jsFile · 0.85

Calls 3

getRectMethod · 0.65
windowMethod · 0.65
manageMethod · 0.65

Tested by

no test coverage detected