Not able to define selector for SAP tabs

Hello Everyone,

I am trying to activate predefined tabs in SAP. if tab1 is alredy activated and my screen jumps to tab 2 directly then in that case i want to skip tab1 and move to next tab which is coming. But my flow is giving error ‘Selector not found’ for tab1. I have used element exists activity for identifying the tab and error description is as follows:

Type Into ‘CTextField Tax’: Cannot find the UI element corresponding to this selector:

image

tabpSP09 is the unique incremental number field. Please support to resolve the issue.

Thank you.

1 Like

@PURVA_KALE

Hello Purva,
via SAP GUI Scripting I would solve this problem on this way.

Set TabStrip = session.findById("wnd[0]/usr/tabsFUNC_TAB_STRIP")
Set Tabs = TabStrip.Children
For i = 0 To Tabs.Count - 1
  Set Tab = session.findById(Tabs.ElementAt(i).Id)
  If Tab.Children.Count > 0 Then
    MsgBox "Tab " & Tab.Name & " is open"
  End If
Next

I check if a tab has child elements. If so this is the open tab and I can use the next one.
I assume you can do the same procedure with UiPath and the activity Find Children with the scope FIND_DESCENDANTS. Unfortunately I don’t know how to use the Filter input XML string, otherwise I could try it.
Let us know your result.
Best regards
Stefan

HI @PURVA_KALE

I would suggest to use standard Select Item activity and just select the right tab.

I do not know exactly your use case, but with this approach you will ensure, that during automation you are always in the right tab and performing the right activities.

Best regards, Lev

1 Like

Hello Everyone,

I am trying to activate predefined tabs in SAP. if tab1 is alredy activated and my screen jumps to tab 2 directly then in that case i want to skip tab1 and move to next tab which is coming. But my flow is giving error ‘Selector not found’ for tab1. I have used element exists activity for identifying the tab and error description is as follows:

Type Into ‘CTextField Tax’: Cannot find the UI element corresponding to this selector:

image

tabpSP09 is the unique incremental number field. Please support to resolve the issue.

Thank you.
Purva

Hi @PURVA_KALE
try to use attach window based on window variable and set a condition as window variable =true means use close tab activity based on that you can do the same for SAP

Thanks
Ashwin S

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.

I am facing similar issue here, anyone has the solution yet?
Attaching window also does not work, the selector is constant but UiPath just cannot find the tab.

Hi Deny,

Please describe the exact use case. Give me an sample XAML, transaction and some screenshots.

In some cases TAB technical ids are changing, but I have not seen an single case, where we cannot automate it.

Best regards, Lev

Hi Lev,

Thanks for the response.
Highly appreciated.

I have created a thread about click tab in SAP (error : cannot find UI element), anybody who wants to know more.

Thank you.
Deny