Micro Focus QTP (UFT) Forums
error object disabled on line 9 where it says " Browser("Browser").CloseAllTabs" - 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: error object disabled on line 9 where it says " Browser("Browser").CloseAllTabs" (/Thread-error-object-disabled-on-line-9-where-it-says-Browser-Browser-CloseAllTabs)



error object disabled on line 9 where it says " Browser("Browser").CloseAllTabs" - kp_usa - 12-20-2012

Code:
Browser("Radiant Logic, Inc. |").Page("Radiant Logic, Inc. |").WebEdit("j_username").Set "cn=directory manager"
Browser("Radiant Logic, Inc. |").Page("Radiant Logic, Inc. |").WebEdit("j_password").SetSecure "50d2036e2763c27412f77d1ac4425f13720149bee6f41a79"
Browser("Radiant Logic, Inc. |").Page("Radiant Logic, Inc. |").WebButton("Login").Click
Browser("Radiant Logic, Inc. |").Page("Radiant Logic, Inc. |_2").Link("Tools").Click
Browser("Radiant Logic, Inc. |").Page("Radiant Logic, Inc. |_2").Image("Administration Console").Click
Browser("Browser").Page("Page").Sync
Browser("Browser").Navigate "http://w-rli11-qa1:7070/vdswebadmin/src/index.jsp"
Browser("Browser").Page("Web Admin Console").Sync
[b]Browser("Browser").CloseAllTabs[/b]Browser("Browser").Dialog("Message from webpage").WinButton("OK").Click
Browser("Radiant Logic, Inc. |").Page("Radiant Logic, Inc. |_2").Link("Logout").Click



RE: error object disabled on line 9 where it says " Browser("Browser").CloseAllTabs" - adityapant27 - 12-20-2012

There should be a .(dot) after close all tabs