Browser Lib Drag and Drop does not triger Action

8 views
Skip to first unread message

Wentao Ma

unread,
Aug 5, 2022, 8:39:03 AM8/5/22
to robotframework-users
I want to use Drag and Drop , It is simple and elegant. However, it can not trigger the "Creating Line" Action. 
I compared the python code , They looks the same. lines.png

Drag And Drop    [id="20220805170338896-down"]    [id="20220805170325799-up"]    300

"msg":"Start of node method getBoundingBox"}  
"msg":"Strict mode is enabled  find Locator with [id=\"20220805170338896-down\"] in page."}  
"msg":"End of node method getBoundingBox"}  
"msg":"Start of node method getBoundingBox"}  
"msg":"Strict mode is enabled  find Locator with [id=\"20220805170325799-up\"] in page."}  
"msg":"End of node method getBoundingBox"}  
"msg":"Start of node method mouseMove"}  
"msg":"Invoking mouse action move with params {\"x\":827.6700439453125 \"y\":568.954345703125 \"options\":{\"steps\":1}}"}
"msg":"End of node method mouseMove"}  
"msg":"Start of node method mouseButton"}  
"msg":"Invoking mouse action down with params {\"options\":{\"button\":\"left\" \"clickCount\":1}}"}  
"msg":"End of node method mouseButton"}  
"msg":"Start of node method mouseMove"}  
"msg":"Invoking mouse action move with params {\"x\":926.4599609375 \"y\":620.1544189453125 \"options\":{\"steps\":300}}"}
"msg":"End of node method mouseMove"}  
"msg":"Start of node method mouseButton"}  
"msg":"Invoking mouse action up with params {\"options\":{\"button\":\"left\" \"clickCount\":1}}"}  
"msg":"End of node method mouseButton"}

Hover    [id="20220805170338896-down"]
Mouse Button    down
Mouse Move Relative To    [id="20220805170338896-down"]    80    80    300
Mouse Button    up

"msg":"Start of node method hover"}  
"msg":"Strict mode is enabled  find Locator with [id=\"20220805170338896-down\"] in page."}  
"msg":"End of node method hover"}  
"msg":"Start of node method mouseButton"}  
"msg":"Invoking mouse action down with params {\"options\":{\"button\":\"left\" \"clickCount\":1}}"}  
"msg":"End of node method mouseButton"}  
"msg":"Start of node method getBoundingBox"}  
"msg":"Strict mode is enabled  find Locator with [id=\"20220805170338896-down\"] in page."}  
"msg":"End of node method getBoundingBox"}  
"msg":"Start of node method mouseMove"}  
"msg":"Invoking mouse action move with params {\"x\":907.6700439453125 \"y\":648.954345703125 \"options\":{\"steps\":300}}"}
"msg":"End of node method mouseMove"}  
"msg":"Start of node method mouseButton"}  
"msg":"Invoking mouse action up with params {\"options\":{\"button\":\"left\" \"clickCount\":1}}"}  
"msg":"End of node method mouseButton"}
Reply all
Reply to author
Forward
0 new messages