Exist method is not work when trying to call it in a while function
Hello, everyone, I am trying to use exists method to determine whether the picture has disappeared from the screen.
For Example, when I trying to change somebody's charactor in a zoom meeting. I want to know when his name disappeared from the userlist area. So I called this exists method in a while loop. The code shows below:
def Sikuli_
try:
scr = Screen()
strOS = GetCurrentOS()
if strOS.find(
if os.path.
else:
is_Exist == True means I am trying to prove this image is in our screen.
is_Exist == False means I am trying to prove this image has disappeared from our screen.
It works on my computer but on other computer, it will print obj position constantly, even this username's image has disappeared from the user list area.
It happened sometimes on that computer, I guess maybe because of cache or some similarity limit?
By the way, I am using https:/
And I also tried has(), wait(), waitVanish() method. They are just not very stable.
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: