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

1) How will you associate SOR in Runtime? ( u had written 10
lines of code from 11th line u want associate what code u
will write)
2) How will close n number of browser expect only one which
is has to test? ( First tell me how will you identify how
many browser are opened ) what logic u will use?
3) In web Table u want to click on link ( Link Name Mohamed
) you dont know in which row and column that link is there.
how wil u identify and click on that link.

Answer Posted / prathyusha

We can go for descriptive programming to get the collection of browsers.

set obrowser=description.create
obrowser.add "micclass","Browser"
set obrowsercol=Desktop.childobjects(obrowser)
msgbox obrowsercol.count

from this we can get to know howmany browsers are opened.

if you don't want to close particular browser we can get the name of the browser using getroproperty("name") then we can match that browser with expected one then we can close remaining browsers.
set obrowser=description.create
obrowser.add "micclass","Browser"
set obrowsercol=Desktop.childobjects(obrowser)
for i=0 to obrowsercol.count-1
browsername=browser.getroproperty("name")
if browsername <> "Google" then
obrowsercol(i).close
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

What is data driver in qtp? Where we use it?

961


Can we record using all the modes in a single script? Explanation with example is appreciated

1795


Are Shared ORs read-only?

1007


i have asked earlier only one question how to test web application using QTp plz send me the answer quickly

2080


please post the interview questions for QA position in FACTSET

4391


How you can replace string in qtp?

1005


who QTP recognizes the object stored in object repository?

2036


A FORM CONTAINS 5 FIELDS. 1 FIELD IS ENABLED REMAINING(4) FIELDS DISABLED. MY QUESTION IS ENTER VALUES INTO 1 FIELD AFTER THAT CLICK TAB BUTTON THEN 2 FIELD ENABLE THIS PROCESS CONTINUE UPTO 5TH FIELD. HOW TO WRITE CODE IN DESCRIPTIVE PROGRAMMING. PLZ TELL ME THE PROCEDURE AND CODE FOR IT.

1670


When Recovery scenario actually starts while testing the application?

1971


What is an expert view and keyword view?

1053


How to connect to a database?

1064


Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..

1720


What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?

977


How you can decide which type of object repository you have to use?

1107


i can done the project with QTP in that time i can say how many members in my team size?

1867