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:
tabpSP09 is the unique incremental number field. Please support to resolve the issue.
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
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.
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:
tabpSP09 is the unique incremental number field. Please support to resolve the issue.
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
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.