googleid_109376
12 years agoOccasional Contributor
How can I know which object threw the object does not exist exception?
Hello,
I would like to know which object threw the object not found exception using the OnLogError event like this:
function GeneralEvents_OnLogError(Sender, LogParams)
{
if(LogParams.MessageText == "The object does not exist. See Additional Information for details.")
{
LogParams.MessageText = "The object " + Sender + " does not exist. The test will be stopped."
Runner.Stop(true);
}
}
Is it possible to know it using the Sender argument?
I would like to know which object threw the object not found exception using the OnLogError event like this:
function GeneralEvents_OnLogError(Sender, LogParams)
{
if(LogParams.MessageText == "The object does not exist. See Additional Information for details.")
{
LogParams.MessageText = "The object " + Sender + " does not exist. The test will be stopped."
Runner.Stop(true);
}
}
Is it possible to know it using the Sender argument?