rainmanwy / robotframework-SikuliLibrary

Sikuli Robot Framework Library provide keywords for Robot Framework to test UI through Sikuli.
Apache License 2.0
147 stars 61 forks source link

How to click the exactly text while using the Click Text #169

Closed JerryXinhui closed 2 years ago

JerryXinhui commented 2 years ago

Hello, I'm now using SikuliLibrary and I think it is amazing, many thanks for the contributor. But I have a question, how to click the exactly text while using the keyword "Click Text "? You know sometimes, there are duplicate texts in the screen and I don't mean to click the first one at every time. Thanks !

rainmanwy commented 2 years ago

you may set region firstly. https://github.com/rainmanwy/robotframework-SikuliLibrary/blob/56a163f3f05bf80488c5fb0809d31db75c10c017/src/java/com/github/rainmanwy/robotframework/sikulilib/keywords/ScreenKeywords.java#L1145

then use "RegionClickText" keyword

JerryXinhui commented 2 years ago

Many thanks to your quick reply, But when I use RegionClickText, remind me "No keyword with name 'RegionClickText' found." my version is robotframework-SikuliLibrary-2.0.0, I checked it is the latest version. Did I do someting wrong or something else?
Thanks!

rainmanwy commented 2 years ago

maybe it is not uploaded to pypi yet. you may have a try with main branch.

I plan to update pypi version recently.

JerryXinhui commented 2 years ago

Yeah, many thanks to you and you are the yyds. I will have a try later on.

JerryXinhui commented 2 years ago

tried with robotframework-SikuliLibrary==2.0.1 works well, many thanks to the author!