Page 1 of 1

Closing Tabs

Posted: Tue Apr 13, 2010 7:35 am
by chow
Hi,

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

Thanks

Re: Closing Tabs

Posted: Tue Apr 13, 2010 4:27 pm
by Ciege
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.