title: Webdriver no such element when it does exist and I have waited long enough for it
body: <p>I am using WebDriver not to test but to do routine things like find out my account balance.</p>
  
  <p>In doing that, I had some not found elements and I iterate though the windows and was able to log in.</p>
  
  <p>Now that I have logged in, I have used find by id, find by xpath, find by class and the object is not found to get my balance that is on the page (at least I can view it and it is in firebug).
  I printed out the page source but the page source only has the initial source without javascript modifications.</p>
  
  <p>I tried to get the inner html via javascript of the body and it still gave me the html that you get with page source.</p>
  
  <p>Is it possible that WebDriver is not accessing the DOM?</p>
  
  <p>All the posts that I have seen say you have to wait long enough and I have an implicit wait of 30 seconds. I tend to think it is not a waiting problem.</p>
  
  <p>When I use firebug, I see the elements, that is how I got the xpath. But it can't find it with xpath.</p>
  
  <p>I would even be satisfied if I could just save the source (generated by javascript) into a file where all the elements exist.</p>
  
  <p>I used it with firefox and windows xp sp3.</p>
  
  <p>I loop through iframes with this code</p>
  
  <pre><code>List &lt;WebElement&gt; framesList = driver.findElements(By.xpath("//iframe"));
  for(WebElement frame:framesList){
      element = driver.findElement(By.className("account-balance"));
      String et= element.getText();
      System.out.println(et);
  }
  
  System.out.println("frames:" + framesList.size());
  </code></pre>
  
  <p>I get frames:0  it detects no frames.</p>