Note that there are some explanatory texts on larger screens.

plurals
  1. PONot able access elements inside frames in IE, but works fine in Chrome and FireFox
    text
    copied!<p>I am using Selenium webdriver to automate a web application, that has many frames.</p> <p>The elements inside frame are not getting identified when I run my scripts in IE,and I get an exception "<strong>Unable to find element with link text == testing</strong>". But this works perfectly in Chrome and Firefox.</p> <p>I went through many related discussion, and tried the following work arounds, but they dint help.</p> <ul> <li>Inserted wait statement before and after switching the frame. </li> <li>Disabled proxy setting for IE. Modified IE setting to display both secure and non secure contents</li> <li>Checked 'Allow active contents to run in files on my computer' check box under Internet options -> Advanced -> security in IE settings.</li> </ul> <p>I use, </p> <p>Selenium webdriver version 2.35.0.0 IE version: 7 Programming language: c#</p> <p><strong>Note:</strong> </p> <ul> <li>The application has dynamic name and id for frames, hence I have used index for switching the frames.</li> </ul> <p>I tried saving the application opened in chrome and IE as a html page. When I open the saved html page using a browser,</p> <ul> <li><p>The one saved from chrome shows all the elements inside the frame.</p></li> <li><p>The one saved from IE doesn't show any elements inside the frame.</p></li> </ul> <p>It would be great if I get a solution to handle elements inside the frames.</p> <p>Am not able to provide the full html code, but have attached the screenshot of a part of html code. </p> <p>I tried saving the complete html page using Chrome and IE. And I do observe a difference in them.</p> <p>This is the snapshot of html code that is saved from chrome. Here I do see "<strong>&lt; div class="mocha</strong>" division, that has the frame.</p> <p><img src="https://i.stack.imgur.com/K0jES.png" alt="enter image description here"></p> <p>This is the snapshot of html code that is saved from IE. Here I do not see "<strong>&lt; div class="mocha</strong>" division, and also "<strong>&lt; iframe ></strong> ".</p> <p><img src="https://i.stack.imgur.com/3fTiG.png" alt="enter image description here"></p> <p>I doubt, if this might be the cause for the problem. Let me know, if I had to provide more information.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload