in QTP,how to write a descriptive program for "yahoo"
or "gmail" Login page



in QTP,how to write a descriptive program for "yahoo" or "gmail" Login page..

Answer / thirumala reddy

Writing the script using object properties and execute teh script without using object repository is called Descriptive program

plz check this descriptive program for gmail
first you have to take unique properties of objects using object spy and write DP

Browser("name:=Gmail: Email from Google").Page("title:=Gmail: Email from Google").WebEdit("name:=Email").set "enter email address"
Browser("name:=Gmail: Email from Google").Page("title:=Gmail: Email from Google").WebEdit("name:=Passwd").Setsecure crypt.Encrypt("enter password")
Browser("name:=Gmail: Email from Google").Page("title:=Gmail: Email from Google").WebButton("name:=Sign in").Click

Is This Answer Correct ?    12 Yes 3 No

Post New Answer

More QTP Interview Questions

Did you use flatfiles in your projects?At what situation you used it?How can you upload flatfiles?

1 Answers  


We have 10 page.In first page we 2 popup and next page we 3 popup window......(windows name is different)how can we handle the all the popups without using recovery scenario

3 Answers   IBM,


If there are 10 notepads opened on desktop. how can we close a particular 2nd notepad using script

3 Answers  


I have a WebEdit Object.It is added in object repository.It has two properties Name and Index.In the next release the Name Property is same but the index property is changed.when i run the script will the script Pass or Fail

9 Answers   ADP,


In a web application , there is a table of rows and coloums , i want to pickup the 1st row and 3rd coloums name (not data)how can any one explain

5 Answers   Polaris,






what is life cycle of automation testing ?

7 Answers   HealthAsyst,


How do you compare the structure of 2 tables in database and check whether they are similar using qtp.

0 Answers  


Anybody plz give, How do you test aframe in a web page? If page cotain text message or Images, tables?

0 Answers  


What is quicktest professional?

0 Answers  


What is the difference between Recover Scenario(screen) and on Error Resume Next(code)

4 Answers  


How do you move objects from local object repository to shared object repository???What are methods?

1 Answers  


Explain about merging of two repositories?

3 Answers  


Categories