The Nightmare docs don't specify how to set the browser details.
I'm guessing it's like this, but it doesn't work. Any ideas?
const nightmare = new Nightmare({'show': show, 'BrowserWindow': {height: 900}});
The documentation isn't terrifically clear, but the intent is to show that the Nightmare options are passed to BrowserWindow
, effectively using the same options set.
In other words,
const nightmare = new Nightmare({ show: show, height: 900});
... should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With