web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Unable to scrap the te...
Power Automate
Unanswered

Unable to scrap the text of a combobox element for a Desktop app

(0) ShareShare
ReportReport
Posted on by 12
 
Hi All,

 

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!!

I have the same question (0)
  • OkanMTL Profile Picture
    703 Super User 2024 Season 1 on at

    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. 

     

  • PChow Profile Picture
    12 on at

    Here is the selector tree:-

     

    pane[Class="ScrollViewer"] > custom[Class="NominalLedgerBasicItemsControl"] > custom[Class="NominalLedgerBasicItemControl"] > custom[Class="NominalAccountControl"] > combobox[Class="ComboBox"][Id="_apiCodeComboBox"]:eq(2)

     

     

     

    PChow_1-1679175433204.png

     

     

    And I was unable to extract the value from the combo box using ( Ctrl+C ) .

    pic4.png
    pic1.png
    pic3.png
  • PChow Profile Picture
    12 on at

    PChow_0-1679175214728.png

    Selector Tree

  • Aakashch_1998 Profile Picture
    40 on at

    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 

     

  • PChow Profile Picture
    12 on at

    @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.

  • Aakashch_1998 Profile Picture
    40 on at

    Hi @PChow 

    Try Get details of Window action and try all option available in Window Property.

    Aakashch_1998_0-1679328865820.png

     

     

    Thanks
    @Aakashch_1998 

  • PChow Profile Picture
    12 on at

    @Aakashch_1998 

    I tried using Get Window Title and Get Window Text both property. but didn't get the text.

  • PChow Profile Picture
    12 on at

    PChow_0-1679344656522.png

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 481

#2
11manish Profile Picture

11manish 278

#3
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

Last 30 days Overall leaderboard