What is the JavaScript code to select a specific item on a website and copy it to clipboard?
Here is the code, in this case, I would like to select "Happy New Year", the item changes however so I don't really know how to reference it.
<div class="slds-page-header__title slds-m-right--small slds-align-middle fade-text" data-aura-rendered-by="1302:0" title="Happy New Year"><span data-aura-rendered-by="1108:0" class="uiOutputText" data-aura-class="uiOutputText">Happy New Year</span></div>
<span data-aura-rendered-by="1108:0" class="uiOutputText" data-aura-class="uiOutputText">Happy New Year</span>