Can't record elements in an iFrame

6 posts, 0 answers
  1. Shuji
    Shuji avatar
    4 posts
    Member since:
    Apr 2014

    Posted 16 Apr 2014 Link to this post

    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
  2. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 18 Apr 2014 Link to this post

    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!
  3. Shuji
    Shuji avatar
    4 posts
    Member since:
    Apr 2014

    Posted 23 Apr 2014 Link to this post

    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
  4. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 28 Apr 2014 Link to this post

    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!
  5. Milton
    Milton avatar
    4 posts
    Member since:
    May 2015

    Posted 13 May 2015 Link to this post

    <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

     

     

  6. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 14 May 2015 Link to this post

    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!
Back to Top