New question #693582 on Sikuli:
https://answers.launchpad.net/sikuli/+question/693582

I would like to know, is there any way to wait for an element until the element 
is visible. In selenium, there is a concept called Explicit wait. In that 
concept, the user won't give the input's like seconds, minutes, hours to wait 
for an element.  It automatically searches for a particular element. I like to 
know is there is any way without entering the wait time, the wait should be 
automatically elongated until the element or text is visible. 

Please find the below example in which I'm getting struck:

if(screen.exists("statusCompleted.png",3600)!=null){
System.out.println("project  created successful");
}

else if(screen.exists("failed.png",3600)!=null){
System.out.println("project created was unsuccessful");
}

>From the above code, the problem here am facing here is, If the test run 
>fails, the control doesn't come to the else if part, first if the part is 
>getting waiting/searching for a status-completed image for 3600 sec and then 
>the control comes to else if. 

My expectation is if the status-completed is not seen on the screen, the next 
second the control should come to the else if part. Is there any solution or 
workaround for this scenario? Please help.





-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to