sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #54949
[Question #690371]: Drag and Drop random region
New question #690371 on Sikuli:
https://answers.launchpad.net/sikuli/+question/690371
Would appreciate if someone can show me how drag and drop would work via random screen regions.
I have it specify manual coords to do it - And it works, but how can I make so it's completely random and not dependent on manual coords that I provide, this is what I have:
def randomDrag1():
dragDrop(Location(214, 771),Location(1464, 151))
def randomDrag2():
dragDrop(Location(1457,148),Location(308,798))
def randomDrag3():
dragDrop(Location(217,236),Location(1543,823))
def randomChoice():
all3Locations = [randomDrag1, randomDrag2, randomDrag3]
random.choice(all3Locations)()
randomChoice()
Thank you!
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.