Skip to content
Randy Hunt edited this page Dec 27, 2013 · 1 revision

Specter allows event handlers to be specified in an _events.js file, enabling you to define common functions to be run on every test in that directory, such as setup and teardown functionality for your tests.

onload(fn)

Fires for every test after the page loads.

  • fn Required. A function to fire immediately after the page loads.

onunload(fn)

Fires just before

  • fn Required. A function to fire before the page unloads.
Clone this wiki locally