History.md
var declarations to constnightmare may be undefined in the browser at injection time.end(fn) now uses .then() under the covers.mouseup() action.path() to get the URL's route (as opposed to the fully-qualified URL)evaluate_now.wait() when using node --use_strict.mouseover()object-assign.halt() API to stop Nightmare execution immediatelyblur exception when elements are removed by keyboard events.evaluate() to allow for asynchronous execution. If the .evaluate()d function's arity is one less than the passed in parameters, it'll assume the last argument to the function is the callback. If the return value is a thenable, it'll call then() to wait for promise fulfillment. Otherwise, the call will behave synchronously as it does now..wait(element, timeout) to wait for whichever comes first.end() will now end Electron gracefully instead of issuing a SIGKILL.end().type() to control time elapsed between keystrokes with typeInterval.cookies.clearAll() to clear all cookiespollInterval as an option to control the tick time for .wait()openDevTools docs to be more explicit about detaching the devtools trayipcRenderer usage for preload scripts in readmeReferer header support.type().end()nightmare-examplesyield to .then() in readmedid-finish-loading for did-stop-loading when waiting for page transitionsloadTimeout for server responses that do not endsender workaround.goto() such that pages that load the DOM but never finish are considered successful, otherwise failing, preventing a hang..click(), .mousedown() and .mouseover()..coookies.clear() with no arguments will clear all cookies for the current domain.javascript event listeners upon execution completion or error..once() and .removeListener() for more complete Electron process event handling..tld domaingotos now only wait if the main frame is loading.catch() without a .then().goto() rejects with a helpful message when url is not provided.engineVersions() to get Electron and Chrome versions, as well as Nightmare.version.catch()runner arguments.type() or .input(), including clearing selectors.type() and .input()sender from Electron -> parent process forwarded events.then() to comply with A+ promisesdebug prefixed with electron:.should.be.rejected from chai-as-promisedprocess event listeners when a Nightmare instance endsjavascript: urls.goto() failing when the page does not load.wait(selector) commentopenDevToolsHEADLESS environment variable is set. Prevents Nightmare from hanging when running headlessly..evaluate() errors if a function to evaluate is not supplied.type().action() to include adding actions on the Electron processwaitTimeout valueconsole.log with injected/evaluated script.inject()BREAKING: changed page-error, page-alert, and page-log to console with types error, alert, log
BREAKING: fixed signature on nightmare.on('console', ...), to act more like console.log(...)
use native electron sendInputEvent for nightmare.type(...)
properly shutdown nightmare after certain tests and update formatting on the readme
add events for prompt, alert, confirm, and the other console events
update docs for preload script
support passing in a custom preload script
Update PDF Options
follow new BrowserWindow option naming
remove useless mocha opt
implement electronPath option
Fixed 'args is not defined' error for paths option
.only from buffered image test caseupdated and clarified docs
fixed package.json description, thanks @tscanlin
better error handling for ipc, thanks @davidnaas
changing the tests to point to github to avoid the great firewall fix #249
Use node-integration for electron, fix scripts loading fix #242 #247
Remove after and util in test/index.js
adding windows debug hint
adding .useragent() support back, thanks @jefeweisen!
improving logging for screenshot, events and goto
improving test cleanup, thanks @fritx!
bumping electron from 0.32.2 to 0.33.0
improving tests for rendering
adding support for screenshot clip rect #107
updated package.json
credits to @matthewmueller!