- fixes
.goto()
failing when the page does not load - fixes deprecated Electron APIs
- adds testing for deprecated API usage in Electron
- fixes the
.wait(selector)
comment - adds documentation about headers
- adds an interim gitter badge
- adds a unit test for
openDevTools
- bumps to electron 0.37.5
- adds a wrapper to run unit tests when on CircleCI, when Xvfb is running, or the
HEADLESS
environment variable is set. Prevents Nightmare from hanging when running headlessly. .evaluate()
errors if a function to evaluate is not supplied
- fixes passing uncaught exceptions back to the default handler after cleanup
- fixes overhead due to automatic subscription to frame data for screenshots
- Adds unicode documentation for
.type()
- extends
.action()
to include adding actions on the Electron process - adds a debugging message to inspect how Electron exited
- ensures multiple instances of Nightmare do not use the same
waitTimeout
value - ensures cookies are not shared across tests
- adds basic HTTP authentication
- fixes
console.log
with injected/evaluated script - ensures screenshots match the currently rendered frame
- adds ability to open and detach dev tools
- removes the double-injection from
.inject()
- adds ability to save entire page as HTML
- .then() now returns a full promise instead of nightmare. update yahoo example.
- Fix failed wait with queued up functions
- fix fullscreen switching (#434)
- add .insert(selector[, text]).
- improve .type(selector[, text]) robustness.
- bump electron and fix API updates.
- added debugging flags to README
- Update use of electron APIs to kill deprecation warnings for 1.0
- Implement dock option
- added default waitTimout
- page event listener fix
- added ability to uncheck
- now properly fails with integer wait time
- Added ability to return buffer from pdf
- add ability to clear cookies
- Added a documentation for .viewport(width, height)
- Uncomment OS X dock hide
- fix setting electron paths
- Support typing in non-strings
- Support Chrome command line switches.
- fix eventemitter leak message
- Blur focussed on click. Fixes #400
- clears inputs on falsey/empty values
-
BREAKING: changed
page-error
,page-alert
, andpage-log
toconsole
with typeserror
,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
- add Nightmare.action(name, action|namespace) and nightmare.use(plugin)
- bump dependencies
- Add header() method, and optional headers param to goto()
- "manipulation" fixture fixed to correctly test horizontal scrolling
- Viewport size changed in the 'should set viewport' test (for test passing on small screen resolution).
- prevent alerts from blocking
- Add support to wait(fn) for passing arguments from node context to browser context, just like evaluate()
- better cross-platform tests
- add mousedown event
- add nightmare.cookies.get(...) and nightmare.cookies.set(...) support
- improve screenshot documentation
- remove
.only
from buffered image test case - return a buffered image if no path is provided
- Allow overriding Electron app paths
- Update mocha-generators so tests run
- pointing to versioned Electron documentation
- Use "did-stop-loading" event in "continue"
- Fix menu sub-section URL in documentation
- updating yahoo mocha example so it works with yahoo's changes, fixes #275
- adding a more complete example, fixes #295
- updating atom events links, fixes #312 and #258
- set make test as the npm test target
- log and error event clean up
- Added license to package.json
- replace co-mocha w/ mocha-generators
- Allow for user-specified web-preferences options.
- Add test case for 'type' The test case of 'type and click' doesn't ensure 'type' works
- Remove old evaluate method, fix #257
- updated 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!
- see #200 for details
- added generator love
- switched to electron to speed things up
- many many thanks to @matthewmueller!
- Fix escaping of selectors in .wait(selector) thanks @thotypous
- Updated Mocha link thanks @mortonfox
- handling phantom crashes more gracefully
- fixing tests by using a local server and static fixtures
- feat(docs): add google-oauth2 plugin
- fixing links
- clearer ToC and clearer evaluate docs from #89
- adding pdf ignore, fixing test timeout
- adding new resourceRequestStarted event for executing in phantomjs context
- Add scrollTo feature. Resolves #130.
- Adds zoom feature. Resolves #136.
- added error handling for requiring file extension in screenshot
- added documentation for supported filetypes for .screenshot
- add json parsing guard to test
- adding link to tests for more examples
- updating readme with clearer function lists and sections, and mocha test example
- add readme for headers()
- add tests for headers()
- add headers method
- upping timeouts
- Add ability to save an A4 sized PDF
- add check and select
- updating tests and fixing global port issue
- Adding sequential test case
- adding multiple clicks across multiple pages test
- fixing non-existent elem issue in .visible(), fixes #108
- bumping circleci test version and timeout
- eliminating global phantom instance and state, fixes #104
- .type() now uses uses phantom's sendEvent to trigger keypress events. Fixes #81. (by @johntitus)
- bumping phantom to ~0.7.0, fixes #101
- readme tweaks
- adding resourceError event to docs
- adding timeout handling (by @johntitus)
- cleaning up styles in tests, adding tests for timeout event
- Add ability to specify a custom PhantomJS path (by @kevva)
- updating readme to explain .on() before .goto()
- fixing callbacks for .wait()
- adding grep to makefile tests
- adding check for file existence before file upload, fixes #11
- making clicks cancelable to allow for ajax forms
- adding docs and support for ssl, proxy and other cli args
- added .exists() (by @johntitus)
- Added .visible(selector) (by @johntitus)
- Added .authentication(user,password) (by @johntitus)
- fix for 'Option to run phantom without weak' (by @securingsincity)
- clarifying a readme example, see #55
- expanding the readme (by @johntitus)
- adding a on() action to handle phantom page events (by @johntitus)
- adding .forward() method with test (by @stevenmiller888)
- adding .inject() action, test, and updated readme (by @johntitus)
- adding wait(selector) test and clojure fix, fixes #39
- adding extraction readme example
- adding caveat to viewport docs, fixes #33
- updating readme example
- Remove OSX .DS_Store file
- changing run structure to auto-terminate phantomjs instances
- naming goBack to back
- added .goBack()
- contain zalgo
- cleaning up run based on ians feedback
- fixing concat in place
- cleaning up naming, whitespace, structure.. thanks @ianstormtaylor!
- fixing readme and history
- fixing queueing and .use() call order
- Merge pull request #15 from queckezz/fix/use-queueing
- fixing tests
- fixing history
- queue .use(). Closes #10
- renaming methods, fixes #18 and #19
- Merge pull request #17 from queckezz/update/phantomjs-node
- Merge pull request #16 from stevenschobert/master
- update phantomjs-node for 0.11.x support
- add instance option for phantomjs port
- Merge pull request #14 from queckezz/update/allow-no-args
- allow no args and fix debug for .evaluate()
- fixing history
- adding .url(), more debug()s and a test for .url()
- fxiing histoyr
- fixing impatient to only apply to upload since it breaks wait
- fixing history
- making callbacks impatient based on timeouts
- fixing history
- fixing upload not having a callback
- fixing history
- clarifying readme
- adding refresh method and wait for fn on page refresh
- reworking wait function to make room for a new wait overload
- refactoring tests into sections
- fixing history
- adding test to duplicate queue ordering issue, fixing issue, fixes #9
- adding nightmare-swiftly plugin mention with docs
- fixing history
- adding .use() to docs
- Merge pull request #8 from segmentio/use-rewrite
- adding test for .use() pluggability
- changes .run() to .evaluate(), removes .error() and cleans up internal wrapping
- fixing history
- Merge pull request #6 from segmentio/phantomjs-node
- fixing done callback, fixing agent setting and adding tests. fixes #4, #2, #3.
- fixing run callback hanging, fixes #3
- experimenting with phantomjs-node, for #5
- Merge branch 'master' of https://github.com/segmentio/nightmare
- Update Readme.md
- adding .viewport() and .agent(), fixes #2
- making debug output consistent
- consistent naming
- fixing .wait() readme docs
- fixing history
- adding .run() method with docs and test. fixes #1
- Update Readme.md
- fixing history
- adding more debug statements
- fixing history
- updating readme for screen and options
- fixing timeout and adding debug for .screen() method
- fixing history
- setting viewport
- fixing history
- adding better debug logs for page load detection
- fixing history
- fixing history
- fixing main for require to work
- fixing history
- fixing tests and getting screen working
- fixing history again
- pkilling phantomjs more aggressively
- fixing phantom singletons
- fixing history.md
- updating readme
- removing unneded circleci stuff
- adding circle badge to readme
- adding circle.yml
- adding tests with lots of fixes everywhere
- filling in remaining parts of api
- filling in wait function
- filling in lots of the first draft
- adding new done method
- blocks sync
- mvoing
- all before proceding
- copyright
- copy
- adding more wait options
- adding in scaffolding and readme outline