Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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? 

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is qtpro?

1065


If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?

1909


what is review

2159


What phases are involved in testing an application in qtp?

1018


How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks

2038


what the difference between shared repository and per action repository?

1063


I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You

2053


Explain about business process component? types and usage?

2070


How to find array size in qtp?

1028


Explain features of the latest version of qtp/ uft 12.1?

1072


what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent

1798


QTP script is not working on other's machine..

1997


How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?

1185


Can you list some technologies that support qtp?

984


How to use conditional loops in qtp ?

1067