title: Print td style in python selenium
body: <p>Hello i have a problem with priting div class text on console...</p>
  <p>this is my code:</p>
  <pre><code>import os
  import time
  from selenium import webdriver
  from pyvirtualdisplay import Display
  from selenium.webdriver.common.by import By
  from selenium.webdriver.common.keys import Keys 
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.support import expected_conditions as EC
  
  lol = input(&quot;Click to print div class text on console...&quot;)
  
  driver = webdriver.Firefox()
  driver.get(&quot;&lt;any link to verification code&quot;)
  
  verification_code = WebDriverWait(driver, 60).until(EC.presence_of_element_located((By.XPATH, &quot;/html/body/table/tbody/tr/td/table/tbody/tr[4]/td/table/tbody/tr/td/table/tbody/tr[2]/td[2]/table/tbody/tr[2]/td[2]&quot;)))
  print(verification_code) 
  </code></pre>
  <p>But im getting this:</p>
  <blockquote>
  <p>&lt;selenium.webdriver.firefox.webelement.FirefoxWebElement (session=&quot;c0ef884e-a0af-4935-8891-a763d5d7c285&quot;, element=&quot;a9285a5c-ba68-4b79-b515-249baeaddaf5&quot;)&gt;</p>
  </blockquote>
  <p>This is html code:</p>
  <pre><code>&lt;td style=&quot;padding:10px;color:#565a5c;font-size:32px;font-weight:500;text-align:center;padding-bottom:25px;&quot;&gt;629107&lt;/td&gt;
  </code></pre>
  <p>so i need print 629107 code on console.</p>
  <p>and This is full seen of html code:</p>
  <p><a href="https://i.stack.imgur.com/PYbwj.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>Question 2:</p>
  <p>I have this code:</p>
  <pre><code>verification_code = WebDriverWait(driver, 60).until(EC.presence_of_element_located((By.XPATH, &quot;/html/body/table/tbody/tr/td/table/tbody/tr[4]/td/table/tbody/tr/td/table/tbody/tr[2]/td[2]/table/tbody/tr[2]/td[2]&quot;)))
  </code></pre>
  <p>and i need write 629107 code on input class.</p>
  <p>this is xpath of input class:</p>
  <pre><code>/html/body/div[1]/section/main/div/div/div[1]/div[2]/form/div/div[1]/input
  </code></pre>
  <p>How i can do it?</p>