write vbscript on veb applications in qtp with exapmles?



write vbscript on veb applications in qtp with exapmles?..

Answer / nanda

Do u want simple script....

For Login ....

browser("XXXX").page("XXXX").webedit("hgshad").set "hdsfajf"
browser("XXXX").page("XXXX").webedit("dsadsagd").set "dlskajdl"
browser("XXXX").page("XXXX").webImage("dasada").click

to count No. Of Links in WebPage..

set objlink = description.create
objlink('html tag").value = "A"

set n = browser("XXXX").page("XXXX").childobjects(objlink)

c = n.count

msgbox c

like this we write script for testing web applications..
these are the sample scripts only...

If any queries..
nanda.dreddy@gmail.com

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What are different types of frame works ?

3 Answers  


anybody give me the real time example for descriptive programming of web application

7 Answers  


str="ramanareddy12345@gmail.com"to count alphabets,numarics and special charcters pls any one knows send to answer

3 Answers   Ziynx,


How to create Userdefined Function.Please write the steps ans also provide example where exatcly we use it.

1 Answers   HP,


who is developed QTP ? is it from Mecury or HP

2 Answers  






w is recovery senario manager

3 Answers   Infosys,


How to use parameterization in qtp?

0 Answers  


How to find the path of folder in which the test is saved in qtp?

0 Answers  


What is the difference between local and shared object repository in qtp?

0 Answers  


Why we load add-ins in qtp?

0 Answers  


If u don't have any Knowledge on perticular application but they give that application to u for Testing ? Then How we wil move towards testing on that application?

16 Answers   Genpact, HP,


where the check points are stored ?

3 Answers   IBM,


Categories