findAll() / findAllText() returns on one result
Asked by
kai
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<
while(
Match m = matches.next();
++count;
}
Only the first Jump was highlighted (count = 1)
Is there a way for me to find the 2 "Jump"
Thanks,
kai
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask kai for more information if necessary.
To post a message you must log in.