Make sure that QTP is open with a new test.
Record and open a Flight Reservation window. When Flight Reservation window is open, click on its title bar.
Click stop in order to stop recording.The recorded code looks like this below one:
Make it like this – delete lines 1 to 5 and modify the sixth line as shown below.
Now run the test.