This is a lightweight library to allow triggering clicks on a set of elements within content-mode.
Simply copy the files retaining the same directory structure,
import the module content-clickall:
let clickAll = require( 'content-clickall' );
and call the fire() method.
clickAll.fire( CSSselector );