Micro Focus QTP (UFT) Forums

Full Version: error object disabled on line 9 where it says " Browser("Browser").CloseAllTabs"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
There should be a .(dot) after close all tabs