I am taking a screenshot of browser for which it gives me the SS of first tab open

if exception is found i need to take ss of that screen to check the status if there r multiple tab open, it takes ss of first tab

Use Attach Browser of tab 1 inside that use take screenshot activity
It will capture Tab 1 ss

i want the ss of the tab where i can get the exception, not the first tab

1)Do you know what exception you are getting and where you are getting that error?
2)You want to check is there are multiple tabs are opened or not?

no not exactly where but those are mostly element not found types, and yes there are multiple tabs open for that flow so i don’t need to check

Use Try catch block and in Catch You can use Screenshot activity