How to click ona Tabitem

Sep 21, 2010 at 8:05 AM

I have an object of class Tabitem and I want to click on this Tabitem. This tab item is created when clicking on a TabControl and the name of the Tab item changes everytime Tabitem gets created. For instance , New Folder (1), then New Folder (2) and so on. How do I verify the Tab item is created and then click on it, Thanks.

Sep 21, 2010 at 8:11 AM

what about

tabcontrol.SelectTabPage(index);

 

 

Sep 21, 2010 at 1:51 PM

I have tried tabcontrol.selectTabPage(index) but it does not work. It seems like i have to click on an + icon before i select the pagetab. Any other suggestions will be appreciated. Thanks.