If I set an object and if the object is not found during the set then trying to find a child will fail. any idea?
Example: Launch a report took 3 sec to load the window.
Set l_objRpt = Sys.Process("iexplore").Page("*Reports/ReportView.aspx?Report*")
'objRpt (obj is not visible now)
'Waits few sec and look for a child to see if the page is up.
it won't find it because [l_objRpt] is an empty object. any idea with this?
My guess is the Page hasn't fully loaded at the time you assigned l_objRpt.. so it's an Empty object, and when you try to call "Find" on it, it'll give you some sort of error.
What you probably might want to do is change the "Page(..." call into "WaitPage("...", timeout)".
This will prevent assigning the l_objRpt to an empty object.
SDET / Consultant
I will give it a try.