I'm an XDE newbie, I would like to know how to activate the window that a specific HTML link is in?

I have recorded clicking the link, so the object is mapped, but I can't get the window un-minimized so that XDE can click the link.

How do I determine (given the link object) which IWindow to call activate() on?

Or am I going about this the wrong way?

Thanks in advance,