In QTP while recording it generates a VBScript. The steps are as follows: