When using Selenium how can I wait for a popup window if its id is dynamically generated? For example:
selenium.click("link=mylink");
selenium.waitForPopUp("popup072815372337691199");
Obviously I cannot hardcode the window id in my source code. Any hints?