sikulix 2.0 api - find text is not working

Bug #1882239 reported by Hariharan SP
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Invalid
Undecided
Unassigned

Bug Description

Hi,
I am using windows 10 - 64 bit laptop.
I am using sikulixapi2.0 jar. I am using findText method to find a text in present screen using java program. Some times findText method working properly some times not working.
Example: I typed one word in notepad and select that word using ctrl+a , so that word background color change into blue. In that scenario , findText is failed because of the background color changes.
Whether i am didn't select a word using ctrl+a , the word is in normal background color. In that scenario, FindText method works fine without any error. I attached image for your reference.
Not only above scenario, most of the cases findText is not working properly. What can I do for rectify this kind errors.

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

What SikuliX version exactly? Must be something like 2.0.x

Revision history for this message
Hariharan SP (hariharansp) wrote : Re: [Bug 1882239] Re: sikulix 2.0 api - find text is not working

Hi,
Sikuki version is 2.0.0

On Mon, Jun 8, 2020, 3:35 PM RaiMan <email address hidden> wrote:

> What SikuliX version exactly? Must be something like 2.0.x
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1882239
>
> Title:
> sikulix 2.0 api - find text is not working
>
> Status in Sikuli:
> New
>
> Bug description:
> Hi,
> I am using windows 10 - 64 bit laptop.
> I am using sikulixapi2.0 jar. I am using findText method to find a text
> in present screen using java program. Some times findText method working
> properly some times not working.
> Example: I typed one word in notepad and select that word using ctrl+a ,
> so that word background color change into blue. In that scenario , findText
> is failed because of the background color changes.
> Whether i am didn't select a word using ctrl+a , the word is in normal
> background color. In that scenario, FindText method works fine without any
> error. I attached image for your reference.
> Not only above scenario, most of the cases findText is not working
> properly. What can I do for rectify this kind errors.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/sikuli/+bug/1882239/+subscriptions
>

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

2.0.0 no longer supported - use 2.0.4

... and see bug 1881240

Changed in sikuli:
status: New → Invalid
Revision history for this message
Hariharan SP (hariharansp) wrote :

Now i am using sikuli 2.0.4 sikuli jar.
In sikuli version 2.0.4 also findtext is not working.
And I refered bug 1881240 , they mention use findword and findline methods. I also tried that method also, Some texts are not finded as expected.Some texts are with background color thats are not finded and move to exception part.

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

This is the best result you can get with 2.0.4.

To read a light colored font on darker background (as in your example) there will be an option in version 2.0.5 (you have to wait).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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