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
How to interact tool & application build in QTP?
How many ways we can parameterize data in quicktest professional (qtp)?
How many types of recording facility are available in quicktest professional?
How to handle the exceptions using recovery secnario manager in quicktest professional?
Explain data driven framework?
What are the technologies supported by qtp?
What is the latest version of qtp?
Explain the qtp test phases.
hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.
What are the properties you would use for identifying a browser and page when using descriptive programming?
how will load the object during runtime?
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?
Explain in brief about the qtp automation object model (aom).
Is it possible to call from one action to another action in qtp?
Where is the Bitmap checkpoint information stored?