How to work with multiple browsers when opened in the window,
write the script for it
Answer Posted / nilanjan saha
Hi all,
We can handle the Multiple Browsers with the Creation Time
property of the Browser.
For the Browser we have Creation Time ordinal identifier.
First browser that opened after opening QTP by default gets
Creation Time:=0, next populates with 1,2 and so on...
We can also manipulate this value from Test Object property
window.
e.g:
Let 3 separate browsers are open. To work on the 2nd one we
can come up with following code:
Browser("CreationTime:=1").page("micclass:=page").Image("micclas:=Image","alt:=Continue
to Login").Click
wait(2)
Browser("CreationTime:=1").close
Please let me know if you found anything I missed.
Regards,
Nilanjan
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??
What are the different types of recording modes in qtp? Which will be used when?
.have you ever written compiled module? if yes , tell me about some of the function that you wrote.
please give me the code for doing retesting of gmail login page using functions so the function has to give the value
what is error and fault in terms of software quality?
Explain process of smart Identification in QTP?
Will down time for server and content maintenance/upgrades be allowed? how much?
Discuss quicktest professional (qtp) environment?
Generic function to search for the unique link in webtable and click on it
How to creating an output value using quicktest professional (qtp)?
Give the syntax to load function at run time.
Which environments does qtp support?
How to Open FireFox using descriptive programing? If my question is not clear, i will give an Example To Open Internet Explorer, We use Set IE = CreateObject(InternetExplorer.Application) IE.Navigate "www.yahoo.com In the same i need to open yahoo.com in firefox. Can any one tell me what is the server name of firefox to create an object
Can anyone pls tell me how to do action parameterization (input and output parameters) with respect to login window and insert order of flight reservation window in detail( pls give a clear step by step explanation with example) anyone please. Will be very thankful to u
What does it mean when a check point is in red color? What do you do?