TakeScreenshot doesn't work if using via Library

I Created a XYZ Library with ABC activity where I use TakeScreenshot. it works fine when I Test from Local(studio) . I deployed this Library to Orchestrator. In another Project, I installed this as a package/dependencies. I am now using ABC Activity in a sequence. Rest of the code works fine but TakeScreenshot is not working ( I couldn’t see any screenshots). Anything I am missing in the Properties ?

@Rajesh_cherukuri

Please give fullpath instead of relative path…

As when running from orchestrator relative path of the project changes

Also the relative path for the library you are running would be different from the project path as well as it runs in the context of the library

Please use absolute pth like c:\filename.png

Cheers

Hello @Rajesh_cherukuri

You could make an in-argument that takes a path to where the file should be saved.
Alternatively use an absolute path to a local drive or network share.

Regards
Soren

Thank you !! it worked

1 Like