Completed
Last Updated: 19 Oct 2015 06:07 by ADMIN
ADMIN
Cody
Created on: 13 Oct 2015 16:55
Type: Bug Report
0
Content missing for iframe of customer specific application
In a customer specific application while recording in Chrome, Test Studio cannot see the content of a specific iframe. Detailed repro steps can be found in the internal bug report.
Attached Files:
1 comment
ADMIN
Daniel Djambov
Posted on: 19 Oct 2015 06:05
Telerik: Unfortunately there is not much we can do here for this specific case, in which the web site is overriding the original window.frames collection in runtime like this:

 // FRAMES
 var frames = new Object();
 $(document).ready(function () {
 frames.$frameStudy = $('#frameStudy');
 frames.$frameOptions = $('#frameOptions');
 frames.$framePatient = $('#framePatient');
 frames.$frameDialogs = $('#frameDialogs');
 frames.$frameAleaGateway = $('#IframeAleaGateway');
 adjustSize();
 checkAleaGateway();
 });

Attached is a screenshot from Chrome dev tools.

By doing so we cannot get the frames count, because the "window.frames.length" property returns undefined. There is a way for us to detect this override and restore the original frames object by deleting the override('delete window.frames'), however this will probably break the application functionality.

Note: This works in Internet Explorer, because instead of Java Script, we're using the Microsoft Web Platform API and through the Scripting Object Interfaces we are able to build the frames.