Stranger behaviour of waitForPopUp method with popup name="window" for popup without name?
===

I don't know if it's a"normal" behaviour but I didn't see anything explaining it so far. I am testing a javascript popup that doesn't have a name, to be able to test elements on that popup, I have to wait until popup is fully loaded. I did not use to check if div element is present as it is [here][1] but tried something else. 

This is what I tried and the strangest thing about is that it works.

      browser.waitForPopUp("window", "3000");

It works in all my popups (none of them has a name). I tried other String such as "default", "null" and even a null String but none of them works (I read somewhere, I forgot where, I will update if I found the link, so I read that if I set the first parameter to "null", then it will make test wait until a popup is loaded, nut when I tried, I only encounter time out issue).

Anybody has a clue about what's happening and why does it work?

Thanks!


  [1]: http://stackoverflow.com/questions/9990793/selenium-waitforpopup