- 
	
	
		
			
			
				Expert Member
			
			
			
			
				
					
						  
 
					    
				 
 
			
				
				
				
					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
 
 
 
 
 
 
 
 
 
- 
	
	
		
			
			
				Junior Member
			
			
			
			
				
					
						  
 
					    
				 
 
			
				
				
				
					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
				Posting Permissions
			
			
				
	
		- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-  
Forum Rules