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

How to access underlying electron? #674

Closed
Nisthar opened this issue Jun 6, 2016 · 5 comments
Closed

How to access underlying electron? #674

Nisthar opened this issue Jun 6, 2016 · 5 comments

Comments

@Nisthar
Copy link

Nisthar commented Jun 6, 2016

I am new to nightmare and electron's api. I want to access the underlying electron browser to show a image that i scrape using nightmare. Can someone show me an example?

@rosshinkley
Copy link
Contributor

I'm a little confused by your question, and would like to clarify - are you trying to save an image from a page?

@Nisthar
Copy link
Author

Nisthar commented Jun 8, 2016

No, I am trying to get the source of an image and use the source to display
an image in a new electron window.

On Wed, Jun 8, 2016 at 5:33 AM, Ross Hinkley [email protected]
wrote:

I'm a little confused by your question, and would like to clarify - are
you trying to save an image from a page?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#674 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ALcELbh62O3FlcxHIJRAdjxbSg0YpxD1ks5qJgbQgaJpZM4Iu8Hq
.

@Nisthar
Copy link
Author

Nisthar commented Jun 8, 2016

@rosshinkley I just want to open an additional electron window to display the scraped image.

@rosshinkley
Copy link
Contributor

Currently, you cannot open a new browser window from Nightmare. #593 has it as a possible future improvement.

For now, you could write a plugin to do such a thing - nightmare-window-manager might be a place to start. It supports window control, but does not support opening a new window (yet).

@rosshinkley
Copy link
Contributor

Closing for inactivity. If you still need help with this, feel free to reopen and provide more information about what you've tried.

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