sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30522
[Bug 1419488] [NEW] [1.1.0] findAll(text) returns only one match of many possible matches
Public bug reported:
Hi all,
I opened TextEdit, and typed in the following:
Test
Test
Jump
Jump and Run
Then, I use the following code to find the text "jump", expecting that it will return 2 results. But I only got one.
Here is the code (in Java)
int count = 0;
Iterator<Match> matches = App.focusedWindow().findAll("Jump") // or Test
while(matches.hasNext()) {
Match m = matches.next();
m.highlight(2);
++count;
}
Only the first Jump was highlighted (count = 1)
Is there a way for me to find the 2 "Jump"
Thanks,
kai
** Affects: sikuli
Importance: Medium
Assignee: RaiMan (raimund-hocke)
Status: In Progress
** Changed in: sikuli
Status: New => In Progress
** Changed in: sikuli
Importance: Undecided => Medium
** Changed in: sikuli
Assignee: (unassigned) => RaiMan (raimund-hocke)
** Changed in: sikuli
Milestone: None => 2.0.0
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1419488
Title:
[1.1.0] findAll(text) returns only one match of many possible matches
Status in Sikuli:
In Progress
Bug description:
Hi all,
I opened TextEdit, and typed in the following:
Test
Test
Jump
Jump and Run
Then, I use the following code to find the text "jump", expecting that it will return 2 results. But I only got one.
Here is the code (in Java)
int count = 0;
Iterator<Match> matches = App.focusedWindow().findAll("Jump") // or Test
while(matches.hasNext()) {
Match m = matches.next();
m.highlight(2);
++count;
}
Only the first Jump was highlighted (count = 1)
Is there a way for me to find the 2 "Jump"
Thanks,
kai
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1419488/+subscriptions
Follow ups
References