n1k0/casperjs — Issue #14: Using more than one window ?
Author: marchugon
Created: 2011-11-23 10:22:56+00:00
State: open

Hi

I tried to emulate the use of another window within one script.

My first looks like roughly this

```javascript
var casper = new phantom.Casper();
casper.start(URL, function(self) {
//do amazing stuff
//but then, try to use another window
var casper2 = new phantom.Casper();
casper2.start(URL2, function(self) {
//needs amazing other stuffs
});
casper2.run();
});
caster.start();
```

I think I'm doing something wrong, because the //needs amazing other stuffs is not called. Have you tried it ?