Why Won't the FireEvent Work?
While using QTP’s click method on a search WebElement earlier today, I had an issue with a WebTable’s populate event not being triggered as it should have. If you ever experience a similar problem with your application (not performing an expected action after a certain event occurs), don’t give up – and be sure to try the FireEvent method.
What is the FireEvent Description:
The FireEvent method is designed to trigger events in an application.
QTP FireEvent Syntax:
The Syntax for the FireEvent is:
Valid FireEvent Events:
The events available when using the FireEvents method are:
How to use the FireEvent Video Example:
Let’s take a look at the FireEvent in action in a real-world example:
The click method below was not working:
Set mainPath = browser("CB").Page("CB") mainPath.WebElement("Search").Click
…but using the FireEvent did work:
Drop me a line and let me know if you find this tip helpful!
Know FireEvent Issue
If you're trying to use the FireEvent’s dblclick option on a WebElement but it's not working against Chrome or Firefox check out
QTP – Fix for FireEvent Issue in Google Chrome and FireFox Browsers