Click the text on screen in Java
I have a Maven project in IntelliJ that utilizes sikulix v. 1.1.3.
I can extract the text from a certain region:
Settings.
Settings.
Region r = Region.
r.text();
But I cannot use findText or existsText in any way - calling these methods results in exceptions:
r.findText(
The result is the same for findWord() in sikulix v. 1.1.4:
r.findWord(
My task is to check whether some certain text exists on screen and, if so, click it. Whereas I can do the verification by checking whether the returned text (text()) contains some word, I have no idea how to find the location of this word on the screen. Can you please point me in the right direction here? A code snippet for Java would help a lot.
Thank you.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask James Sawyer for more information if necessary.