sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #47410
[Question #670183]: Count the number of pictures
New question #670183 on Sikuli:
https://answers.launchpad.net/sikuli/+question/670183
while (true) {
s.wait(1.1);
if (s.exists(s1.prop("sm378")) != null) {
s.wait(1.1);
List<Match> a378 = (List<Match>) s.findAll(s1.prop("sm378"));
count = count + a378.size() ;
}
else{
count = count + 0;
s.wait(1.1);
}
if (s.exists(s1.prop("summary")) != null) {
break;
}else {
s.wait(1.1);
s.type(Key.F11,Key.SHIFT);
s.wait(1.1) ;
}
}
Exception in thread "main" java.lang.ClassCastException: org.sikuli.script.Finder cannot be cast to java.util.List
how to solve this problem?
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.