I am using a Desktop App which has a ComboBox field. When I try to extract the selected value for this Combobox I am getting a blank output.
I have tried using the below available actions.
1. Get details of a UI Element in window with Attribute name set to 'owntext'
2. Extract data from Window
But both returning output as empty string.
3. Extract Data with OCR using Subregion.
But in the above case, I got the output as 6%120 Employers National Insurance where the actual value is 690120 Employers National Insurance.
Any help around this will be much appreciated. Thanks in advance!!
@Aakashch_1998, @OkanAT
I extracted the text from this dropdown menu. But for this, I need to click on the combo box and then the dropdown menu will open.
Sometimes after clicking the combo box, the dropdown was opened but when trying to get the text from the dropdown using 'Get UI element details in window', the dropdown was closed automatically for which the text could not be extracted.
If the dropdown is open, I should be able to extract the text from the dropdown.
tree locator of the dropdown item:-
> window[Class="Window"][Name="Create Payroll Journal"] > pane[Class="ScrollViewer"] > custom[Class="NominalLedgerBasicItemsControl"] > custom[Class="NominalLedgerBasicItemControl"] > custom[Class="NominalAccountControl"] > combobox[Class="ComboBox"][Id="_apiCodeComboBox"] > listitem[Class="ListBoxItem"][Name="Thesaurus.UK.BrightPay.Data.JournalService.JournalServiceNominalAccount"][Selected="True"][Visible="True"] > text[Class="TextBlock"][Visible="True"]
I tried using Get Window Title and Get Window Text both property. but didn't get the text.
Hi @PChow
Try Get details of Window action and try all option available in Window Property.
Thanks
@Aakashch_1998
@Aakashch_1998 I tried using Get details of a UI Element in window with Attribute name set to 'Name'. But it's not working, not able to extract the text.
Hi @PChow
Try using Get details of a UI Element in window with Attribute name set to 'Name'
Name Attribute is not available in Dropdwon , you can simply Backspace Own Text and Write 'Name' there
Let us know whether its working or not
Thanks
@Aakashch_1998
Selector Tree
Here is the selector tree:-
pane[Class="ScrollViewer"] > custom[Class="NominalLedgerBasicItemsControl"] > custom[Class="NominalLedgerBasicItemControl"] > custom[Class="NominalAccountControl"] > combobox[Class="ComboBox"][Id="_apiCodeComboBox"]:eq(2)
And I was unable to extract the value from the combo box using ( Ctrl+C ) .
Hi,
Can you show us your Selector/SelectorTree?
As an alternative, you can click once on the combobox (to open the multiple values), then use KeyBoard Activies to scroll down (down/up keys or Tab). And then u can send a key Ctrl+C to copy.
eetuRobo
18
Super User 2025 Season 1
stampcoin
6
John_Mavridis
6
Microsoft Employee