nightmare-iframe-manager
nightmare-iframe-manager copied to clipboard
Exception for type() action
Hi,
I'm getting an Exception when I'm using a type() action:
nightmare:log page-error Uncaught SyntaxError: Unexpected identifier SyntaxError: Unexpected identifier
at EventEmitter.electron.ipcRenderer.on (C:\Users\ed\AppData\Roaming\npm\node_modules\nightmare\node_modules\electron-prebuilt\dist\resources\electron.asar\renderer\init.js:45:29)
at emitMany (events.js:127:13)
at EventEmitter.emit (events.js:201:7)
Im on windows 7 using node 4.2.1, nightmare 2.8.0 and nightmare-iframe-manager 0.0.4 via npm.
Exception gets visible with set DEBUG=nightmare*
. Removing require('nightmare-iframe-manager')(Nightmare);
works as expected. I'm not even entering any iframe yet. Any idea?
Minimal example to reproduce:
var Nightmare = require('nightmare');
require('nightmare-iframe-manager')(Nightmare);
nm = Nightmare({
show: true,
});
nm
.goto('http://duckduckgo.com')
.wait('#search_form_input_homepage')
.type('#search_form_input_homepage', 'nightmare')
.wait(3000)
.end()
.then(function () {
});
Thanks, ed.