title: How to get certain Tag Values
body: <p>The following Selenium automated script correctly opens the given URL and opens the View Invoice tab that opens up a detailed Invoice.
  I need to fetch some values like Number, Date and table values from the detailed invoice. The values are very nested to get to them correctly. The URL that opens up when the View Invoice is clicked, I don't know how to <strong>scrape</strong> it or use selenium to proceed with.
  Is the element in the code like an instance to get the values of the opened detailed invoice page or is there some different approach?</p>
  <p>Here is the code:</p>
  <pre><code>from selenium import webdriver
  
  
  driver = webdriver.Chrome(executable_path=r'D:/Chrome driver/chromedriver.exe') # Get local session(use webdriver.Chrome() for chrome) 
  driver.implicitly_wait(3)
  
  driver.get(&quot;URL&quot;) # load page from some url
  
  driver.find_element_by_xpath(&quot;//input[@id='PNRId']&quot;).send_keys(&quot;MHUISZ&quot;)
  driver.find_element_by_xpath(&quot;//input[@id='GstRetrievePageInteraction']&quot;).click()
  
  element = driver.find_element_by_name('ViewInvoice')
  element.click()
  </code></pre>
  <p>Can anyone please guide me on how to fetch the values from the invoice page?</p>