‎2019 Sep 13 10:19 AM
Hi all,
I am able to connect to SAP WinGUI and search all the objects. This is in c#.
The only thing that doesn't work is to loop through the tabs. I get an SAP error, when I have Selected a Tab.
My code is the following (for now).
What am I doing wrong here?
GuiTabStrip objGuiTabStrip = (node as GuiTabStrip);
for (int i = 0; i < intNumberOfTabs; i++)
{
string strTab = objGuiTabStrip.Children.Item(i).Id.ToString(); // --> here the errors drops in the second iteration
string strTabType = objGuiTabStrip.FindById(strTab).Type.ToString();
GuiTab objGuiTab = (GuiTab)objGuiTabStrip.FindById(strTab);
string strGuiTab = objGuiTab.Text;
GuiTab blabla = (GuiTab)session.FindById(strTab);
blabla.Select();
Console.WriteLine(strTab + " - " + strTabType + " - " + strGuiTab);
}