Closing Tabs

Ask general questions here.
Posts: 1
Joined: Tue Apr 13, 2010 7:31 am

Closing Tabs

Post by chow » Tue Apr 13, 2010 7:35 am


i am trying to automate windows application. in process i will open lot of tabs in application.(Ranorex.Tabpage).i want close all the tabs opened.

Please provide me the solution for this


User avatar
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Closing Tabs

Post by Ciege » Tue Apr 13, 2010 4:27 pm

If you can search your AUT for each tab page opened or if you already have a list to each tab page opened you can traverse that list and send a tabpage.close.
Use a foreach loop to go through each tab page and close it. But you need to know what is opened or be able to search the AUT for what is opened.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!