01-08-2013, 03:14 PM
Hi ,
First add the required object to the object repository.
Ex: If you want to automate 'Login' functionality of the GMAIL page.
1. Add 'Username' , 'password' textboxes and 'LogIn' button into the object repository.
2. Then in the expert view type (While typing itself QTP suggest you the added object)
Ex: Set the user name which u want"
Similary for the Password text box , then to'click the LOGIN button' ,
Like this you can write the code which you wanted , usually while developing script we wont used 'record and playback' , mostly people write thier own code than using the record and playback.
Thanks,
Harish SHenoy
First add the required object to the object repository.
Ex: If you want to automate 'Login' functionality of the GMAIL page.
1. Add 'Username' , 'password' textboxes and 'LogIn' button into the object repository.
2. Then in the expert view type (While typing itself QTP suggest you the added object)
Ex:
Code:
Browser("Name that is added").page("Page name").webedit("Username").set "
Similary for the Password text box , then to'click the LOGIN button' ,
Code:
Browser("Name that is added").page("Page name").webbutton("login").click
Like this you can write the code which you wanted , usually while developing script we wont used 'record and playback' , mostly people write thier own code than using the record and playback.
Thanks,
Harish SHenoy