Skip to main content

@falkenslab/moodle-driver

Modules​

ModuleDescription
indexThe public API: everything a program needs to work a Moodle site with the person's own session, imported from @falkenslab/moodle-driver. Start with createMoodle, whose methods are the driver's operations; each is also a function taking the browser's context and the site.
internalsThe primitives the operations are built from, imported from @falkenslab/moodle-driver/internals, for a program that goes lower level than them: a service the driver doesn't wrap, a form of its own, a page read by hand. Stable as the main entry is, but closer to Moodle: they take pages and form field names.
testingHelpers for testing programs that use the driver without a real Moodle, imported from @falkenslab/moodle-driver/testing: a fake site served inside a browser context, made-up grading panel HTML, and a browser manager that launches nothing.