Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on I get error "invalid call to function"... within the QTP forums, part of the Software Testing category; 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 ...
|
|||||||
|
|||
|
I get error "invalid call to function"...
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 |
| Sponsored Links |
|
|||
|
Re: I get error "invalid call to function"...
Hi,
Can you please recheck how you are calling the Procedure? Since this not a function, this is a Sub. I think you can not calling the Sub properly. Can you "Call" to call the Sub like Call FireEvent_Example Let me know if it doesn't work. Thanks, Jitu |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Remove an application without "uninstall/Remove" option | anushya | Windows | 8 | 12-10-2008 06:32 PM |
| Filling "Date Creation" field with the current day | Lokesh M | Test Director | 1 | 02-27-2008 08:39 AM |
| does anybody explain the "novus testing framework?" | pputturi | Testing Frameworks | 2 | 02-20-2008 02:30 AM |
| "like" keyword in oracle.. | psuresh1982 | Oracle | 5 | 12-22-2006 10:19 AM |
| McAfee launches "TOTAL PROTECTION" Beta | Lokesh M | Geeks Lounge | 0 | 06-22-2006 08:44 AM |