From 7a9a54484211530dfa9c408bbd79c18568b78898 Mon Sep 17 00:00:00 2001 From: toddtarsi Date: Fri, 22 Mar 2024 01:01:40 -0500 Subject: [PATCH] correct dimensions on windows --- packages/selenium-ide/scripts/ide-runner.js | 1 + .../src/main/session/controllers/ResizablePanels/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/selenium-ide/scripts/ide-runner.js b/packages/selenium-ide/scripts/ide-runner.js index 005d8cb9d..f0dec4963 100644 --- a/packages/selenium-ide/scripts/ide-runner.js +++ b/packages/selenium-ide/scripts/ide-runner.js @@ -102,6 +102,7 @@ async function main() { 1000 ) await record.click() + let handles2 = await driver.getAllWindowHandles() while (handles2.length < 2) { await driver.sleep(100) diff --git a/packages/selenium-ide/src/main/session/controllers/ResizablePanels/index.ts b/packages/selenium-ide/src/main/session/controllers/ResizablePanels/index.ts index a842ec227..bc9fc01f2 100644 --- a/packages/selenium-ide/src/main/session/controllers/ResizablePanels/index.ts +++ b/packages/selenium-ide/src/main/session/controllers/ResizablePanels/index.ts @@ -46,8 +46,8 @@ export default class ResizablePanelsController extends BaseController { const offset = { x: 0, y: 0 } switch (process.platform) { case 'win32': - offset.x = 12 - offset.y = 21 + offset.x = 6 + offset.y = 24 break case 'darwin': offset.x = 0