Unable to capture alert box (objects are not visible)

while try to capture dialog box(spying) . i didn’t find objects.

I think you’ll need to use this keyword in your script…