Forum Discussion

endorium's avatar
endorium
Frequent Contributor
7 years ago

There was an attempt to perform an action at a point, which is beyond the screen

Getting the above issue which I have seen has been seen before but those resolutions are not working for me.

It an AngularJS web app. Most objects in the page only support 'click' or 'keys'

 

This means things like 'scrolltoview/scrolltoviewifneeded' do not work and I get 'this object does not support this'.

 

Any ideas how I can get the page to scroll because if I get it to select a button that is off the visible view I get the error message "There was an attempt to perform an action at a point, which is beyond the screen"

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    > things like 'scrolltoview/scrolltoviewifneeded

    The method is called scrollIntoView(true/false) and is supported by all browsers.

    • endorium's avatar
      endorium
      Frequent Contributor

      If I use scrollintoview I get the message that it is not supported by the object.

      I presumed this is because when I spy the object it only supports methods 'click' and 'keys'?

       

      Am I missing something?

      • tristaanogre's avatar
        tristaanogre
        Esteemed Contributor

        Case sensitivity...  depending upon your scripting language, you HAVE to reference the method as scrollIntoView.