Not able to find text using findText() , if finding text have special character

Asked by Sakthikumaran on 2019-11-14

Not able to find text using findText() , if finding text have special character

Example:

I can find the text "Refresh" using below code: (Working)
    Screen s = new Screen();
    s.findText("Refresh").click();

I could not find the text "Bord Info..." using below code: ( Not Working)
    Screen s = new Screen();
    s.findText("Bord Info...").click();

Can you please any one advise me how to resolve the issue?

Thanks in Advance,
Sakthi

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2019-11-14
Last reply:
2019-11-15
Sakthikumaran (sakthi2020) said : #1

Is there any other alternative way to implements same???

RaiMan (raimund-hocke) said : #2

You can try to only use parts of the text that are found reliably and then evaluate the complete text by extending the match and use Region.text().

Can you help with this problem?

Provide an answer of your own, or ask Sakthikumaran for more information if necessary.

To post a message you must log in.