- Cleanup dependencies.
- node.js v14+ required.
- Removed
.run()
method. Use async/await. .exit()
: removed callback support. Use async/await.- Removed callback support in
.fn()
and lazy-evaluated params. Use async/await. - Fixed electron v12+ compatibility.
- Breaking: Removed support for
PhantomJS
andSlimerJS
(engines are outdated). - Updated Electron version from v2 to v8+.
.do.post()
- implemented for electron.- Rewrite to modern syntax (async/await, ...args).
- Deps bump.
- .fn() function now can return Promise (and can be
async
).
- Maintenance: bump dependencies.
- Added
option.enginePath
, #39. - Replace makefile with npm scrips
- Update Electron package name to
electron
, with fallback to legacyelectron-prebuilt
.
- Fix freeze when trying to evaluate javascript during page load.
- (!!!)
Electron
support added. Much more stable engine. - Breaking:
.close()
is now stackable command. Use.exit()
for immediate shutdown instead. - Breaking: Dropped old nodes support. v4.+ required.
Promise
support added:.run()
returnsPromise
if invoked without callback.- Navit instance is thenable (
.run()
call can be skipped with promises).
.set.cookie(name)
(without value) will delete cookie..fill()
method, the same as in CasperJS.- Increased default timeout to 10s.
.do.click()
- Fixed phantomjs2 compatibility.- Add
phantomjs-prebuild
search whenphantomjs
engine selected.
- Added PhantomJS 2.1 support (see below).
- Force page cache reset before request. Without it Phantom 2.1 could get 304 status (without body) instead of 200.
- Improved compatibility of
do.reload
implementation.
- Fix:
.get.evaluate()
last param should be optional, #30.
- Switched
node-phantom-simple
driver to 2.0.0 from mainstream.
- Added
SlimerJS
support. - Engine options are completely separated in constructor call. Constructor now has 2 parameters.
ignoreSslErrors
is nottrue
anymore. Change it via engine options (second constructor param) if needed.- Added
.get.value
for input fields. - Emulate
change
event after input update. - Keep tab open after
.run
. .tab.close
now accepts negative index (count from the tail), and auto-open new tab if all tabs were closed.
- Added
.frame.*
methods, #8. - Added debug logging, #7.
- Added
.tab.*
API methods.
- Added contenteditable support for
.type()
, thanks to @inca. - Added
[.do].clear()
, thanks to @inca. - Removed terminator callbacks from
.test.*
all methods. - Doc fixes.
- Added
prefix
option.
- First release.