title: Selenium Java - inspect element and page source shows different infiormation
body: <p>i am trying to navigate through pages using selenium web driver and i am stuck at one point
  please refer to the image where i have shown the output of inspect element for that page that i am working on.</p>
  
  <p><img src="https://i.stack.imgur.com/bFFyG.png" alt="inspect element output"></p>
  
  <p>but in the page source (which i saw on the browser and also using Jsoup) looks like this,</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;frameset rows="75,60,*" resize="no" SCROLLING="NO" name=main border="0"&gt;   
  &lt;frame src="/frame/topnewprof.shtml" name="top" SCROLLING=NO&gt;
  &lt;frame src="/frame/blank.html" name="menu" SCROLLING=NO &gt;
  &lt;frame src="/itrade/user/welcome.exe?action=chk_seckey_stat" name="body" SCROLLING=AUTO&gt;
  &lt;/frameset&gt;
  &lt;body&gt;&amp;nbsp;
  &lt;/BODY&gt;&lt;/html&gt;
  </code></pre>
  
  <p>why is this mismatch? and the yellow stuff that i have highlight in the image above has the element that i need!! 
  how will i get there using selenium??
  i know that we can navigate into the iframe using selenium's <code>switchTo().frame()</code> but even if i get into any of the three frames as shown above in the page source information, i'm not able to find the information i need, 
  can this be achieved ? is it even possible?</p>
  
  <p><strong>UPDATE:</strong>
  hello guys! i found the solution to this and now that huddle is crossed.
  actually what happened was , when i was trying to do getPageSource, selenium was actually getting the frame source of one of the frames ("body" - as mentioned above), i accidentally figured that out.
  Next to solve my problem i wanted to come one step back from where i was so i can select this iframe = (name="top") which was the target where i had the content as shown  in the image. to Achieve this i used Selenium's defaultContent() function and came back one step then with switchTO().frame() went into the frame of my desire and accomplished the task</p>
  
  <p>hope this helps!! 
  and thanks for everyone who tried to help me on this.</p>