How to get get URL of new page using casperJS
问题 I am using casperJS to get links when clicking a button. The links are returned with window.open in javaScript. The code I have written logs all the pages after clicking button, but phantom is not exiting in terminal window. Also some pages only show about:blank, especially the last ones. var casper = require('casper').create(); var page = require('webpage').create(); var address = 'http://www.example.com'; page.open(address, function() { page.onPageCreated = function(newPage) { newPage