How to obtain the clipping region of a ui element?

I want to identify the clipping region of an element on my web browser. What activity ca n I used?

Hi @michaelamay0

You could for exams use the Find Element activity to point to your element and save it to a variable. You could then extract the clipping region from that variable :slight_smile:

1 Like

I have tried it but i get the following error:

Hello @michaelamay0,

Use the Get position activity to get the position in a rectangle.
image

image
image
the clipping reagion has to be typed like the above. So, you can get each individual part using .top, .right. left .bootom like this:
image
I tried to enter them in a variable and using in the clipping region field but Iā€™m not able to, only manually do it. But well you can get each part by doing the above and using to string. Example: Region.Bottom.ToString
Also, try looking at this post. I hope this helps.

1 Like