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

In FF4 bounding rectangle is detected incorrectly for elements in IFRAME

5 Answers 75 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alexey Ivanov
Top achievements
Rank 1
Alexey Ivanov asked on 31 May 2011, 10:09 AM
Hello.

Use this code:
var bro = Manager.Current.ActiveBrowser;
var frame = bro.Frames["my_frame"];
frame.RefreshDomTree();
             
var rect = frame.Find.ById("my_div").GetRectangle();
Manager.Current.Desktop.Mouse.Click(MouseClickType.LeftClick, rect);

and these pages:

1.html
<iframe name="my_frame" src="2.html" style="position: absolute; width: 200px; height: 200px; top: 300px; left: 300px;">

2.html
<div id="my_div" onclick="alert(1)" style="margin: 40px; width: 30px; height: 30px; background: red"></div>


In FF4 it clicks outside the frame... and nothing works

5 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 08 Jun 2011, 08:59 AM
Hello Alexey,
     I tried your code against FF, Chrome and IE. It worked against all of them.

Check the zoom level for FF. Set it to 100% if it's not set to 100% already.
The Telerik Testing Framework requires that a browser is set to 100% in order to correctly execute tests in that browser.

All the best,
Stoich
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
Alexey Ivanov
Top achievements
Rank 1
answered on 08 Jun 2011, 10:22 AM
Stoich,
I use 2011.1 502 and Firefox 4.0.1. Zoom is set to 100%.
Please check attached test files and a video.



0
Stoich
Telerik team
answered on 14 Jun 2011, 04:09 PM
Hi Alexey,
    I've managed to reproduce this. It seem the issue only appears for FF4 and not for previous versions.
500 Telerik points added to your account. You can track this issue here:
http://www.telerik.com/support/pits.aspx#/public/test-studio/6492

Kind regards,
Stoich
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
Alexey Ivanov
Top achievements
Rank 1
answered on 15 Jun 2011, 10:03 AM
Oh yes, I said it in subject: FF4.
Thanks for points!
0
Stoich
Telerik team
answered on 09 Aug 2011, 03:56 PM
Hi Alexey,
      this issue should be resolved with our Latest Internal Build (2011.1.809) which was uploaded today. You can download it from your Telerik account.

All the best,
Stoich
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
Tags
General Discussions
Asked by
Alexey Ivanov
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Alexey Ivanov
Top achievements
Rank 1
Share this question
or