Effectively using Selenium’s getXpathCount function - http://blog.browsermob.com/2010...