Results 1 to 2 of 2

Thread: I get error "invalid call to function"...

  1. #1
    Expert Member
    Join Date
    Oct 2006
    Answers
    209

    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


  2. #2
    Junior Member
    Join Date
    Aug 2006
    Answers
    8

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact