Forum Discussion

4 Replies

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    The following code, works fine in Chrome and Edge,

     

    function MenuLinks()
    {
        var browser = Sys.Browser("edge");
        var page = browser.Page("https://www.w3schools.com/java/*");
        // Java Introduction
        page.Panel("sidenav").Panel("leftmenuinner").Panel("leftmenuinnerinner").Link(1).Click();
        aqObject.CheckProperty(page.Panel("belowtopnav").Panel(0).Panel("main").TextNode(0), "contentText", cmpEqual, "Java\nIntroduction");
        // Java Getting Started
        page.Panel("sidenav").Panel("leftmenuinner").Panel("leftmenuinnerinner").Link(2).Click();
        aqObject.CheckProperty(page.Panel("belowtopnav").Panel(0).Panel("main").TextNode(0), "contentText", cmpEqual, "Java\nGetting Started");
        // Java Syntax
        page.Panel("sidenav").Panel("leftmenuinner").Panel("leftmenuinnerinner").Link(3).Click();
        aqObject.CheckProperty(page.Panel("belowtopnav").Panel(0).Panel("main").TextNode(0), "contentText", cmpEqual, "Java\nSyntax");
        // Java Output / Print
        page.Panel("sidenav").Panel("leftmenuinner").Panel("leftmenuinnerinner").Link(4).Click();
        page.Panel("sidenav").Panel("leftmenuinner").Panel("leftmenuinnerinner").Panel(0).Link(0).Click();
        aqObject.CheckProperty(page.Panel("belowtopnav").Panel(0).Panel("main").TextNode(0), "contentText", cmpEqual, "Java\nOutput / Print");
    }

     

     

    As we can't see your code, it's difficult to help and diagnose your issue.

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    As mentioned in previous posts - can you provide more information please? As we have no idea what exactly you are doing!

    • TanIlak's avatar
      TanIlak
      Contributor

      Hi rraghvani,

      For example, in this Java Tutorial (w3schools.com). Here I am hitting java tutorials and hitting all the left side navigator list and capture then title of that page and then go back the then java tutorial.

      these things are captured good in chrome browser, but in edge always shows error as "There was an attempt to perform an action at the point, which is beyond the screen."

       

      Make sense!!!

       

      Thanks in Advance