Using CasperJS,
I am trying to Sign into woot.com using "Login With Amazon". You can try yourself here
This opens an Amazon Sign in popup. I enter my username and password but then it goes to "Please enable cookies" error page. This is only happening on popups. sign in works on regular windows. How can I get cookies working for popups on CasperJS?
Here is my code:
this.withPopup(/ap\/signin/, function login() {
this.waitForSelector("form[name = signIn]", function () {
this.fillSelectors("form[name = signIn]", {
"input[name = email]" : "em...@example.com",
"input[name = password]" : "password"
}, true);
});
});