Tests: Add 'dragNdrop' for UI tests with slower begining than sikuli's dragDrop wxPython4
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Thu, 10 Nov 2022 19:40:39 +0100
branchwxPython4
changeset 3671 973a7681f206
parent 3670 cfb2b05b68c4
child 3672 230c8b90f3dc
Tests: Add 'dragNdrop' for UI tests with slower begining than sikuli's dragDrop
tests/ide_tests/sikuliberemiz.py
--- a/tests/ide_tests/sikuliberemiz.py	Thu Nov 10 19:38:14 2022 +0100
+++ b/tests/ide_tests/sikuliberemiz.py	Thu Nov 10 19:40:39 2022 +0100
@@ -286,6 +286,11 @@
                 return myMeth
             setattr(self, name, makeMyMeth(name))
 
+    def dragNdrop(self, src, dst):
+        sikuli.drag(src)
+        sikuli.mouseMove(5,0)
+        sikuli.dropAt(dst)
+
     def close(self):
         self.sikuliapp.close()
         self.sikuliapp = None