How to add the take screenshot in the workflow if ay error or exception occurs

hello @anjani_priya

I think its because your workflow has activity with property of Simulate Click/ Type into
try without using simulates and let me know if it works.

Cheers!!!