I'd like to understand fundamentally why it doesn't work, and if there are any workarounds.
In my pre-request script:
let template = `
<html>
<body>
<button onclick="myFunction()">Copy text</button>
<script>
function myFunction() {
navigator.clipboard.writeText("COPYTEST");
}
</script>
</body>
</html>
`;
pm.visualizer.set(template);
The button just doesn't do anything
