I'm using selenium to click a button in browser which acts to copy text to clipboard. Once copied, I need to be able to manipulate the text, preferably by storing the text as an object or by 'pasting' into a .txt file or similar.
How can I go about achieving this?