iFrame not found in Firefox

4 posts, 0 answers
  1. Mike Trill
    Mike Trill avatar
    4 posts
    Member since:
    May 2006

    Posted 03 Dec 2018 Link to this post

    Using this code, Firefox does not find the iFrame, it is found using IE and Chrome.

     

    ArtOfTest.WebAii.Core.Browser frame = ActiveBrowser.Frames[0];

    Assert.IsNotNull(frame, "Frame not found");

     

    There is only 1 frame in the page and it doesn't have a name.

     

    Test studio version 2018.3.1004.0

    Firefox 63.0.3 (64 bit)

     

    Is this a known issue as I couldn't find anything about this when searching?

     

    regards

     

    Si

  2. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    1058 posts

    Posted 05 Dec 2018 Link to this post

    Hi Mike,

    Thank you for your prompt query. 

    Based on the shared details, I suspect that the frame uses the so called "cross-domain" requests and thus cannot be automated in Firefox due to the limitation about CORS (cross-domain resource sharing). As of our perspective, this is a known limitation for Firefox automation. So, please excuse us for the inconvenience you couldn't find any information on the topic - I will store this feedback for our future releases. 

    To double check if my assumption is correct, you can check the source of the frame - if its domain is different than the automated one, then this frame uses a cross-domain request. 

    I hope the above information will be helpful for you. Though, in case of further questions, please get back to me. In the case you are not sure about the type of frame you are testing, please provide a sample test which can demonstrate the described issue. 

    Thank you in advance. 

    Regards,
    Elena Tsvetkova
    Progress Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
  3. Mike Trill
    Mike Trill avatar
    4 posts
    Member since:
    May 2006

    Posted 06 Dec 2018 in reply to Elena Tsvetkova Link to this post

    Thanks for the reply, I will disable that one test for firefox, and yes it is cross domain.

    regards

     

    Si

  4. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    1058 posts

    Posted 07 Dec 2018 Link to this post

    Hello Si,

    I am glad to know my suggestion was correct and we managed to drill down the issue. 

    Regards,
    Elena Tsvetkova
    Progress Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top