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

using descriptive programming how to close all opend browsers?

7 Answers   Satyam,


I am trying to write a descriptive program for clicking on a perticular link.For that i wanted an index or location of that object.But when I viewing through spy, There was no index property of that object.What to do for getting index value.How can I get index? please any one let me know.

5 Answers  


Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..

1 Answers  


What is the exact difference bet function and action in QTP Anybody can explain it in detail..Thanks in advance..

12 Answers   Wipro,


Differenece betwen Project and product ? when company need project or product?

4 Answers   Accenture,






What is the differnce between action & script

2 Answers   Lehman Brothers,


What are the parameters provided by QTP?

3 Answers   Ordain Solutions,


1) 100 test boxes there in application. how to click 100 test boxes using vb script? 2) 100 objects there in web page,how we will store that 100 objects repostries?

3 Answers   ANZ,


Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you

0 Answers  


how you will do cookie testing using QTP?

2 Answers  


There are 4 webpages in an application, in third page there is one cancel button i want to click that cancel button only, how can I click that cancel buttton ?

4 Answers   Wipro,


Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers

0 Answers  


Categories