Using App ScrollTo - Forum

Forum Navigation
You need to log in to create posts and topics.

Using App ScrollTo

I have a web page where I need to click on a button that moves the page to a specific title or location in the page

I used AppScrollTo command but nothing happens whenever I put any pixel value

Any help please

Regards

@hatemtag

I used App ScrollTo command but nothing happens whenever I put any pixel value

I tried the command on a Test App ...

- [NAB.ClientHeight] was 533 px, [NAB.ClientWidth] was 1164 px
- my web page was defined as 1000 px high by 800 px wide
- when I deployed ...

AppScrollTo 400 600

a) it scrolled to a height of 400 px, but the horizontal position stayed at 0 px ... this was because there was no horizontal scrollbar to begin with (i.e. the 800px width fit inside the 1164 px width of my screen)

b) I also noticed that when I placed an AlertBox just before the AppScroolTo command ...

- as the AlertBox command result was being displayed, I could see that the same scrolling action took place in the background
- but after I clicked on the OK button of the AlertBox command, the scroll position was reset to 0,0

Observation (a) was understandable, but observation (b) appears to be a defect that needs to be corrected.

If these observations do not explain your observation, please post your screen size, page size, command parameters used, and scroll position at the time of issuing the command.

It doesn't work fine for me either, will take a look at it on next update.
Meanwhile I have done a new plugin to allow scrolling more easily.
Please take a look here:
https://visualneo.com/forum/topic/neoscroll-plugin#postid-3334

Regards.

Hi Luis

My web page is 960 width and 3500 length

Screen size is 1366 x 768

I used the command AppScrollTo 400 0 to scroll the page upward by 400 pixel as my aim to scroll the page to a certain title

Regards