ScrollTop fails in Firefox 4 (build 1607)

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

    Posted 08 Apr 2011 Link to this post

    I cannot submit a bug because I'm not a license holder, so I post here.

    Steps:
    1. Install Firefox 4

    2. Install WebAii internal build 1607

    3. Create file c:\1.html with the following contents:
        <div id="div1"></div>

    4. Run the following NUnit test fixture
    [TestFixture]
    public class Fixture1 {
        [Test]
        public void Test1() {
            var m = new Manager(false);
            m.Start();
            m.LaunchNewBrowser(BrowserType.FireFox);
            var b = m.ActiveBrowser;
            b.NavigateTo("c:/1.html");
            var value = b.Find.ById<HtmlControl>("div1").ScrollTop;
        }
    }

    Results:

    ArtOfTest.WebAii.Exceptions.ExecuteCommandException : ExecuteCommand failed!
    InError set by the client. Client Error:
    mozCommandProcessor: TypeError: document.getElementsByTagName("div")[0] is undefined

    Works fine with other browsers.
  2. Alexey Ivanov
    Alexey Ivanov avatar
    45 posts
    Member since:
    Sep 2009

    Posted 08 Apr 2011 Link to this post

    The issue is more generic.
    It looks like JavaScript is executed in a wrong context:

    ActiveBrowser.Actions.InvokeScript("document.documentElement.childNodes[10].tagName")

    returns

    "stringbundleset"

    I don't have such tags in my document.
  3. Daniel Djambov
    Admin
    Daniel Djambov avatar
    87 posts

    Posted 13 Apr 2011 Link to this post

    Hello Alexey Ivanov,

    Thank you for writing us. We have fixed JAvaScript problems with new FireFox4 and they will be available in the next internal build.

    All the best,
    Daniel Djambov
    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
  4. Alexey Ivanov
    Alexey Ivanov avatar
    45 posts
    Member since:
    Sep 2009

    Posted 15 Apr 2011 Link to this post

    Glad to hear it.
    Waiting for the next internal build...
  5. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 15 Apr 2011 Link to this post

    Hi Alexey,

    We have prepared a new build that solves most of the FF4 problems. The only left issue we are aware of is JavaScript dialog handling we're still missing. They completely changed the dialogs in FF4.

    Latest Build for FF4 Support

    Please keep in mind the build is not thoroughly tested so we don't release it as internal build. If that's fine for you please let us know whether it solves the problems on your end too. Your feedback is highly appreciated!

    Best wishes,
    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
  6. Alexey Ivanov
    Alexey Ivanov avatar
    45 posts
    Member since:
    Sep 2009

    Posted 18 Apr 2011 Link to this post

    I confirm that this issue has been fixed in Build 1615
Back to Top