Write Descriptiv prg 4 login
logn....txt bx
password---txt bx
ok---btn

Answers were Sorted based on User's Feedback



Write Descriptiv prg 4 login logn....txt bx password---txt bx ok---btn..

Answer / suresh.testing

In order to develop this script we should know the test
object descriptive properties & values (By using objectspy)

Ex:Static Descriptive program for login page(Banking
application)


Browser("name:=usRanfordbank").Page("title:=Ranfordbank").WebEdit("html
id:=txtuid").Set "Admin"

Browser("name:=usRanfordbank").Page("title:=Ranfordbank").WebEdit("html
id:=txtpwd").Set "suresh"

Browser("name:=usRanfordbank").Page("title:=Ranfordbank").Image("html
id:=login").Click

------------------------------------------------------------Ex:
Dynamic Descriptive program for login page (banking application

set br=description.create
br("name").value="usRanfordbank"

set pg=description.create
pg("title").value="usRanfordbank"

set uid=description.create
uid("html id").value="txtuid"

set pwd=description.create
pwd("html id").value="txtpwd"

set img=description.create
img("html id").value="login"

Browser(br).Page(pg).WebEdit(uid).Set "Admin"

Browser(br).Page(pg).WebEdit(pwd).Set "suresh"

Browser(br).Page(pg).Image(img).Click

Is This Answer Correct ?    9 Yes 1 No

Write Descriptiv prg 4 login logn....txt bx password---txt bx ok---btn..

Answer / sirisha

//Dynamic Representation of Descriptive progrmming for Gmail
Login Page//

Dim ObjBr,ObjPg,ObjLogin,ObjPword,ObjOk
Set ObjBr=description.create
ObjBr("name").Value="Gmail:Email from Google"
Set ObjPg=Description.create
ObjPg("Title").value="Gmail:Email from Google"
Set Objlogin=Description.create
objlogin("name").Value="Email"
Set ObjPword=Description.create
ObjPword("name").value="Password"
Set ObjOk=Description.create
ObjOk("name").value="Ok"
Browser(Objbr).Page(ObjPg).WebEdit(ObjLogin).Set"Sireesha"
Browser(Objbr).Page(ObjPg).WebEdit(ObjPword).Set "myname123"
Browser(Objbr).Page(ObjPg).WebButton(ObjOk).Click

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What is the synchronization point in qtp?

0 Answers  


how to get no.of non empty rows in a excel sheet through vb-script

2 Answers   HP,


suppose i opened 6browsers and i want re-open the 4browser what is code for this..pls help me..

2 Answers   Core Logic,


Can U Explain about QTP tool from older version to latest version also its differences?

0 Answers  


How to check feasibility of the appliction?in automation testing?

0 Answers   CTS,






if you have the same application screen with 7 drop down boxes and approximately 70 values how do you test with QTP?

2 Answers   Ordain Solutions,


How to customize qtp?

0 Answers  


Hello Everybody, Please tell me the concept of recovery management in QTP by giving any practical example of it. Thanks, Gaytri

7 Answers  


What are the three challenges U faced during automation testing of your application.

2 Answers   L&T,


Hello friends can anybody tell me about the architecture of QTP with diagram of it.this architecture is same for any domain like ERP/Banking/CRM/Healthcare or it's different then please tell me.thanks

4 Answers   Fidelity,


How many types of OBJECTS are there in QTP?

8 Answers   Intel, Inter Globe Technologies,


Hi Friends, Every one is posting the Answers for the existing questions.Try to post the questions that are asked in Recent Interviews.It will be useful to the other Job seekers.

1 Answers  


Categories