How to use events like "OnClick" in test complete. I read the helpand it asks for the parameter "sender" which I am not able to understand exactly. The reason I want to use this even is that when I use the method "Click" to click the button he test complete clicks on the scroll bar which is just above the button. Can any one suggest
it is recognizing the button as Cell(0, 1) not with its class9It is a image actually).
Now incidentally the the position of the button is such that it comes under the horizontal scroll bar. Hence TC clicks on the horizontal scroll bar. I am using Enterprise edition which works for web applications.
If you cannot click an object, you can try using scrollIntoView before clicking as David suggested or call the OnClick event handler via the fireEvent method.
<font class="small">Code:</font><hr /><pre>...
Set obj = ' Obtain the object