static simulateEvent(target, name) {
    const event = new MouseEvent(name, {'bubbles': true, 'cancelable': true});
    target.dispatchEvent(event);
  }
Simulates a native event (e.g. 'click') on the given element.

@param {EventTarget} target
@param {string} name