How can I use protractor to test ngx-clipboard ? I have tried using the following code with Chrome's navigator API but it doesn't work. Navigator is undefined...any ideas?
try {
const text = await navigator.clipboard.readText();
console.log('Pasted content: ', text);
} catch (err) {
console.error('Failed to read clipboard contents: ', err);
}
}
getClipboardContents(); ```