Forum Discussion

afpardillo's avatar
11 years ago

Finding objects within iFrames.

I'm having trouble finding child objects within iFrames. If someone has some sample code that they could share it would be much appreciated.

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)
    Hi Adrian,

     


    What browser are you using? If it's Chrome, and the frame shows the page from a different domain, you face some known specifics listed here:


    With the default security settings Chrome follows the same-origin policy and does not allow cross-origin interaction. Because of this, TestComplete cannot access the contents of cross-origin framesets (when a host of an HTML frame differs from the host of the parent page). To test the contents of such framesets, you need to open the contained frame as a separate web page or launch the Chrome application with the --disable-web-security command-line switch.


     


    Let me know if this isn't the case.

    • vinod_ryaka's avatar
      vinod_ryaka
      Occasional Contributor

      Hi Team,

       

      Please Help Me Even I am unable to find the Frame child objects in Object Tree

       

      Version: 12.42.3048.7

      Google Chrome Version 69.0.3497.100
      Mozilla FireFox 
      Microsoft Edge