Ask a Question

how to use a button's add_Click function?

SOLVED
Ame
New Contributor

how to use a button's add_Click function?

hello all.

      I see that a button has many add_xxx functions, such as add_Click(), add_Drop(), add_Loaded()...

      but I never find the help information about them from the tutorial, official website and other websites.

      I wonder where to find the relative usage?

      The picture is as followed:

Ame_0-1628228468578.png

 

 

     thank you very much!

 

1 ACCEPTED SOLUTION

Accepted Solutions
AlexKaras
Community Hero

Re: how to use a button's add_Click function?

Hi,

 

Methods you are talking about are all under the .NET group. This means that they are native (public) methods provided by the given .Net control (button in your case) and are accessible (callable) for TestComplete (https://support.smartbear.com/testcomplete/docs/app-testing/desktop/wpf/about.html#AvailableProperti...). You should search relevant .Net documentation (documentation for the WPF button of certain class and version in your case) or talk to your developers in order to get the overall description and parameters definition for this or that native .Net control's method.

 

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
================================

View solution in original post

5 REPLIES 5
Marsha_R
Community Hero

Re: how to use a button's add_Click function?

What did you try in your script and what happened when you did?

Ame
New Contributor

Re: how to use a button's add_Click function?

I am studying  the unknown  knowledge  about test complete,  and there are so many add_xxx methods...

Marsha_R
Community Hero

Re: how to use a button's add_Click function?

TestComplete simply detects the methods that are there.  It doesn't create them.  What language are you using for your script?

Ame
New Contributor

Re: how to use a button's add_Click function?

I use java script.

In the methods tab item, other methods are available, such as Click, drag. so in my opinion, the add_xxx methods are also available, but I don't know their parameter format.

 

 

AlexKaras
Community Hero

Re: how to use a button's add_Click function?

Hi,

 

Methods you are talking about are all under the .NET group. This means that they are native (public) methods provided by the given .Net control (button in your case) and are accessible (callable) for TestComplete (https://support.smartbear.com/testcomplete/docs/app-testing/desktop/wpf/about.html#AvailableProperti...). You should search relevant .Net documentation (documentation for the WPF button of certain class and version in your case) or talk to your developers in order to get the overall description and parameters definition for this or that native .Net control's method.

 

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
================================

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: