Forum Discussion

rahsi498's avatar
rahsi498
Occasional Contributor
12 years ago

Unable to identify frame objects in safari by testcomplete

Hi, 

   I am trying to use safari(5.1.7) to work with web applications in testcomplete(10.10), I want to do cross browser testing  in testcomplete, i am using DOM object model for working with web applications, i am able to identify the  frame objects in firefox  and internet explorer but I am unable to identify the objects in frame of a web page in safari browser,can you please suggest me how to identify frame objects in webpage in safari browser by testcomplete 

  • Hi Swapna,


     


    There are some restrictions with testing web pages in Safari. Here they are.


    Could you please check whether you are OK with them?


     

  • rahsi498's avatar
    rahsi498
    Occasional Contributor
    Hi Tanya,

      I have seen this link before and i have already set those settings in safari.is there any patch needed to display frame objects in safri browser by testcomplete.please help me...thanks in advance
  • rahsi498's avatar
    rahsi498
    Occasional Contributor

    Hi Tanya,


        I have observed that frame  objects idnetification in safari is working in some of sites and not working in some other sites(our company sites).I thought that first level of frames only identified by safari and the next levels of child objects of frames are not identified. i have provided screen shots below can you please check once.


    is there any changes to do in testcomplete10.10 or any plugins are needed?please help me....

  • AlexKaras's avatar
    AlexKaras
    Icon for Champion Level 3 rankChampion Level 3
    Hi,



    There is a problem with Chrome that looks like yours and is described in the "Specifics of Web Testing in Google Chrome" help article:

    ====================

    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.


    The same-origin policy also applies to framesets displaying local files. By default the local files are considered to belong to different origins and not allowed to access one from another. To solve the latter issue, you can launch the Chrome application with the --allow-file-access-from-files command-line switch.

    ====================



    Might this be your case? (Hovewer, I am not aware about Safari command line, so the suggested Chrome workaround most probably will not work. Maybe Safari has some similar setting that can be set via UI... I don't know.)


  • rahsi498's avatar
    rahsi498
    Occasional Contributor

    Then what will be the final solution for this ? Doesn't Safari handle any cross origin framesets?Is there any command Line Switches for Safari Like in Chrome ?Can You Please Suggest me if any.. or else  will it  fix on next versions of testcomplete?

  • santhosi428's avatar
    santhosi428
    Occasional Contributor
    i  found  java console error(after clicking developmenu-->show web inspector) in safari browser i.e "Unsafe Java Script attempt to access frame with url2 from frame with url1.Domains,protocols and ports must match"when i am opening the url in that browser. how to handle this situation. can you  please suggest me.......