Closed incheon-kim closed 4 years ago
I used nightmare inside electron app and the app using electron@8.1.1.
I changed electronPath to use the electron nightmare originally used.
var nightmare = Nightmare({
show: true,
electronPath: require("../../../node_modules/nightmare/node_modules/electron"),
pollInterval: 50,
waitTimeout: 50000
});
My purpose is user make login themselves and automatically extract cookies and write cookies.txt to use later for authentication.
When I login with type(username, "").type(password,"").click("login-btn"), wait(".logged-in") works. However, if I type in username and password and click login button myself, wait() wouldn't work. It stucks.
Here's the code.