for example u can take ebay or plifcart online shoping web application--------- write acode in vbscript in qtp---- search box and write (iphone6)and click on go button then opened diff prise iphones in next page but u can select 30,000 to 90,000 list pls write code? 

Answers were Sorted based on User's Feedback



for example u can take ebay or plifcart online shoping web application--------- write acode in vbscr..

Answer / usha

systemutil.run "www.flipkart.com"

Browser("name:=Online Shopping India M.*").page("title:=Online Shopping India M.*").webedit("html tag:=INPUT","name:=q").Set "iphone 6"
Browser("name:=Online Shopping India M.*").page("title:=Online Shopping India M.*").webbutton("html tag:=INPUT","name:=Search").click

Set d = description.Create()
d("micclass").value="WebCheckBox"
d("class").value="facetoption"
d("type").value="checkbox"
d("html tag").value="INPUT"

set b=Browser("name:=Mobiles & Accessories.*").page("title:=Mobiles & Accessories.*").ChildObjects(d)
'print b.count

For i = 0 to b.count-1

av= b(i).getroproperty("value")

If av= "facets.price_range%5B%5D=Rs.+35001+and+Above"Then

b(i).set "ON"
Exit for

End If

Next

Is This Answer Correct ?    0 Yes 0 No

for example u can take ebay or plifcart online shoping web application--------- write acode in vbscr..

Answer / a thirupathi

yes defiantly will buy the 30000 or > 30000 below apple will by because online shopping will give more benefit as well as less taxable....

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

What is the need and applications of learning VB script for a automation(QTP) engineer ain Realtime ?

1 Answers  


write a function to read the items from Combobox of Flight Reservation application and save in excel.

5 Answers  


hi,which is the best book to refer QTP 9.2 and Faq's.

2 Answers  


A web Page has a webtable with four columns and four rows. The first column is of ID and has values of 100,100A,A100,100y Find out the number of rows whose ID starts with 100. Similarly the last column is 'number of links'. Each row in the last column has values like link1,link2,link3 etc Find out the number of links where id is 100

1 Answers   Virtusa,


What is difference between web object and web items

2 Answers   Patni,






What are the challenges do we face while testing webbased applcations using the automation tool QTP or any?

1 Answers  


where the check points are stored ?

3 Answers   IBM,


I recorded a Web based Application running on JAVA and when I went to play them back a week later they didn't run. I noticed that the Browser was putting in a (Underscore and a Number) for each line so i re-recorded and noticed the Underscore line wasn't the same as what i recorded last week so any script I record today will not work next week because the browser settings or how QTP recognizes it keeps changing. This is the new line Browser("Bureau of Labor Statistics_4").Page("Bureau of Labor Statistics").JavaApplet("SurveyApplet").JavaList ("Select an Area").Select "U.S. city average" This is the old line 'Browser("Bureau of Labor Statistics_3").Page("Bureau of Labor Statistics").JavaApplet("SurveyApplet").JavaList ("Select an Area").Select "U.S. city average" Notice the Burearu of Labor Statistics_3 adn Burearu of Labor Statistics_4. Why does it change and how do I prevent it from changing.

5 Answers  


what are the settings to be done to make the recovery scenario created for one test to be used bye all the other tests. please tell me recovery scenario process in detail.

1 Answers  


Any one please tell me how to create framework in QTP (in detail). Is there any website for reference?

1 Answers  


Analyzing the Checkpoint results ?

1 Answers   Crea,


in order to start automation testing what we should require (entry level to automation testing)

2 Answers  


Categories