[2.0.5] findText() or find("some text") not working --- workaround

Bug #1881240 reported by Shane Paes
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

tracked on GitHub: https://github.com/RaiMan/SikuliX1/issues/358
**************************** current state / workaround
findText() and find("some text") are supported by the same implementation, which currently does not work well.
This is a bug and will be fixed in 2.0.6

Until then try to solve your problem with findWord, findWords, findLine and findLines features

**********************************************************

This is my code

        Settings.OcrTextRead = true;
        Settings.OcrTextSearch = true;

        Region RegionShapeMarkup = new Region(4,4,269,165);
        String TextBoxLabelName= "Shape";
        Match TextBoxLabelNameFound = RegionShapeMarkup.find(TextBoxLabelName);
        if (TextBoxLabelNameFound != null)
        {
            RegionShapeMarkup.click (TextBoxLabelNameFound.offset(0, -30));
        }

the script fails with error
FindFailed: Shape.png: (0x0) in R[4,4 269x165]@S(0)

even though searching for text, script fails with error shape.png not found.

Test environment:
Windows 10 64bit, JAVA11

Any help on this issue will be appreciated.

Revision history for this message
Shane Paes (spaes) wrote :
RaiMan (raimund-hocke)
description: updated
Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 2.0.5
RaiMan (raimund-hocke)
summary: - findText() or find("some text") not working with Sikuli 2.0.4
+ [2.0.4] findText() or find("some text") not working --- workaround
description: updated
RaiMan (raimund-hocke)
Changed in sikuli:
status: In Progress → Fix Committed
importance: Medium → High
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → In Progress
RaiMan (raimund-hocke)
Changed in sikuli:
importance: High → Medium
Revision history for this message
Chetan (cshamdas) wrote : Re: [2.0.4] findText() or find("some text") not working --- workaround

Hi
is this bug fixed and avialable in 2.0.5?

Revision history for this message
Chetan (cshamdas) wrote :

gentle reminder Raiman.
can you please update / confirm if this is fixed in 2.0.5

Revision history for this message
Chetan (cshamdas) wrote :

@raiman can you please confirm if this is fixed as status is in progress and marked in 2.0.5

description: updated
Revision history for this message
RaiMan (raimund-hocke) wrote :

@Chetan
Sorry, but this has fallen from the table somehow ;-)

In fact it is tracked on GitHub: https://github.com/RaiMan/SikuliX1/issues/358

... and thanks for the reminder.

Changed in sikuli:
milestone: 2.0.5 → 2.0.6
description: updated
description: updated
summary: - [2.0.4] findText() or find("some text") not working --- workaround
+ [2.0.5] findText() or find("some text") not working --- workaround
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.