How can I scroll down to the bottom of a page

Post your questions and help other users.

Moderator: Martin

Post Reply
dip
Posts: 10
Joined: 22 May 2016 16:47

How can I scroll down to the bottom of a page

Post by dip » 06 Jan 2017 16:52

I want to use the function "Control UI" to click a button in the settings page of a running app. Unfortunately height of the settings page is larger than the screen heigth and since the button is at the very bottom of the settings page it is not visible on the screen as long as I don't scroll down to the bottom. It seems that the "click" action only works on buttons which are visible on the screen, so I guess I first have to scroll down to the bottom of the screen. How can I do this with the "Control UI" function? I read about the "scrollForward" function but don't understand how it works.
Is there a way to scroll down to the bottom of the current page to show the desired button or is there another possibility to click a button which is not visible on the screen?

And for completeness. What exactly does the "scrollForward" function? It seems to scroll the screen somehow but I don't understand exactly how.

Thanks for any response.

Ankit Bindal
Posts: 90
Joined: 12 Feb 2016 03:23

Re: How can I scroll down to the bottom of a page

Post by Ankit Bindal » 07 Jan 2017 13:20

You can write the name of button in click function of control UI.

Or

If your device is rooted, you could use action execute root command to scroll the page.

dip
Posts: 10
Joined: 22 May 2016 16:47

Re: How can I scroll down to the bottom of a page

Post by dip » 07 Jan 2017 16:12

The click function of control UI seems only to work for buttons which are visible on the screen. Since in my case the button is on the bottom of the page and is only visible when I have scrolled to the end of the page the click function seems not to work. Or am I wrong and I can use the click function also for buttons which are not shown on the screen?

Post Reply