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

FormatException raised when calculate FrameInfo under Chrome browser

3 Answers 58 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mykola
Top achievements
Rank 1
Mykola asked on 22 Apr 2013, 12:47 PM
Hi All,

Recently I faced with an issue related to processing frames under Chrome browser.
The root cause of issue is in FrameInfo calculation, which receive next values for building frame rectangle:
"359.4460144042969"
"120.5397720336914"
"807.272705078125"
"594.54541015625"

As result FormatException raised in Convert.ToInt32 method.

I used next configuration:
Chrome:  26.0.1410.64 m
TTF: 2012.2.1527.0
OS: Win 7 x64

Could you confirm this issue and submit the bug ?

Thanks,
Mykola

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 24 Apr 2013, 10:20 PM
Hi Mykola,

I'm afraid I don't understand what you're trying to do and why you're using Convert.ToInt32. To us, this is a FrameInfo object. It contains properties used to identify a specific <iframe> element in the browsers DOM.

What is the test case you are trying to implement, what are you trying to validate? Can you give me example code I can execute here that reproduces the problem?

Greetings,
Cody
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Mykola
Top achievements
Rank 1
answered on 25 Apr 2013, 09:27 AM
My apologies,
Probably I am not clearly describe an issue. I am not use Convert.ToInt32 or manually operate with FrameInfo object.
I try to get some content which located within <iframe> element,  and it failed under Chrome browser, that's it.
So I start debug the test and get crash here:
 - FormatException in FrameInfo method of namespace ArtOfTest.WebAii.Core in ArtOfTest.WebAii.dll

Under Chrome rectagle values for this <iframe> element received:
347.6278381347656,-9887.2724609375,841.9744262695312,650.9801025390625

Under IE9 rectagle values for this <iframe> element received:
-9991,-9991,821,637

So as you can see for IE9, it able to convert values and as result correctly return to me frame object and I be able to continue  find any content in this frame.

But I can't do this under Chrome due to issue described above.
Let me know if you need additional info/assist from my side.

P.S.
Just small note - our web application use Telerik Rad Controls. So this <iframe> element which I mention above come from RadWindow.

Thanks,
Mykola
0
Cody
Telerik team
answered on 26 Apr 2013, 06:44 PM
Hello Mykola,

Thank you for the additional information. I think I better understand the problem. It's happening when our framework is trying to build the FrameInfo object as part of test execution, correct? To investigate why this is happening I need a way to reproduce it. is there a publicly accessible URL we can connect to that will demonstrate this problem (and what are the instructions for getting to the problematic frame)? Alternatively can you capture a Fiddler trace of the problem page and send it to us? We can use the Fiddler trace to simulate your web server and use it to reproduce the problem. If you concerned about privacy you can email the file to support@telerik.com and reference ticket 685161. Then it will be directed to me to continue our investigation.

All the best,
Cody
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Mykola
Top achievements
Rank 1
Answers by
Cody
Telerik team
Mykola
Top achievements
Rank 1
Share this question
or