title: How to retrieve text from a button type webelement
body: <p>I am trying to retrieve text from a button type webelement using Python scripting in Selenium
  The HTML code of the button looks like:</p>
  
  <pre><code>&lt;button class="list-item ng-binding" ng-click="selectLineFilter(line)" type="button"&gt;
  &lt;i class="mdi mdi-domain blue" aria-hidden="true"&gt;&lt;/i&gt;
  12063497545
  &lt;/button&gt;
  </code></pre>
  
  <p>How can I retrieve the text. I used .text, it returns an error as " 'list' object has no attribute 'text' ". Please Help.</p>