Screenshot of Three Elements

Hii, I want to take a combined screenshot of 3 elements in one go. Is it possible with the modern Take Screenshot Activity?
I tried the Classic Take Screenshot activity but it requires ClippingRegion and I don’t know how to find specific positions. Plus, all three elements aren’t visible in one frame.
image

Clipping Region isn’t required.

Anyway, you’d have to drill up in the structure t get to something that is a parent of all three, like the DIV above main-gallery.

Ok. I go with the DIV above gallery, but how do I get the only required selectors and pass them to take screenshot activity?

In UI Explorer you right-click the desired DIV in that top left panel, and select Set As Target Element.

I tried that way, but all child elements getting snapped. And I require only three of them.

A screenshot is a rectangle. How are you expecting to get three separate elements in one screenshot? Show us what the page looks like and what you expect your screenshot to look like.


The attached image contains a picture, price tab, description tab, and contact agent. I need a picture, price, and description tab in one screenshot. Need to skip contact agent tab. What you say in this regard?

A screenshot is a rectangle. You’re expecting something that doesn’t make sense - a non-rectangular screenshot.

Let’s make it a rectangle by capturing 2 elements, the price tab and the description tab.

That would only be possible if they have a common parent that only they are inside.

One way you could do it is to get the screen position and size of each element, and calculate the screen position and size of the box you want to take a screenshot of, but that would be tedious.

Yes, there is a common parent and both are next to each other. How to pass both selectors in one take screenshot?

You don’t pass both selectors. You indicate the parent element that both are inside.

Okay, I’ll try. Thanks for your time. Appreciate your concern.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.