title: Extract Data From SVG
body: <p>I have the following code saved to a local html file </p>
  
  <pre><code>&lt;object id="PriceAdvisorFrame" type="image/svg+xml" data="https://www.kbb.com/Api/3.9.448.0/71071/vehicle/upa/PriceAdvisor/meter.svg?action=Get&amp;amp;intent=buy-used&amp;amp;pricetype=Private Party&amp;amp;zipcode=99517&amp;amp;vehicleid=439604&amp;amp;hideMonthlyPayment=True&amp;amp;condition=verygood&amp;amp;mileage=11795" style="width: 100%;"&gt;&lt;/object&gt;
  </code></pre>
  
  <p>I am trying to extract the cost from the html when the it is executed a chrome browser. Html code I am trying to parse out is shown below. However this code does not appear when the file is requested using selenium.</p>
  
  <pre><code>&lt;text xmlns="http://www.w3.org/2000/svg" text-anchor="middle" font-size="14" font-weight="700" fill="#333333" y="-8"&gt;$27,938&lt;/text&gt;
  &lt;text xmlns="http://www.w3.org/2000/svg" text-anchor="middle" font-size="14" font-weight="400" fill="#333333" y="-26"&gt;Private Party Value&lt;/text&gt;
  &lt;text xmlns="http://www.w3.org/2000/svg" text-anchor="middle" font-size="20" font-weight="700" fill="#ffffff" y="-48"&gt;$26,995 - $28,888&lt;/text&gt;
  &lt;text xmlns="http://www.w3.org/2000/svg" text-anchor="middle" font-size="14" font-weight="400" fill="#ffffff" y="-68.8"&gt;Private Party Range&lt;/text&gt;
  </code></pre>
  
  <p>Here is my code thus far:</p>
  
  <pre><code>options = webdriver.ChromeOptions()
  options.add_argument('headless')
  user_agent = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.50 Safari/537.36'    
  options.add_argument('user-agent={0}'.format(user_agent))
  driver = webdriver.Chrome(chrome_options=options)
  
  driver.get('file:///F:/Onedrive/Python/KBB/test.html')
  print(driver.find_element_by_css_selector('text').text)
  </code></pre>
  
  <p>Any ideas on how to make this work?</p>