writeToClipboard
Write selected data to Clipboard API when a cut or copy is triggered.
The Clipboard API is usually not available to test code. Our setup replaces the navigator.clipboard property with a stub.
Defaults to false when calling the APIs directly. Defaults to true when calling the APIs per setup.