Forum Discussion

Kate's avatar
Kate
Frequent Contributor
9 years ago
Solved

ScrollIntoView for desktop app objects

Desktop Windows app.

 

I have a purchase form, and while being filled in, it automatically scrolls down. 'Submit' button is not visible on screen, unless a user scrolls down either via filling the form, or via scrollbar.

I want to click 'Submit' button without any data entered into my form.

How can I scroll down until required button becomes visible on screen?

  • Hi,

     

    ScrollIntoView is a browser-specific function that does not exist for desktop applications.

    You may try to set input focus to the button (btn.Focus()). Usually this brings the focused control into view and you should be able to click it if this is the case. If not, you may press the spacebar key which should emulate click on the control (btn.Keys(" ")).

4 Replies

  • AlexKaras's avatar
    AlexKaras
    Community Hero

    Hi,

     

    ScrollIntoView is a browser-specific function that does not exist for desktop applications.

    You may try to set input focus to the button (btn.Focus()). Usually this brings the focused control into view and you should be able to click it if this is the case. If not, you may press the spacebar key which should emulate click on the control (btn.Keys(" ")).

    • Kate's avatar
      Kate
      Frequent Contributor