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
Champion Level 3

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 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.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
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 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.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
cancel
Showing results for 
Search instead for 
Did you mean: