11*** Settings ***
2- Documentation Tests for the custom Drag And Drop To Frame keyword
3- ... in cross-frame drag-and-drop scenarios.
4- Test Setup Open Test Browser
5- Test Teardown Close Browser
6- Resource ../resource.robot
7- Force Tags draganddrop
8-
9- *** Keywords ***
10- Open Test Browser
11- Open Browser ${ROOT } /frames/draganddrop.html ${BROWSER }
12- Maximize Browser Window
13- Wait Until Page Contains Element id=source timeout=10s
2+ Documentation Tests for the custom Drag And Drop To Frame keyword
3+ ... in cross-frame drag-and-drop scenarios.
4+ Resource ../resource.robot
5+ Test Setup Go To Page "frames/draganddrop.html"
6+ Force Tags draganddrop
147
158*** Test Cases ***
169Drag And Drop To Frame Works With Local HTML
1710 [Documentation] Verifies successful cross-frame drag-and-drop from default content to a target inside an iframe.
11+ Wait Until Page Contains Element id=source timeout=10s
1812 Drag And Drop To Frame id=source id=target id=previewFrame
1913 Select Frame id=previewFrame
2014 Element Should Contain id=target Dropped Successfully!
2115 Unselect Frame
2216
2317Drag And Drop To Frame Returns To Default Content
2418 [Documentation] Verifies that the keyword returns to default content after execution.
19+ Wait Until Page Contains Element id=source timeout=10s
2520 Drag And Drop To Frame id=source id=target id=previewFrame
2621 Element Should Be Visible id=previewFrame
2722
2823Drag And Drop To Frame Hides Source Element
2924 [Documentation] Verifies that the source element becomes hidden after a successful drop.
25+ Wait Until Page Contains Element id=source timeout=10s
3026 Drag And Drop To Frame id=source id=target id=previewFrame
3127 Element Should Not Be Visible id=source
3228
3329Standard Drag And Drop Fails When Target Is Inside Frame
3430 [Documentation] Verifies that the standard Drag And Drop keyword cannot complete this cross-frame scenario.
31+ Wait Until Page Contains Element id=source timeout=10s
3532 Run Keyword And Expect Error * Drag And Drop id=source id=target
3633 Select Frame id=previewFrame
3734 Element Should Not Contain id=target Dropped Successfully!
3835 Unselect Frame
3936
4037Drag And Drop To Frame Fails With Invalid Frame
4138 [Documentation] Verifies that the keyword fails when the frame locator is invalid.
39+ Wait Until Page Contains Element id=source timeout=10s
4240 Run Keyword And Expect Error * Drag And Drop To Frame
4341 ... id=source id=target id=missingFrame
4442
4543Drag And Drop To Frame Fails With Invalid Target
4644 [Documentation] Verifies that the keyword fails when the target element is not found inside the iframe.
45+ Wait Until Page Contains Element id=source timeout=10s
4746 Run Keyword And Expect Error * Drag And Drop To Frame
4847 ... id=source id=missingTarget id=previewFrame
0 commit comments