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 the Difference between copy to action and call to action?

1125


hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company

1903


Output values? i want a practical example

1752


What are the differences between quicktest professional (qtp) and winrunner?

1053


in a web page How to check and display a particular word from a paragraph?

2477


Hi Samrat, Thank u very much, what u said it is right.

1880


What is reusable action?

1090


How to delete an object from the object repository?

1106


If created one virtual object? Next time I changed the window position will it work?

1039


Can any suggest me what is exposure testing?

1806


I have some real time based question.. 1.what are the challenges you have faced in your current project. 2.what are the bugs you found in your current project. 3.what are the strategies you follow to convert manual test cases into automation test cases. 4.how QTP identify two different browsers. 5. When you create a function library and share object repository what are the problems you have faced 6. How to solve the tool tip problem 7.what are the interesting bug you have found in your current project. 8.what is your daily work as a automation test engg. 9. how to create a weekly status report. 10. how many test cases you write,review and execute per day. 11.what are the uses of SQL in automation. 12.How to retrieve the data in html through vb script. 13.If application is very slow how to test the application in qtp.

4082


i have two questions for regular expression :- Q1. I have date pattern eg-29/11/2011 29-11-2011 29.11.2011 Que- if any separator is there between date,month and year pattern should match else it should not match eg- pattern should not match in case of 2911-2011 Q2. let say i have a string and there is a number in between of that string eg.-Amount 30002.234 successfully credited to your account . now i have to match this pattern in such a way that even if decimal is not there pattern should match ,how i will do this using regular expression

1462


What is the difference between shared and local object repository?

1114


For which type of projects the iterative model is not suitable?

1884


How do you configure QTP AND Test director?

1936