title: How to check for webpages' popups?
body: <p>Is there a possibility if I code a program in python that allows to <a href="https://stackoverflow.com/questions/1292817/how-to-automate-browsing-using-python">automatically browse a given website</a> using <a href="http://wwwsearch.sourceforge.net/mechanize/" rel="nofollow noreferrer">mechanize</a> to detect if there are popup windows (suggesting advertisements or downloading actions ...) using Python ?. I would appreciate any hint (for example, if you give me a library that fulfills this task I would be very happy)</p>