I need to copy url and paste it to browser address bar. Unfortunately when I copy url there is no data attribute from where I can getText and paste.
I used actions class as below to paste the url. But doesn't seem to work.
HMTL code:
  <li class="copyLink">
  <span class="link">Copy link</span>
  <input class="input" readonly="">
 </li> 
await browser.executeScript("window.open(arguments[0], '_blank')"); // opens new tab
await browser.actions().keyUp(protractor.Key.CONTROL).perform();//to paste in the address bar
 await browser.sleep(1000);
Any suggestions on whats wrong with the code ?
Thanks