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

Method setRect

javascript/selenium-webdriver/lib/webdriver.js:2222–2231  ·  view source on GitHub ↗

* Sets the current top-level window's size and position. You may update just * the size by omitting `x` & `y`, or just the position by omitting * `width` & `height` options. * * @param {{x: (number|undefined), * y: (number|undefined), * width: (number|undefined),

({ x, y, width, height })

Source from the content-addressed store, hash-verified

2220 * rect.
2221 */
2222 setRect({ x, y, width, height }) {
2223 return this.driver_.execute(
2224 new command.Command(command.Name.SET_WINDOW_RECT).setParameters({
2225 x,
2226 y,
2227 width,
2228 height,
2229 }),
2230 )
2231 }
2232
2233 /**
2234 * Maximizes the current window. The exact behavior of this command is

Callers 3

setSizeMethod · 0.95
window_test.jsFile · 0.80
changeSizeByFunction · 0.80

Calls 2

setParametersMethod · 0.80
executeMethod · 0.65

Tested by

no test coverage detected