Use GetText to Retrieve the Displayed Text from the Excel Ribbon - not retrieving full text

Hello,

I am trying to utilize a GetText activity (within a Use Excel File - modern activities scenario), wanting to grab all the text from an area in the Excel Ribbon (this is a custom add-on Ribbon tab we use), to confirm the text present is appropriate. I want to make sure these 3 rows of data are appropriate or I will need to log out / log back in with the appropriate details

The text I am trying to grab is in the rectangular square within the Red Box in the below screenshot.

The red box is UiPath’s interpretation of the Selector I am trying to read, which I agree with.

The code snippet UiPath is recognizing is the below:

wnd app=‘excel.exe’ cls=‘XLMAIN’ title=‘* - Excel’ /
uia cls=‘MsoCommandBar’ helpText=‘Ribbon toolbar’ /
uia cls=‘NetUIOrderedGroup’ name=‘AP Invoice Wizard’ /
uia cls=‘NetUIChunk’ name=‘Login Info’ />

However, within the GetText activity when I try to assign the found text to a string variable in either of the “Text” and “Words info” fields - UiPath says the results (when logging the text) are either the following:

“Login Info” (Text field) or
System.Collections.Generic.List`1[UiPath.UIAutomationNext.Activities.Models.NWordInfo] (Words info)

I imagined I would see something like " @E3 NVOICE ENTRY ROBOT US EN Login Info", not just the words “Login Info” or the undecipherable “System.Collections.Generic.List” value.

Why is it only bringing back the “Login Info” value and not the 3 rows of text up above? When identifying the specific selector I am trying to read from, I can’t choose a more precise area than just the Red Rectangular box around the “Login Info” section of the Ribbon - I figured it would include all of the text in that area on top of the Login Info words.

What am I doing wrong to not read back this information? Perhaps there is a better way to grab that text from the Excel ribbon than using the “Get Text” activity?

Thanks for your help!