Take screenshot in cross platform project

Hello,
I would like to take a screenshot of the entire screen when something fails during our UiAutomation, but form some reason the take screenshot activity forces me to use it inside an use application browser activity although according to the documentation it should be possible to do it without. Can anyone help me to figure out what I am doing wrong here?

Thanks a lot!

Greetings,
Sabine

Hi @sabine.klemenjak,

You need to select screenshot container as “Entire Page”

If this not resolve your issue, Kindly share the snapshot of Screenshot and Properties configured.

Thanks!

Hi,

Because, UiAutomation basically supports just Chrome based automation in Cross platform project.

image

Regards,

Okay didn´t had this in mind while reading activity manual, as it is kind of stated different there.

Is there any chance do take a screenshot of the entire screen in a cross platform project than?

Thanks a lot.

I think it’s difficult because we cannot put Takescreenshot activity outside UseBrowser in Crossplat form project. Also there seems no desktop to handle by UiPath in crossplatform project.

Can you share reason to take screenshot of entire desktop?

Regards,

I thought it through again and actually it should be okay to have the browser only. What we want to do is to create library which takes a screenshot in case a UI test case fails. I assume the most stable way would be to work with the BrowserSession as an input parameter in that case. Or would you recommend another way?

Hi,

It might be referring to the same thing, but I think it’s good to use the output element (UiElement type) in Use Browser.

Regards,