Interview Questions

How to break infinite loop

Mercury WinRunner FAQ


(Continued from previous question...)

How to break infinite loop

set_window("Browser Main Window",1);
text="";
start = get_time();
while(text!="Done")
{
statusbar_get_text("Status Bar",0,text);
now = get_time();
	if ( (now-start) == 60 )
# Specify no of seconds after which you want
break
	{
	break;
	}
}

(Continued on next question...)

Other Interview Questions