Unable to click in random location based on image search.
Hello,
I am helping a friend with android prototyping, long story short I am trying to simulate random input (clicks in this case) around a specific location (a pattern).
To accomplish this I've tried all sorts of random algorithms provided by jython and both java. The end result is the same,
TypeError: offset(): 1st arg can't be coerced to int
I have even looked up the questions and examples of others and used alternative modifiers and I still end up with the issue of "can't be coerced to int"
(function I've used, .targetOffset() .offset(), .left() .up(), etc)
I've even played with the various forms of random within Jyton, random.random(), .randrange(), .choice(), etc. I've also explored Math.random() within java. The result is always the same.
#------
import java.util.Random
import random
def x():
random.
b = wait("134034521
click(b.
#------
If anyone has any suggestions I'd greatly appreciate any help offered.'
edit: forgot to add
Windows 7 64bit
r903 of Sikuli
Java 7 (update 5) 32bit
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Roman Podolyan
- Solved:
- Last query:
- Last reply: