ClickButton() method in TestComplete

@ Th, 1 November 2007, 19:55

When recording actions in TestComplete, it uses ClickButton() method for clicking standard push buttons.

For example,

var w = Sys.Process("WindowsApplication3"). WinFormsObject("Form1");

w.WinFormsObject("button1").ClickButton();

It is recommended to replace it with method Click() because standard button can be replaced with own-drawn one, or with some third-party control with the same name. In this case ClickButton() method won't work properly.

 

You must be logged in in order to post comments