Forum Discussion
Hi Jyothi,
PerformClick is a native method of the control. Try using TestComplete's actions instead of it. For example, ClickItem or Click. Do you see the difference?
I'm having a simlar issue. The PerformClick clicks the button on the toolstrip, but I cannot perform any actions on the modal window. Click and ClickItem produce "Object doesn't support this property or method". So far the PerformClick is the only thing that clicks the button. Ideas?
.Net app
TC 11.06
This is my experiment:
for (var idxButton = 0; idxButton <= numberButtons; idxButton++) {
if(toolbar.Items.Item(idxButton).Name == buttonName) {
Log.Message("index is ==> " + idxButton);
Log.Message("button is " + toolbar.Items.Item(idxButton).Name);
toolbar.Items.Item(idxButton).PerformClick(); //modal window opens and then stops resonding
}
}
**edit**
I've been pondering what Ryan and Tanya discussed on this topic and then light dawned! I made the following adjustment and all was well.
toolbar.Items.Item(idxButton).PerformClick();
Runner.CallObjectMethodAsync(toolbar.Items.Item(idxButton),"PerformClick");
Related Content
Recent Discussions
- 8 hours agosimonaferrara
- 16 hours agoSubhraDas
- 2 days agotramuntana