title: How to copy and paste a value using selenium?
body: <p>I am currently required to copy an order ID and then paste it into a search field. </p>
  
  <p>so far i have tried: </p>
  
  <pre><code>driver.findElement (By.xpath("/html/body/main/div/div/div[2]/div/div/div[2]/div/table/tbody/tr[2]/td[2]")).sendKeys(Keys.chord(Keys.CONTROL, "c")); ,
  </code></pre>
  
  <p>However this fails to copy anything and when pasting it pastes what I have copied earlier by myself. </p>
  
  <p><a href="http://i.stack.imgur.com/d466q.png" rel="nofollow">Click here</a></p>