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

Frame problems with Firefox II

8 Answers 129 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
kovyar
Top achievements
Rank 1
kovyar asked on 04 Aug 2010, 05:36 PM
Hi all,

finally we have managed to reproduce errors we have been experiencing with FF in our application.
So, now we can show you the problem.

The test layout can be found at my free hosting.
The code (both layout and test) may be downloaded from here.

The test code is: 
var mySettings = new Settings(BrowserType.FireFox, "c:\\log");
mySettings.ClientReadyTimeout = 200000;
 
// Set to false if you are annoyed by red-yellow popups.
mySettings.AnnotateExecution = true;
mySettings.UnexpectedDialogAction = UnexpectedDialogAction.DoNotHandle;
 
var m = new Manager(mySettings);
m.Start();
m.LaunchNewBrowser();
if (!m.ActiveBrowser.Window.IsMaximized)
{
    m.ActiveBrowser.Window.Maximize();
}
 
m.Settings.ExecutionDelay = 100;
m.ActiveBrowser.NavigateTo("http://aspspider.ws/kovyar");
 
m.ActiveBrowser.AutoDomRefresh = true;
m.ActiveBrowser.WaitUntilReady();
 
Element loginfield = m.ActiveBrowser.Find.ById("ctl00_mainContentPlaceHolder_tbLogin");
Element passwfield = m.ActiveBrowser.Find.ById("ctl00_mainContentPlaceHolder_tbPassword");
m.ActiveBrowser.Actions.SetText(loginfield, "login"); //just to put anything
m.ActiveBrowser.Actions.SetText(passwfield, "pwd");
Element mybtn = m.ActiveBrowser.Find.ById("ctl00_mainContentPlaceHolder_LogInButton");
mybtn.As<HtmlControl>().Click();
 
m.ActiveBrowser.WaitForUrl("StartPage.aspx", true, 10000);
 
m.ActiveBrowser.WaitForFrame(new FrameInfo("MainFrameSet", null, null, 0), 10000);
m.ActiveBrowser.RefreshDomTree();
var mf = m.ActiveBrowser.Frames.ById("MainFrameSet");
 
m.ActiveBrowser.WaitForFrame(new FrameInfo("frmLeft", string.Empty, string.Empty, 0), 10000);
m.ActiveBrowser.RefreshDomTree();
 
var f = m.ActiveBrowser.Frames.ById("frmLeft");
f.WaitUntilReady();
f.RefreshDomTree();
var t = f.Find.ById<HtmlInputText>("treeFilterText");
 
t.Click();             // this method doesn't work
t.Text = "Hey Test!"// neither does that.

And produces the following error:

ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
InError set by the client. Client Error:
mozCommandProcessor: FindElement(): Tag collection is either empty or has less elements than the element occurrence requested.TagName: , Occurrence Requested: -1, All Tags Collection length: 0
BrowserCommand (Type:'Information',Info:'FrameRectangle',Action:'NotSet',Target:'null',Data:'2',ClientId:'Client_8c806e49-0c9d-48ed-a729-e2c2d2978a5c',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'mozCommandProcessor: FindElement(): Tag collection is either empty or has less elements than the element occurrence requested.TagName: , Occurrence Requested: -1, All Tags Collection length: 0')
InnerException: none.
 
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.ExecuteCommand(BrowserCommand request)
at ArtOfTest.WebAii.Core.FrameInfo.GetRectangle()
at ArtOfTest.WebAii.ObjectModel.Element.GetRectangle()
at ArtOfTest.WebAii.Core.Actions.AnnotateElement(Element targetElement, String message, Boolean isNative)
at ArtOfTest.WebAii.Core.Actions.AnnotateElement(Element targetElement, String actionName, String data, Boolean isNative)
at ArtOfTest.WebAii.Core.Actions.Click(Element targetElement)
at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click()
at Tests.Test.Test1() in Test.cs: line 60

Sad but true, it should work, but it doesn't.

Thus we would like our tests work, so it will be great if you tell us how to deal with it.
P.S. This layout is quite similar to the real one. In our application no methods such as Click(), MouseHover() etc work.

Thanks in advance for any ideas.

All the best,
Yaroslav

P.S. Maybe, the problem exists because of our layout being wrapped in one <iframe> element.
I mean that there is one parent iframe which contains all the other elements.

P.P.S. We are using the latest build of WebAii 2.0 and Firefox 3.6.8.

8 Answers, 1 is accepted

Sort by
0
kovyar
Top achievements
Rank 1
answered on 06 Aug 2010, 05:23 PM
Um. Any ideas?

Regards,
Yaroslav
0
Accepted
Nikolai
Telerik team
answered on 10 Aug 2010, 08:05 AM
Hi kovyar,

I have tested the code you sent with our latest internal build and it works fine as far as I see. The test passes and the value of "treeFilterText" is set to "Hey Test!". You can download the latest internal build here.
I have also attached two screen shots.

Hope this helps.

Regards,
Nikolai
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
kovyar
Top achievements
Rank 1
answered on 10 Aug 2010, 02:10 PM
Hello, Nikolai,

and thanks for the answer.
After I downloaded and installed the new build, things became better and our tests started working.

BTW, when are you going to release the new version?

Regards,
Yaroslav

0
Konstantin Petkov
Telerik team
answered on 10 Aug 2010, 02:16 PM
Hello kovyar,

I'm glad that build resolves this issue for you too.

The recent fixes will get official status with the Service Pack of the 2010 Q2 Testing Tools release we plan to be ready with at the end of August.

Kind regards,
Konstantin Petkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
kovyar
Top achievements
Rank 1
answered on 10 Aug 2010, 02:30 PM
Hello Konstantin

Getting this bug fixed makes me happy too.
Thus, we are looking forward for the service pack.

Best regards,
Yarolav

0
kovyar
Top achievements
Rank 1
answered on 12 Aug 2010, 02:46 PM
Hi, all, again.

We are going to buy WebUI testing studio QA edition for our QAs, but the problem with FF for our frameset leaves open for this product because it works on WebAii version 713.

So, can you, please, tell me if that service pack will fix the problems when you release it?

Regards, Yaroslav.
0
Konstantin Petkov
Telerik team
answered on 12 Aug 2010, 02:59 PM
Hi kovyar,

Yes, absolutely. Any updates in the framework affect WebUI Test Studio as well since the test studio is built on top of WebAii. Our infrastructure simply doesn't allow to fix an issue in the framework without to get that fixed in WebUI Test Studio (QA & Dev Edition) too.

Also we upload the regular updates (latest internal builds and even additional custom builds if needed) always for all the automated testing tools products. Each update contains all the distributions built over the exact same source.

I hope this info helps!

All the best,
Konstantin Petkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
kovyar
Top achievements
Rank 1
answered on 12 Aug 2010, 03:15 PM
Hi Konstantin,

that's exactly what I wanted to know, thank you.

All the best
Yaroslav
Tags
General Discussions
Asked by
kovyar
Top achievements
Rank 1
Answers by
kovyar
Top achievements
Rank 1
Nikolai
Telerik team
Konstantin Petkov
Telerik team
Share this question
or