Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
by using creation creation time we have to close the browsers
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
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
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Code:
Browser("creationtime:=0").close
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
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
Reply
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
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
Reply
#5
Solved: 11 Years, 3 Months, 4 Weeks ago
yes my doubght was clarified //
thank you very much
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Maximize and Close a Browser mv8167 4 16,662 03-26-2023, 03:55 PM
Last Post: Mike B
  Close popup ad windows dustwynn 1 2,961 10-25-2016, 05:57 PM
Last Post: Ankur
  [UFT] Close opened folder robertosalemi 1 3,353 02-10-2016, 07:06 PM
Last Post: robertosalemi
  UFT 12.02 GUITest creation Issue AMajumdar 1 2,278 09-13-2015, 01:24 AM
Last Post: ADITI1992
Sad Validate New Employee Creation hello_sanjay 0 1,907 04-07-2015, 06:16 PM
Last Post: hello_sanjay

Forum Jump:


Users browsing this thread: 3 Guest(s)