title: Python - Copy element
body: <p>I've been practicing Python watching tutorials and reading books and I'm struggling with the <code>copy</code> function. I'm trying to copy an <code>ID</code> that gets populated into an <em>element box</em>, so I locate the element and try to copy it but doesn't work. :(</p>
  
  <pre><code>alert = driver.switch_to_alert()
  alert.accept()
  driver.find_element_by_xpath('/html/body/form[2]/table[1]/tbody/tr[1]/td[3]').copy2.copy()
  </code></pre>
  
  <p>I receive this error -</p>
  
  <blockquote>
    <p>AttributeError: 'WebElement' object has no attribute 'copy2'</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/U7tY4.png" alt="image"></p>
  
  <p>I want to have my program copy the numbers in the 'Search ID' box.</p>