0

There are lots of libraries out there to scrape information from web pages. Some of them which I had a look are:

Surprisingly, none of them provide a way to scrape a popup window. Even if they do, I couldn't figure out how it's done. The scenario is something like this:

-Visit a url (example.com)
-Fill login form
-Click login button

...and now, webpage opens a popup (an actual browser window) which I need to scrape.

Any suggestions or workarounds for popups?

ramazan polat
  • 7,111
  • 1
  • 48
  • 76
  • 1
    In PhantomJS there is a callback to handle new browser window. You can read a short description and an example at http://phantomjs.org/api/webpage/handler/on-page-created.html – a-bobkov Nov 12 '16 at 18:12

1 Answers1

1

webdriver.io offers change frame features, so in case your pop up has frame tags or iframe tags you can switch to it and test it. You can read more here http://webdriver.io/api/protocol/frame.html#Usage

Korbin
  • 578
  • 5
  • 18