I'm using the following code to obtain a URL that I copied to the Clipboard using a previous Stack Overflow answer:
cy.get('.download-link-wrapper > .download').click().then(($clipboard) => {console.log($clipboard);
const copiedLink = $clipboard[0]._vClipboard.clipboardAction.text
cy.visit(copiedLink);
});
However, I'm receiving the following error message:
Cannot read properties of undefined (reading 'clipboardAction')
Any help would be appreciated.
try this.