title: selenium is not recognizing element in frame
body: <p>In selenium web-driver, when I run this code both statements run fine and do not throw any errors i.e. it recognizes 2 frames in the user interface. </p>
  
  <p>The issue is: </p>
  
  <ol>
  <li>I see only 1 frame in user interface.</li>
  <li>When I try to access any element, it says object not visible.</li>
  </ol>
  
  <pre class="lang-java prettyprint-override"><code>driver.switchTo().frame(0);
  driver.switchTo().frame(1);
  </code></pre>
  
  <p>Solution tried:</p>
  
  <p>Printed screenshot of both the frames to distinguish between the 2, but it prints the same screenshot for both the frames.</p>