title: Scrapy/Splash Click on a button then get content from new page in new window
body: <p>I'm facing a problem that when I click on a button, then Javascript handle the action then it redirect to a new page with new window (It's similar to when you click on <code>&lt;a&gt;</code> with target <code>_Blank</code>). In the scrapy/splash I don't know how to get content from the new page (I means I don't know how to control that new page).</p>
  
  <p>Anyone can help!</p>
  
  <pre><code>script = """
      function main(splash)
          assert(splash:go(splash.args.url))
          splash:wait(0.5)
          local element = splash:select('div.result-content-columns div.result-title')
          local bounds = element:bounds()
          element:mouse_click{x=bounds.width/2, y=bounds.height/2}
          return splash:html()
      end
  """
  
  def start_requests(self):
      for url in self.start_urls:
          yield SplashRequest(url, self.parse, endpoint='execute', args={'lua_source': self.script})
  </code></pre>