sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #57703
[Bug 1881240] Re: [2.0.4] findText() or find("some text") not working --- workaround
@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 changed:
- Need update:
- @raiman can you please confirm if this is fixed as status is in progress and marked in 2.0.5
**************************** 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.5
+ 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.
** Bug watch added: SikuliX @ Github Issues #358
https://github.com/RaiMan/SikuliX1/issues/358
** Description changed:
+ 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.
** Summary changed:
- [2.0.4] findText() or find("some text") not working --- workaround
+ [2.0.5] findText() or find("some text") not working --- workaround
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to SikuliX.
https://bugs.launchpad.net/bugs/1881240
Title:
[2.0.5] findText() or find("some text") not working --- workaround
Status in SikuliX:
In Progress
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1881240/+subscriptions
References