adspace
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
Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?
hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com
How software tester can use constants and variables in scripts?
i need qtp tutorial. pls send it to sridhar.k151@g mail.com
Tell some commonly used Excel VBA functions?
what type of framework u r using in ur organization
any body can you help me what is the script to automate an comand promt
hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com
Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com
can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process
What is the new version of qtp which is recently released in the market?
how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me
can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?
what is actually contain test report? can anybody post the test report
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?