← Back to team overview

sikuli-driver team mailing list archive

[Bug 1817597] Re: OCR findText() function avoids the selection of an option in a floating menu

 

--- the highlighting behavior of the findText()
... does not have any builtin automatic highlight. This can only happen, if you use the Settings.Highlight feature, to auto-highlight all matches found with find, wait and exists.

So this is not a bug, but a consequence, when using highlight before a
click, with Gui elements, that vanish, when focus is stolen.

For the other things please post separate questions, one for each
different topic.

... and if you reference any other questions and/or bugs, please add a
link.

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1817597

Title:
  OCR findText() function avoids the selection of an option in a
  floating menu

Status in Sikuli:
  Invalid

Bug description:
  Hi,

  When the findText() is used during a floating menu (i.e. right click
  menu or a dropdown menu from a menu list), the highlighting behavior
  of the findText() makes the floating menu to disappear and it is
  impossible to perform actions under the menu (e.g. click()). The
  reason of it is that when the 'Highlight found word' function happens,
  the Sikulix becomes the foreground() application and any floating menu
  of the background application disappears.

  SIKULIX VERSION: 1.1.4-SNAPSHOT
  OS: Windows
  PROCEDURE:
  * In any program with File menu and Open option, run:
       RegionMenu = Region(6,27,1667,21)
       RegionFileMenuOption = RegionMenu.findText('File')
       RegionFileMenuOption.click()

       RegionFileOptionMenuRegion = Region(10,49,300,619)
       RegionFileOptionMenuRegion = RegionFileOptionMenuRegion .findText('Open')
       RegionFileOptionMenuRegion .click()

  WORKAROUND:
  * Use findAllText() function to do the Search. Pick index accordingly.
       allOpen = RegionFileOptionMenuRegion.findAllText('Open')

  Thanks for verifying and fixing the bug having some kind of parameter
  or included in the documentation.

  Besides, I would like to check with you if you can : include the
  function 'magicMessage(text, time, where = getCenter())' described in
  one of the bugs that I checked and written by Raiman...

  Also and if it is possible, please help me to understand why I'm not able to use these functions on my Sikulix IDE 1.4:
   --> guide.rectangle(element)
       guide.circle(element)
       guide.text(element, txt)
       guide.tooltip(element, txt)

  It will help me to debug and do some demos.
  Again thanks so much if you can describe how to use them.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1817597/+subscriptions


References