/wd-deasync

A wrapper around wd.js to make all Webdriver and Element methods synchronous, using deasync.

Primary LanguageJavaScript

wd-deasync

A wrapper around wd.js to make all Webdriver and Element methods synchronous, using deasync. Adapted loosely from node-wd-sync.

This library is meant to offer a straightforward API to WebDriver that’s also easy to use interactively in the REPL and the debugger. If the runtime environment supports ES6 generators (i.e. Node ≥0.11), it might be preferable to use something like co to enable yield-ing on wd’s Promise interface, though this still complicates interactive usage.