Forum Discussion

Kaloyan's avatar
Kaloyan
Occasional Contributor
8 years ago

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.

 

  • shankar_r's avatar
    shankar_r
    Community Hero

    Hi,

     

    What type of object you are trying to do the operation?

     

    Can you post some screen shot object properties?

    • Kaloyan's avatar
      Kaloyan
      Occasional Contributor

      Please see the attached screenshot - here are the events inside "Events" tab 

      • Kaloyan's avatar
        Kaloyan
        Occasional Contributor

        Here are the properties of the object