by using creation creation time we have to close the browsers - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: by using creation creation time we have to close the browsers (/Thread-by-using-creation-creation-time-we-have-to-close-the-browsers) |
by using creation creation time we have to close the browsers - mrajeshtnl - 01-21-2012 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 RE: by using creation creation time we have to close the browsers - rajpes - 01-22-2012 Code: Browser("creationtime:=0").close RE: by using creation creation time we have to close the browsers - mrajeshtnl - 01-23-2012 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 RE: by using creation creation time we have to close the browsers - anil2u - 01-24-2012 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 RE: by using creation creation time we have to close the browsers - mrajeshtnl - 01-24-2012 yes my doubght was clarified // thank you very much |