How To Input a variable containing text to reg.find()
Asked by
Mark McGuinn
Trying to create a script which passes from excel to Sikul a name and then searches on an application screen for that name. The screen has 50 visible icons with a different name in each. I am trying to find the icon which matches the name passed in and click it. However when using the following code I get an error:
reg=Region(
m = reg.find("FORD")
[error] RunTimeIDE: ImageMissing: FORD
[error] RunTimeIDE: Wait: Abort: Jython: at xcel1 (49)
[error] script [ xcel1 ] stopped with error at line --unknown--
If I pass an image in it works, but not passing either hard coded text or a variable with the text. SO the question is how can I pass just a text string to the reg.find() command?
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
To post a message you must log in.