Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Close browser code not working
#1
Not Solved
Hello All,

I am using the following code to close all the browsers.

Code:
While Browser("creationtime:=0").Exist(0)
'Close the browser
Browser("creationtime:=0").Close
Wend

I am getting "object is disabled" error when the line Browser("creationtime:=0").close is executed.

As a results UFT seems to go to a paused state for a while and then execution continues.

Environment:
Windows 7
UFT 11.53
IE8

Please help
Reply
#2
Not Solved
Use Browser("micclass:=Browser").Close statement to close the browser
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Maximize and Close a Browser mv8167 4 15,993 03-26-2023, 03:55 PM
Last Post: Mike B
Question Cross Browser Sync Not Working geodude 0 1,842 04-07-2017, 08:43 AM
Last Post: geodude
  Close popup ad windows dustwynn 1 2,745 10-25-2016, 05:57 PM
Last Post: Ankur
  [UFT] Close opened folder robertosalemi 1 3,143 02-10-2016, 07:06 PM
Last Post: robertosalemi
  Webfile.set is not working in QTP 11 for chrome browser version 24 pradeep singh 1 4,883 11-05-2014, 11:51 AM
Last Post: mansoor.s.shaikh

Forum Jump:


Users browsing this thread: 1 Guest(s)