Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Select SAPGUITab
#6
Not Solved
Try the below code. This is just a sample code, modify as per your need.

Code:
strAllItems=SAPGuiSession("micClass:=SAPGuiSession").SAPGuiWindow("micClass:=SAPGuiWindow").SAPGuiTabStrip("micClass:=SAPGuiTabStrip","name:=TAXI_TABSTRIP_OVERVIEW").GetROProperty("allitems") '//Just update the tabe name here
arrTabsName=Split(strAllItems,";")' split and get tabs name in array
'iterate through all tabs
For i=0 to Ubound(arrTabsName)
  If Instr(arrTabsName(i),"<Part of tab name which is fixed")>0Then
        SAPGuiSession("micClass:=SAPGuiSession").SAPGuiWindow("micClass:=SAPGuiWindow").SAPGuiTabStrip("micClass:=SAPGuiTabStrip","name:=TAXI_TABSTRIP_OVERVIEW").Select arrTabsName(i)
        Exit For
    End If
Next

Regards,
Ankesh
Reply


Messages In This Thread
Select SAPGUITab - by manishnangalia - 10-17-2012, 05:50 PM
RE: Select SAPGUITab - by Ankesh - 10-17-2012, 06:57 PM
RE: Select SAPGUITab - by manishnangalia - 10-18-2012, 11:37 AM
RE: Select SAPGUITab - by Ankesh - 10-22-2012, 12:34 PM
RE: Select SAPGUITab - by manishnangalia - 10-22-2012, 07:39 PM
RE: Select SAPGUITab - by Ankesh - 10-23-2012, 02:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)