Code: Select all
Report.Log(ReportLevel.Info, "before search");
for(int i = 0;i < 10;i++)
{
Element o = null;
repo.Servicedesk.test.TryFindSingle(".", out o);
if(o != null)
{
Report.Log(ReportLevel.Info, "found");
break;
}
Report.Log(ReportLevel.Info, "before delay");
Delay.Duration(100);
Report.Log(ReportLevel.Info, "in delay");
}
Report.Log(ReportLevel.Info, "after");
but the code finds the Pop-Up before it is loaded and fails when executing the next code.
In the picture there is the pop-up window and the other attachment is a snapshot of the site while the pop-up is opened.
Looking forward hearing from you
P.S.: I have read the User Guide concerning how to handle AJAX