Thanks for getting back. Unfortunately I have to admit there is no such method provided by Test Studio.
Though I have searched the web and found a forum thread which might contain what you need to handle the scenario. Please find it here
and double check the second reply of Cody Gibson. I hope this will something you could apply that within your code.
Thank you for your understanding!