Hi guys
I want to run this vb file if this event occurs...

***file name ******** fire.vbs

Sub FireEvent_Example()
'The following example uses the FireEvent method to trigger
'the onpropertychange event on a form.
Browser("Yahoo").page("Yahoo! Mail - The bes").WebElement("html tag:=Form").FireEvent "onpropertychange"
msgbox " User name changed "
End Sub
******************************
Now if i use executefile("fire.vbs") in expert view , then i get error "invalid call to function"... i know because its an event and should be called automatically ...now should I attach this file to object repository or how else I should have this file called when I run the test ?
thanks..any reply would be appreciated...
priyadarshi
727-492-2183

NOTE : This question was asked by priyadarshi786