
@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"]