This is a migrated thread and some comments may be shown as answers.

Can't record elements in an iFrame

5 Answers 167 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Shuji
Top achievements
Rank 1
Shuji asked on 16 Apr 2014, 07:14 PM
Hi,

I was trying out the record and playback functionality. I was recording elements in an iFrame within a modal popup.
The recording went successfully, but during the playback the iFrame gets skipped. When I checked the recordings I saw the iFrame recorded as an element, but the iFrame itself didn't contain any elements visible in the explorer. I tried calling RefreshAllDomTrees(), but it still didn't load the elements within that iFrame.

I'm executing these tests in a Dynamics CRM environment. 
I was hoping someone here could help me out. 

Kind regards,
Shuji

5 Answers, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 18 Apr 2014, 01:07 PM
Hello Shuji,

Since this is a recording problem we will need to reproduce it locally. In order to proceed we might need access to your CRM environment. Please provide more information and details on how to reproduce this behavior on our end.

Looking forward to hearing from you.

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Shuji
Top achievements
Rank 1
answered on 23 Apr 2014, 05:21 PM
Hi Ivaylo,

Thanks for responding.
Due to company policies I'm afraid I can't give you access to my environment. My problem however has been solved by using the latest internal build, which was provided by Cody.

For further information, see link:
http://www.telerik.com/forums/crm-2011-not-loading-all-elements-in-dom-explorer-after-upgrade-to-2013-2-1327-0#nX-o4fjT8ECd3VdWDdpQXg

Kind Regards,
Shuji
0
Ivaylo
Telerik team
answered on 28 Apr 2014, 11:55 AM
Hello Shuji,

I am happy to hear your problem has been fixed.

I am closing this case now.

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Milton
Top achievements
Rank 1
answered on 14 May 2015, 04:00 AM

<html>
   <head></head>
   <body>
      <iframe id="casesFrame" width="99%" height="418" frameborder="0" src="../cases/main_init" name="casesFrame" style="">
         <html class=" ext-strict x-viewport">
            <head></head>
            <body id="ext-gen3" class=" ext-gecko ext-gecko3 x-border-layout-ct">
               <ul id="ext-gen37" class="x-tree-root-ct x-tree-arrows">
                  <li class="x-tree-node">
                     <a class="x-tree-node-anchor" tabindex="1" href="" hidefocus="on">
                        <span unselectable="on">New case</span>
                     </a>

                  </li>
               </ul>
            </body>
         </html>
      </iframe>
   </body>
</html>

I have the following structure in my page, but I get error while performing an event "Click" link "New Case".
I am using the code following in "Test Studio":

Browser casesFrame = Manager.ActiveBrowser.Frames.ById ("casesFrame");
HtmlAnchor NewCase = casesFrame.Find.ByExpression <HtmlAnchor> ("InnerText = ~ New case", "tagname = a");
Assert.IsNotNull (NewCase);
newCase.Click (); //Does not perform the event

 

 

0
Ivaylo
Telerik team
answered on 14 May 2015, 02:53 PM
Hello Milton,

You can try using a mouse click instead:

NewCase.MouseClick();

Hope this works for you.

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Shuji
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Shuji
Top achievements
Rank 1
Milton
Top achievements
Rank 1
Share this question
or