~/talk

Embrace The Native Async Nature Of JavaScript In WebDriverJS

Talkat SeleniumConf Austin 2017 · 2017-04-04..04-06· [javascript, testing]
slides:none on file

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

  1. 0:00Start
  2. 6:21THE DIFFERENCE
  3. 10:17PROMISES
  4. 11:50PROMISE MANAGER
  5. 12:08CONTROL FLOW
  6. 19:46GENERATORS
  7. 30:11MIGRATION PLAN
  8. 30:58MISCELLANEOUS TIPS
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.