[1.1.0] script stuck in click() or hover()
Hi, i have a problem about script running issue!
First, i post my executing environment:
- OS: Microsoft Windows 7 Home Premium 6.1.7601 Service Pack 1 Build 7601
- Sikuli: 1.1.0
- Language: python 2.7.10
=======
OK, i ran my whole script and it seldom stuck in the following block:
if exists(imgList[6], 2): # imgList[6] is an image path
orgReg = getLastMatch()
nextReg = orgReg.
nextReg.click()
=======
When i encountered this issue at the first time, i added debug code to trace which line is root cause:
if exists(imgList[6], 2): # imgList[6] is an image path
print "**** before getLastMatch() ****"
orgReg = getLastMatch()
print "**** between getLastMatch() and get new region ****"
nextReg = orgReg.
print "**** between get new region and click() ****"
nextReg.click()
print "**** after click() ****"
I ran script and get the following output:
**** before getLastMatch() ****
**** between getLastMatch() and get new region ****
**** between get new region and click() ****
so script was stuck in click().
I replaced click() with hover(), script also seldom struck in hover().
=======
I do not know what factors can cause script struck in hover() or click().
Thanks.
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 Luchung Chen for more information if necessary.