Ask a Question

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

New Contributor

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

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

Champion Level 3



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. and might help further.

  /Alex [Community Champion]
[Community Champions] 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 Champions]
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 Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
Showing results for 
Search instead for 
Did you mean: