In FF4 bounding rectangle is detected incorrectly for elements in IFRAME

6 posts, 0 answers
  1. Alexey Ivanov
    Alexey Ivanov avatar
    45 posts
    Member since:
    Sep 2009

    Posted 31 May 2011 Link to this post

    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
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 08 Jun 2011 Link to this post

    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
  3. Alexey Ivanov
    Alexey Ivanov avatar
    45 posts
    Member since:
    Sep 2009

    Posted 08 Jun 2011 Link to this post

    Stoich,
    I use 2011.1 502 and Firefox 4.0.1. Zoom is set to 100%.
    Please check attached test files and a video.



  4. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 14 Jun 2011 Link to this post

    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
  5. Alexey Ivanov
    Alexey Ivanov avatar
    45 posts
    Member since:
    Sep 2009

    Posted 15 Jun 2011 Link to this post

    Oh yes, I said it in subject: FF4.
    Thanks for points!
  6. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 09 Aug 2011 Link to this post

    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!
Back to Top