make every click random on a picture
Hi,
new to Sikuli, but love it 😄
Is there a way to change the "click" command or add another command, so that the click action for every picture will be done different on the picture itself?
something like:
clickRandom(
clicks somewhere in the picture area...not a specific point...
I already did this trick:
m = find("alliance.
click(Location(
but it would be much easier to define the "random" action in general, to shorten the text...
any ideas?
thx
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Sikuli Edit question
- Assignee:
- No assignee Edit question
- Last query:
- 2020-11-21
- Last reply:
- 2020-11-25
TestMechanic (ndinev) said : | #1 |
1. Define function
def RandomClick(
m = find(element)
click(
2. Then you can use this function in your code
RandomClick(
Ben Dix (bendix80) said : | #2 |
yeah!
thx a lot!
will try this!
Can you help with this problem?
Provide an answer of your own, or ask Ben Dix for more information if necessary.