How to use Python Selenium to get the data?
<p>The link is here : <a href="http://www.imei.info/phonedatabase/790-alcatel-9109-mb2/" rel="nofollow">http://www.imei.info/phonedatabase/790-alcatel-9109-mb2/</a></p>

<p>I can already open this website using <code>Selenium-Webdriver</code> in Python. Now I'm trying to get the <code>battery type</code> from this website.</p>

<p><a href="http://i.stack.imgur.com/mSd6Y.jpg" rel="nofollow"><img src="http://i.stack.imgur.com/mSd6Y.jpg" alt="enter image description here"></a></p>

<p>use the below code to get the battery type:</p>

<pre><code> batteryType =  driver.find_element(By.XPATH, '//div[@class='cc' and contains(text(), 'Li-Ion')]').text() 
</code></pre>

<p>use the .text() to get the string of an element.</p>

python html web selenium-webdriver