This is a migrated thread and some comments may be shown as answers.

Can not find Ifram in Firefox

2 Answers 46 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Werner
Top achievements
Rank 1
Werner asked on 10 Jul 2014, 10:34 AM
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 Answers, 1 is accepted

Sort by
0
Werner
Top achievements
Rank 1
answered on 14 Jul 2014, 06:16 PM
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.
0
Ivaylo
Telerik team
answered on 15 Jul 2014, 08:37 AM
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
 
Tags
General Discussions
Asked by
Werner
Top achievements
Rank 1
Answers by
Werner
Top achievements
Rank 1
Ivaylo
Telerik team
Share this question
or