title: Element found in Firebug but not in Selenium
body: <p>When I check an XPath in Firebug, it works as expected. </p>
  
  <p>The XPath I'm trying is below:</p>
  
  <pre><code>.//div[Text()='Data Fields']/following::div[contains(@style,'db3a1a10.pn`g')][2]
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/w1r1x.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w1r1x.png" alt="Image element found in Firebug"></a></p>
  
  <p>However, in Selenium WebDriver</p>
  
  <pre><code> ArrayList&lt;WebElement&gt; al = toolActionObject.getAllElementsByXpath(".//div[Text()='Data Fields']/following::div[contains(@style,'db3a1a10.png')][2]");
   System.out.println(al.size());
  </code></pre>
  
  <p>the output lines are like</p>
  
  <pre><code>DEBUG (SeleniumActions.java:91) - Locating elements by By.xpath: *//div[Text()='Data Fields']/following::div[contains(@style,'db3a1a10.png')][2]
  DEBUG (SeleniumActions.java:91) - Locating elements by By.xpath: *//div[Text()='Data Fields']/following::div[contains(@style,'db3a1a10.png')][2]
  DEBUG (SeleniumActions.java:91) - Locating elements by By.xpath: *//div[Text()='Data Fields']/following::div[contains(@style,'db3a1a10.png')][2]
  DEBUG (SeleniumActions.java:91) - Locating elements by By.xpath: *//div[Text()='Data Fields']/following::div[contains(@style,'db3a1a10.png')][2]
  DEBUG (SeleniumActions.java:91) - Locating elements by By.xpath: *//div[Text()='Data Fields']/following::div[contains(@style,'db3a1a10.png')][2]
  DEBUG (SeleniumActions.java:111) - Exception : Elements not found.
   Cause : Elements not found by By.xpath: *//div[Text()='Data Fields']/following::div[contains(@style,'db3a1a10.png')][2]. Returning empty Array List of WebElement.
  0
   INFO (GSUILogInLogOut.java:95) - Clossing browser.
  PASSED: testHere
  </code></pre>
  
  <p>What is the reason for such conflicting behavior?</p>