I'm trying to access elements inside a page that has been iframed into another page. I've tried setting the following flags for my Chrome browser:
--disable-hang-monitor --allow-file-access-from-files --disable-web-security --user-data-dir=<profile> --disable-session-crashed-bubble
It has been working for our development envt but once we get to production the frame no longer shows the child elements. I've noticed that this happens when the framed page is over https and not http
Anybody know a solution to this?
Firefox has no issues in detecting the objects regardless of the protocol the framed page is loaded
Using object spy the iframed non secure page I was able to select objects insde the frame. This is what it looked like in object browser
When I used object spy in the iframed secure page, I can only select the frame and not the objects
In the object browser:
I wonder if there is a chrome flag to allow test complete to drilldown secured pages.
aw, no not really. I believe that there are some browsers that don't allow access to cross-access framesets. It is possible that chrome considers https to cause a cross-access frameset. If the frame content itself an http frame ? Can you see any content/html text in the object browser for the panel ? In other words does chrome allow TC to read the contents of the frame or doesn't it allow it in in the first place ? Do you get different results in other browsers ?
Even the inner text is empty when I checked it. It seems this is a limitation introduced by how Chrome handles security for iframed pages.
It works fine in FFox. IE on the other hand is not an option for us as our application started using Web Components which gets converted by IE.
I was just hoping that there was a way to make Chrome work to imrpove test coverage.
Perhaps this is then something that will have to be taken up with Smartbear support. I didn't find anything in their support documentation regarding this myself, but I would expect that they should be able to think of something. It's not full coverage if you can't test in all browsers