cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot access objects inside an iframed HTTPS website using chrome

Highlighted
New Contributor

Cannot access objects inside an iframed HTTPS website using chrome

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

 

 

2019-06-20_08h47_43.pngOver HTTP2019-06-20_08h47_50.pngOver HTTPS

Anybody know a solution to this?

 

Firefox has no issues in detecting the objects regardless of the protocol the framed page is loaded

Tags (3)
6 REPLIES 6
Community Hero

Re: Cannot access objects inside an iframed HTTPS website using chrome

Can you use Object Spy in both environments and see what shows up for the frame?

New Contributor

Re: Cannot access objects inside an iframed HTTPS website using chrome

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 browserimage.png 

 

When I used object spy in the iframed secure page, I can only select the frame and not the objects

 

image.png

In the object browser:

image.png

 

I wonder if there is a chrome flag to allow test complete to drilldown secured pages.

Community Manager

Re: Cannot access objects inside an iframed HTTPS website using chrome

@RUDOLF_BOTHMA@AlexKaras, any suggestions?

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
Community Leader

Re: Cannot access objects inside an iframed HTTPS website using chrome

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 ?


-------------------------------------------------
Standard syntax disclaimers apply
Regards,
New Contributor

Re: Cannot access objects inside an iframed HTTPS website using chrome

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.

Community Leader

Re: Cannot access objects inside an iframed HTTPS website using chrome

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 Smiley Happy


-------------------------------------------------
Standard syntax disclaimers apply
Regards,
New Here?
Join us and watch the welcome video:
Top Kudoed Authors