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
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
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
I am happy to hear your problem has been fixed.
I am closing this case now.
Regards,
Ivaylo
Telerik
<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
You can try using a mouse click instead:
NewCase.MouseClick();
Hope this works for you.
Regards,
Ivaylo
Telerik