← Back to team overview

sikuli-driver team mailing list archive

[Bug 1419488] Re: [1.1.0] findAll(text) returns only one match of many possible matches

 

** Changed in: sikuli
    Milestone: 2.0.0 => 2.0.1

** Summary changed:

- [1.1.0] findAll(text) returns only one match of many possible matches
+ [check] findAll(text) returns only one match of many possible matches

-- 
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:
  [check] 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


References