cancel
Showing results for 
Search instead for 
Did you mean: 

How to kill the test left UI object in C#?

Highlighted
New Contributor

How to kill the test left UI object in C#?

How to kill the test left UI object in C#?

1 REPLY 1
Highlighted
Community Hero

Re: How to kill the test left UI object in C#?

Hi,

 

Could you please clarify what do you mean?

If you are wondering about the lifetime of the variables in your C# test code, it is following regular rules for .Net.

If you are wondering about UI objects of the tested application, then the flow is like this:

-- Tested application creates its UI objects as it is implemented by developers;

-- TestLeft's runtime engine monitors these objects and maintains its internal objects tree;

-- When your test code searches for an UI object, the reference to the object from the above objects tree is returned;

-- When the tested application destroys the referenced UI object, TestLeft's runtime engine invalidates it in the objects tree and this is (automatically) reflected in your test code.

 

https://support.smartbear.com/testleft/docs/using/creating-tests/searching-for-objects.html and https://support.smartbear.com/testleft/docs/using/creating-tests/object-identification/understanding... might help further.

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
New Here?
Join us and watch the welcome video:
Announcements
Labels