Ask a Question

UI Elements defined in the Template of a control not accessable

Lorenz
New Contributor

UI Elements defined in the Template of a control not accessable

Hello,

I have problems accessing (via TestLeft UI-Spy) UI-Objects of custom controls when they are defined in the template of the control itself.
CustomControl.png
I've attached a project which demonstrates my problem.

 

Am I doing something wrong here, or is this not supported by you at all?


Best regards,
Lorenz

3 REPLIES 3
AlexKaras
Community Hero

Hi,

 

In TestComplete / TestExecute this is possible and is controlled on the project level (https://support.smartbear.com/testcomplete/docs/app-testing/desktop/wpf/template-support.html). But in TestLeft (maybe because of the absence of project file?) this seems not to be possible. (At least, the Open Applications entry is absent in the Options... menu.)

Maybe @HKosova will be able to comment on your question.

Otherwise, I would recommend to ask Support via the https://support.smartbear.com/message/?prod=TestLeft form. (I will appreciate it if you let us know what was Support's reply.)

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
================================
HKosova
SmartBear Alumni (Retired)

Hi Lorenz,

 

@AlexKaras is right - the underlying engine supports WPF control templates, but this is something that is configured via engine options, and the TestLeft Options API currently does not provide access to WPF template options. Please open a support ticket and refer to this thread.


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

Helen,

 

Thank you a lot for fast and detailed reply!

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
================================
cancel
Showing results for 
Search instead for 
Did you mean: