How to fire event
Hi Guys,
I have a Navigation Bar with few items inside it. If i go to the TestComplete "Object Browser" , navigate to that Navigation Bar , under its "Events" tab i do see ListItemClick event. Here is the full "path" to it - Aliases["PtDoc"]["frmMain"]["sslbarNavigationBar"]["ListItemClick"].
This event is fired in our application by passing an INT value to it for e.g.
Aliases["PtDoc"]["frmMain"]["sslbarNavigationBar"]["ListItemClick"](3)
So i ran this function:
function Test1()
{
Aliases["PtDoc"]["frmMain"]["sslbarNavigationBar"]["ListItemClick"](3);
}
but i have the following error:
Unable to find the object ListItemClick(3). See Additional Information for details. 8:40:11 Normal Error
Additional info for the error: object with the specified attributes does not exist.
So how can i fire the ["ListItemClick"] event from the event tab ?
P.S.
The object does exist since i can see it inside the event tab.
Hi,
Yes, as it was mentioned by shankar_r and in documentation (http://support.smartbear.com/testcomplete/docs/testing-with/exploring-apps/object-browser/pages.html#EventsPage), events cannot be fired from tests.