From 4f241e663eeaf3c96bb782faea0f1609d5c0085d Mon Sep 17 00:00:00 2001 From: vamsi Date: Sun, 8 Nov 2026 14:49:06 -0500 Subject: [PATCH] Fix cross-frame drag-and-drop tests in headless Chrome --- atest/acceptance/keywords/draganddropframe.robot | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/atest/acceptance/keywords/draganddropframe.robot b/atest/acceptance/keywords/draganddropframe.robot index 089915b96..ebadea73c 100644 --- a/atest/acceptance/keywords/draganddropframe.robot +++ b/atest/acceptance/keywords/draganddropframe.robot @@ -2,7 +2,8 @@ Documentation Tests for the custom Drag And Drop Across Frames keyword ... in cross-frame drag-and-drop scenarios. Resource ../resource.robot -Test Setup Go To Page "frames/draganddrop.html" +Test Setup Prepare Drag And Drop Page +Test Teardown Restore Window Size *** Test Cases *** Drag And Drop Across Frames Works From Default Content @@ -78,4 +79,15 @@ Drag And Drop Across Frames Fails With Invalid Source Run Keyword And Expect Error ... Element with locator 'id=missingSource' not found. ... Drag And Drop Across Frames - ... id=missingSource id=target id=targetFrame \ No newline at end of file + ... id=missingSource id=target id=targetFrame + +*** Keywords *** +Prepare Drag And Drop Page + ${width} ${height}= Get Window Size + Set Test Variable ${ORIGINAL_WINDOW_WIDTH} ${width} + Set Test Variable ${ORIGINAL_WINDOW_HEIGHT} ${height} + Set Window Size 1440 1000 + Go To Page "frames/draganddrop.html" + +Restore Window Size + Set Window Size ${ORIGINAL_WINDOW_WIDTH} ${ORIGINAL_WINDOW_HEIGHT}