We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88e0ff0 commit 3ea3222Copy full SHA for 3ea3222
1 file changed
packages/test/harness/src/host/common/host/windowSize.js
@@ -4,13 +4,10 @@ module.exports = (/** @type import('selenium-webdriver').WebDriver */ webDriver)
4
async function windowSize(width, height, element) {
5
const rect = await webDriver.manage().window().getRect();
6
7
- height = +height || rect.height;
+ height = +height + ADJUST_WINDOW_SIZE_HEIGHT || rect.height;
8
width = +width || rect.width;
9
10
- await webDriver
11
- .manage()
12
- .window()
13
- .setRect({ height: height + ADJUST_WINDOW_SIZE_HEIGHT, width });
+ await webDriver.manage().window().setRect({ height, width });
14
15
/* istanbul ignore next */
16
element &&
0 commit comments