XPath: difference between dot and text()
<p>My question is about specifics of using dot and <code>text()</code> in <code>XPath</code>. For example, following <code>find_element</code> lines returns same element:</p>

<pre><code>driver.get('http://stackoverflow.com/')

driver.find_element_by_xpath('//a[text()="Ask Question"]')
driver.find_element_by_xpath('//a[.="Ask Question"]')
</code></pre>

<p>So what is the difference? What are the benefits and drawbacks of using <code>.</code> and <code>text()</code>?</p>