10-03-2011, 12:50 PM
Add appropriate wait command or write a waitForElement function which waits for the object to exist on the screen or until some time. Pseudo code:
Code:
function waitForElement(arguments) {
i=0
do{
check whether the object exists
if so {
break;
}
wait(2)
i=i+1
while (i<some number)
End function