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

window.open authentication not inherited from nightmare instance #1024

Closed
zerg000000 opened this issue Feb 28, 2017 · 1 comment
Closed

window.open authentication not inherited from nightmare instance #1024

zerg000000 opened this issue Feb 28, 2017 · 1 comment

Comments

@zerg000000
Copy link

The window opened by parent webpage are not inherited the proxy and authentication settings the parent has, so 401 is shown.

    nightmare
      .authentication(username, password)
      .goto(url + '/Login.aspx')
	  .click('#MenuReport')
	  .click('#MenuMain_lbRpt')
	  .wait(2000)
	  .type('#ucDateFrom_txtDate','01-08-2016')
	  .type('#ucDateTo_txtDate','31-08-2016')
	  .click('#btnGenerate')
      .catch(done)

The popup has return 401.

@rosshinkley
Copy link
Contributor

Popups are not directly supported by Nightmare, and while I am certain the preload script doesn't get inherited with popup windows, I would not be surprised if other settings such as proxy are also not inherited.

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

3 participants