Micro Focus QTP (UFT) Forums
Extra browser window open during parameterization - 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: Extra browser window open during parameterization (/Thread-Extra-browser-window-open-during-parameterization)



Extra browser window open during parameterization - vadivelan - 01-23-2008

I'm new to QTP. For past week, we installed QTP in our office and implemented in project we mainly doing web application so guys please resolve my issue whatever i posted in this forum even if i post some silly question also please answer and help me.


Today i faced one problem that i doing parameterization testing today..

Code:
SystemUtil.Run "C:\Program Files\Internet Explorer\IEXPLORE.EXE","","C:\Documents and Settings\Administrator","open"
Browser("Gmail").Page("Page").Sync
Browser("Gmail").Navigate "http://www.gmail.com"
Browser("gmail").Page("gmail").WebEdit("username").Set DataTable("Username", dtGlobalSheet)
Browser("gmail").Page("gmail").WebEdit("pwd").Set DataTable("Password", dtGlobalSheet)
Browser("gmail").Page("gmail").Image("image").Click 25,10

I changed the Browser name as Gmail instead of my project name and during data driven i prepared data in two columns and two rows. During first iteration one window open and start operation and successfully finished then this window remain there and one more window open but process can't take place, it simple shown as blank page and second iteration start in the first window itself.

The unwanted one IE window open. My question is how to remove the extra IE window?

Velan


RE: Extra browser window open during parameterization - Ankur - 01-23-2008

if you record the closing event of your app...it should give something like this

Browser("XXXX").Close

Use this before starting a new iteration.