Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nightmarejs Autoclosed/ crash after a new popup window open #686

Closed
aldwinrafferty opened this issue Jun 16, 2016 · 2 comments
Closed

Nightmarejs Autoclosed/ crash after a new popup window open #686

aldwinrafferty opened this issue Jun 16, 2016 · 2 comments

Comments

@aldwinrafferty
Copy link

aldwinrafferty commented Jun 16, 2016

Hi all,
im new in using nightmarejs. and i just install the node & nightmare just today
im assume the version are pretty new
i have an automation on do some specific action within some website.
the problem is, when i do click the button to login to that website. naturally, it will popup a new window.

in program( java script), when i do command click("submit1"), the browser are now closed, the popup window doesnt show up and also seems my program crash(exit). so i cant continue that automation
screenshot from 2016-06-17 10 01 32

is there any idea regarding that issue.

@rosshinkley
Copy link
Contributor

I'm not sure I follow: when you click #submit1, the browser you click in closes? Have you tried this with .catch()? Also, are you sure the popup does not appear? (The base Nightmare window is set to be always on top. Try moving it around to see if the popup is hidden.)

It's worth noting that Nightmare does not work with multiple windows by default. I wrote a plugin to address very basic window management needs, but it lacks most of the basic commands that Nightmare has and exists more as a prototype than anything. See the discussion for making window management native in the next major revision in #593.

@rosshinkley
Copy link
Contributor

Closing for lack of activity. If this is still an issue, feel free to reopen/open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants