Posts: 24
Threads: 11
Joined: Jan 2012
Reputation:
0
01-21-2012, 01:40 PM
hi good day,
Recently i faced this question in itc,
multiple browsers are opened from the same browser and the same website,
and he wants to close a browser which he opened first.., and he asked me to write the script for the same.. pls post the script, i am a begginer,
Thanks
Rajesh
Posts: 24
Threads: 11
Joined: Jan 2012
Reputation:
0
01-23-2012, 08:01 AM
Thank you raj..
if want to close the 3rd browser which he opened means
Browser("creation time:=2").close
thats it know? correct me if i was wrong..
creation time means just we have to mention the number?
i thought that to input time like hh:mm:ss
please clear my doubghts
Thank you
Raj
Posts: 42
Threads: 6
Joined: Oct 2011
Reputation:
0
01-24-2012, 06:15 PM
Hi
You need not add any hours or minutes. QTP recognizes the windows by assigning the 'Creation Time' property a value based on the number of windows opened.
Just start with 0 for the first window and go on till how many windows you have.
Hope this clarifies
Posts: 24
Threads: 11
Joined: Jan 2012
Reputation:
0
01-24-2012, 11:27 PM
yes my doubght was clarified //
thank you very much