Can not find Ifram in Firefox

3 posts, 0 answers
  1. Werner
    Werner avatar
    8 posts
    Member since:
    Nov 2010

    Posted 10 Jul 2014 Link to this post

    We are using webaii for more then 4 years and suddenly this code doesn't work anymore in firefox
    Im using the newest Webaii Build.

    The code:

      public SelfServiceWrapper SelfService
            {
                get
                {
                    if (_selfService == null)
                    {
                        GetElementById("robin_popover");
                        GetElementById("robin_container");
                        GetElementById("robin_frame");

                        var iframe = Browser.Frames["robin_frame"];
                        _selfService = new SelfServiceWrapper(iframe);
                    }

                    Assert.IsNotNull(_selfService, "Robin frame is niet gevonden door webaii");

                    return _selfService;
                }
            }

    error:
    ArtOfTest.WebAii.Exceptions.ExecuteCommandException occurred
      HResult=-2146233088
      Message=ExecuteCommand failed!
    InError set by the client. Client Error:
    mozCommandProcessor: GetCurrentDocumentMarkup(): Exception thrown while trying to serialize the Dom. Error: TypeError: this.TargetDocument is null
    BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'cd61cd86-85b8-44b0-973c-3f9f74f9ff1a',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'0',InError:'True',Response:'mozCommandProcessor: GetCurrentDocumentMarkup(): Exception thrown while trying to serialize the Dom. Error: TypeError: this.TargetDocument is null')
    InnerException: none.

      Source=ArtOfTest.WebAii
      StackTrace:
           at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
           at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
           at ArtOfTest.WebAii.Core.Browser.RefreshDomTree()
           at ArtOfTest.WebAii.Core.FramesCollection.EnsureDomLoaded(Browser browser)
           at ArtOfTest.WebAii.Core.FramesCollection.get_Item(String name)
           at Robin.Tests.UITests.Wrappers.SelfService.CustomerWebsiteWrapper.get_SelfService() in c:\Projects\Robin\Main\Source\Tests.UITests\Wrappers\SelfService\CustomerWebsiteWrapper.cs:line 119
      InnerException: 

    http://cl.ly/image/3A411n0R3P2a


    When I run this test in chrome it passes! 

    Please can you take a look at this?
  2. Werner
    Werner avatar
    8 posts
    Member since:
    Nov 2010

    Posted 14 Jul 2014 in reply to Werner Link to this post

    We've downgraded Firefox from v 30 to v29. 

    This "solved" the problem for now.

    Please let me know when you've made some progress with this issue.
  3. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 15 Jul 2014 Link to this post

    Hello Werner,

    This is quite weird that you are experiencing this behavior. Unfortunately we will need a repro in order to investigate this further. 

    As a workaround I can suggest you to add the following line:

    Manager.ActiveBrowser.Frames.RefreshAllDomTrees();

    before:

    var iframe = Browser.Frames["robin_frame"];

    and give it  a try.

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