title: How to retrieve the value 355.60 from the element using Selenium and Python
body: <p>I'm using selenium chromedriver to automate the filling in of a form. the last step is copying the final price. when i try to get text from the element i receive nothing.</p>
  <p>Below is a picture of the element in question. i want to pull a price from it.</p>
  <p><a href="https://i.stack.imgur.com/V6T1k.png" rel="nofollow noreferrer">picture of problem</a>
  <a href="https://i.stack.imgur.com/V6T1k.png" rel="nofollow noreferrer">1</a>: <a href="https://i.stack.imgur.com/V6T1k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V6T1k.png" alt="https://i.stack.imgur.com/V6T1k.png" /></a></p>
  <p>This element is really big with so many attributes im not sure how to start</p>
  <pre><code>&lt;input id=&quot;TotalRegularPayment&quot; name=&quot;TotalRegularPayment&quot; sr-money-focus-clear=&quot;&quot; sr-money-value=&quot;&quot; class=&quot;mousetrap form-control ng-pristine ng-untouched ng-valid ng-not-empty&quot; tabindex=&quot;1&quot; type=&quot;text&quot; ng-model=&quot;$ctrl.field.value&quot; ng-change=&quot;$ctrl.onChange()&quot; ng-disabled=&quot;($ctrl.field.meta.is_read_only || $ctrl.isLockedDown)&quot; disabled=&quot;disabled&quot;&gt;
  </code></pre>
  <p>These lines:</p>
  <pre><code>print(&quot;read this&quot;)
  print(&quot;---&quot;)
  print(totalprice.text)    
  print(&quot;---&quot;)
  print(totalprice.get_attribute('innerHTML'))
  print(&quot;---&quot;)
  print(pricewrapper.text)
  print(&quot;---&quot;)
  print(pricewrapper.get_attribute('innerHTML'))
  </code></pre>
  <p>gives this output:</p>
  <pre><code>read this
  ---
  
  ---
  
  ---
  Total Rental
  £
  excl. VAT
  ---
   &lt;div class=&quot;col-sm-4 label-col&quot;&gt; &lt;label for=&quot;TotalRegularPayment&quot; class=&quot;ng-binding&quot;&gt;Total Rental&lt;/label&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-10 col-sm-6 input-col&quot;&gt; &lt;div class=&quot;input-group currency&quot;&gt; &lt;span class=&quot;input-group-addon calculator-addon disabled-style&quot; ng-class=&quot;{'disabled-style': ($ctrl.field.meta.is_read_only || $ctrl.isLockedDown)}&quot;&gt;&lt;currency-symbol class=&quot;ng-isolate-scope&quot;&gt;&lt;span class=&quot;ng-binding&quot;&gt;£&lt;/span&gt;&lt;/currency-symbol&gt;&lt;/span&gt; &lt;input id=&quot;TotalRegularPayment&quot; name=&quot;TotalRegularPayment&quot; sr-money-focus-clear=&quot;&quot; sr-money-value=&quot;&quot; class=&quot;mousetrap form-control ng-pristine ng-untouched ng-valid ng-not-empty&quot; tabindex=&quot;1&quot; type=&quot;text&quot; ng-model=&quot;$ctrl.field.value&quot; ng-change=&quot;$ctrl.onChange()&quot; ng-disabled=&quot;($ctrl.field.meta.is_read_only || $ctrl.isLockedDown)&quot; disabled=&quot;disabled&quot;&gt; &lt;!-- ngIf: $ctrl.field.meta.show_vat_label --&gt;&lt;span class=&quot;input-group-addon vat-placeholder ng-binding ng-scope disabled-style&quot; ng-if=&quot;$ctrl.field.meta.show_vat_label&quot; ng-class=&quot;{'disabled-style': ($ctrl.field.meta.is_read_only || $ctrl.isLockedDown)}&quot;&gt; excl. VAT &lt;/span&gt;&lt;!-- end ngIf: $ctrl.field.meta.show_vat_label --&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-2 col-sm-2 text-center&quot;&gt; &lt;sr-calculating-spinner field=&quot;$ctrl.field&quot; calculator-id=&quot;$ctrl.calculatorId&quot; on-calculate=&quot;$ctrl.calculate()&quot; class=&quot;ng-isolate-scope&quot;&gt;&lt;!-- ngIf: $ctrl.field.meta.is_calculable &amp;&amp; !$ctrl.quoteModel.is_quote_read_only --&gt; &lt;!-- ngIf: $ctrl.model.calculation_path === $ctrl.field.meta.name &amp;&amp; $ctrl.model.is_calculating --&gt;&lt;/sr-calculating-spinner&gt; &lt;/div&gt; 
  </code></pre>
  <p>The element i want is total price but i also printed its wrapper to see if i got anything useful i didnt.
  could you please advise on how i could print the price.</p>