Click - CursorPosition.OffsetY = 0,Scrollbar will be auto move

UiPath.System.Activitites:22.10.8

CursorPosition.OffsetY = 0, scrollbar will be move down

Click

Why scrollbar will be move down?

2024/06/02 Addition explanation
Click target compent “div” in html

<div id='a'><div>header</div><div>content</div></div>

I need to get the

2024/06/05 Add Example
test.html (538 Bytes)
Main.xaml (9.5 KB)

UiPath.System.Activities=23.10.6

I’d like to provide further context,the webpage does not offer a PDF download function, so it is necessary to use the screenshot method to capture the entire screen and save it as an image.
Currently we use trigger F12 and Ctrl+Shift+C, click on the desired page element, then in the element’s […] select “Capture node screenshot”.
We intend to click on the top-left corner of the webpage at coordinates (0,0) to ensure capturing the entire screen, but encounter automatic scrolling due to the presence of scroll bars.
Thanks


2024/06/11
Thank you all for the enthusiastic responses.

Currently, no one is responding, and I didn’t ask the initial question very well, so I started a new thread.
Feel free to use this in the forum!.
UiPath forum.

My guess is that the cursor position is over the scrollbar small black down arrow, so that is being click, and makes the scrollbar move down

2 Likes

You can try to use the highlight activity to see where the mouse is clicking

1 Like

@skaurawind

  1. Use highlight element to see where it is clicking
  2. Looks like you are using on a pdf and the element you identified might not be visible so it clicks on top left or bottom right

Cheers

1 Like

Click

cursor position at div
Click compent action:

  1. move scrollbar
    2.cursor click

Are you trying to close that tab/window? Maybe send hotkey Ctrl+W or Alt+F4 would do the same

The task is to click on the “<div id='a'>”, not to close the window

Originally, the div was visible, but after clicking the element - CursorPosition.OffsetY:0, the scrollbar automatically moved down, causing it to become invisible.

However, if set as CursorPosition.OffsetY:1, the scrollbar remains static, but the clicked element is not what I intended.

Is that the only selector you have? That looks a bit too generic, could be the reason why the click is going to somewhere that it is not intended to. After you defined the click, try to go to edit selector then highlight element. If it is higlighting something else you would need to add more items/parameters to your slector to pinpoint what is the actual thing you want to click

You really need to scroll/click on this pdf? If you could share with us what you trying to accomplish maybe theres another way

Yes, only selector
But before clicking, make sure whether the <div id='a'> component exists
The <div id='a'> component is exist

Ok,I will try to create smaple example

//----------
2024/06/05
In the report section, a simple template has already been attached

Hi <div id='a'> surely exists but what I am saying is that there might be a lot of other components that can be identified with that as it is very generic.

In the report section, a simple template has already been attached

(post deleted by author)

(post deleted by author)