Can we have a check whether a text is present in particular region
Can you please let me know if there is a solution to check whether a text is present in particular region .
If the text exists it should print the text exists and if it doesnt the text doesnt exists.
I 've tried it as below ,but it doesnt work:
I have a defined a list as below :
a =['apple'
I have defined a region as :
t = selectRegion() # This will prompt me for the region that need be selected.
Now I want to search the selected region for the text defined in the list a.
i.e it should search for the region with the text apple and if it exists it should print apple exists else apploe does not exists.
for i in range(len(a)):
if exists(
print a(i)+"exists" #if it exists it should print apple exists
exit()
else:
print a(i)+"does not exists" #apple does not exists
exit()
i+1
next i
This doesnt seems to be working .Can you please help with a solution on this ?
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 saaliha for more information if necessary.