Selenium waitForPopup with dynamic windowId? -


How can I wait for a popup window when using the selenium if its ID is generated dynamically? For example:

  selenium.click ("link = mylink"); Selenium.waitForPopUp ("popup072815372337691199");  

Obviously I can not hardcode the window id in my source code any signals?

It would be best to clearly name a consistent or fully predictive window, although possible Not that you can try to use the getAllWindowNames command to wait up to the number of windows increments. If the name of the window is some prediction (like a compatible prefix) you can find the full name of the new window before using waitForPopup or selectwindow .


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -