Embrace The Native Async Nature Of JavaScript In WebDriverJS
summary
WebDriverJS moves away from its 3,300-line Promise Manager (opt-out now via SELENIUM_PROMISE_MANAGER=0 or using promiseManager:false) because JavaScript natively supports asynchronous control; the bindings have ~12 million downloads and will phase out the manager by Node 10 (around Oct 2018) while offering migrations: keep current tests by using generators (with co or the testing module), transpile with Babel if stuck on Node <7.6, or upgrade to Node >=7.6 and use async/await for clearer code; WDJS 3.0 and related tooling add generator support and compatibility fixes.
AI-written summary · about
chapters (8)
- 0:00Start
- 6:21THE DIFFERENCE
- 10:17PROMISES
- 11:50PROMISE MANAGER
- 12:08CONTROL FLOW
- 19:46GENERATORS
- 30:11MIGRATION PLAN
- 30:58MISCELLANEOUS TIPS








