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...


This is Ajay i have few douts if anybody know pls give me
reply.

1. i have opend 2 gmails i am working with 1 gmail i want
to close other gmail by usig script.

2.i have 10 links in a page all of them have same
properties& names i want to click on 5link by using script.

3.i have one combobox in that i want to see all the
citynames in the combobox and i have to check weather
hyderabad is present or not.

4. size of objectrepository.
5.what r problems we get during writing the script.
6.is it possible to compare to excel sheets in qtp if
possible wht is the script.
7.example for lowlevelrecording

Answer Posted / amarendra kothuru

Small change in Answer for third question

3).i have one combobox in that i want to see all the
citynames in the combobox and i have to check weather
hyderabad is present or not.
Ans: The below code that will verify whether the Item exist
in the combobox or not. i.e. the given city Hyderabad exist
in the CityList combobox or not.

CityName = "Hyderabad"
Result = 0
all_items = Browser("Cities").Page("Cities").WebList
("CityList").GetROProperty("all items")
For Each aitem In all_items
If aitem = CityName Then
Reporter.ReportEvent micPass, "City is
Found
in the List", "Passed"
Result = 1
Exit For
End If
Next
If Result = 0 Then
Reporter.ReportEvent micFail, "City is not Found in
the
List", "Failed"
End If

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to idetfy which test cases are automated?who will deside that plz tell me

1959


How will you handle java tree in qtp?

1046


What is regular expression?

1001


What is the process of synchronizing qtp and aut?

978


can u please explain what is the exact difference between qtp8.2 and 9.0

2128


What are the different types of checkpoints?

998


Analyzing the checpoint results?

982


How to use checkpoints in qtp ?

958


On the website, the protocol has been changed https: to https what you will do? Tell me your approach?

950


Is it possible to switch between recording modes during a test creation?

990


For QTP Test Engineer, What is his contribution to the Project? Means, As as automation test engineer what is his role in the current project?

2212


How software automation specialist enter steps in the Expert View?

2079


what is the difference btn risks & Therads in the Test plan documentation?

2068


wht type of User defined functions or Java Releated functions do we write in VB scripting

2187


What is the use of an object spy tool in qtp?

955