Quality is delighting customers
Fire Event is Basically used when we want to trigger any specific event on an object
below is the list of Valid events
Many Time Object not respond on standard way of triggering
Here i wan to double click on the given Web Button but there is not standard way to doubleclick the web button and neither simple click works
So here we need to use FireEvent method as below
This is my favourite interview question :).
QTP executes test scripts in two ways.
1. Event Operations
2. Mouse & Keyboard operations
By default QTP goes #1 but sometimes applications required physical movement of mouse (bcz developers made code like that) so #1 wont work, you need #2. For #2 you can use FireEvent method of object.
You can also replace #1 using Setting.WebReplay package value to 2 but it slower your execution speed. Hope this gives better picture.