Understanding Browser methods,by opening multifarious Tabs of Browser in UFT

To understand the various common methods of Browser Object in UFT ,we will open 2 tabs in the same browser instance.
Scenario:- How we can open webpage in different Tabs of the same Browser.

Working with Browser

Solution:- We need to launch browser and open a webpage(say “”), within the same instance we’ll open another tab and re-direct to a different webpage say “”

For this we will learn and use the following methods of Browser object :- 

Browser object methods UFT
OpenNewTab:-Opens a new tab in the existing opened browser window. 

Navigate:- Redirects to given URL.

FullScreen:-Open the browser in Full-screen mode(F11).

Refresh:-Refreshs the opened page(Like F5).

DeleteCookies:-For deleting the cookies from the browser.

CloseAllTabs:-Close all the opened tab and also the browser instance.

Sync:-Wait for the browser for navigating to the opened URL Application.


'Open a new Browser using Util Object
SystemUtil.Run "iexplore.exe", ""
'Browser Sync
'Delete cookies from the Browser
'Refreshes the Opened Page
'Opening a new tab within the same browser
'Opening Browser in FullScreen mode
'Sync for new tab
'Navigate to perticular URL in the new tab
Browser("CreationTime:=1").Navigate ""
'Find total number of tabs in the browser window
iTabs = Browser("CreationTime:=0").GetROProperty("number of tabs")
msgbox iTabs 'Displays the value 2
'Close all the tabs in the browser window

Working with Browser commands in Selenium

3 replies on “Understanding Browser methods,by opening multifarious Tabs of Browser in UFT”

Leave a Reply

Your email address will not be published. Required fields are marked *