Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 8QUwvawZehGeTXbC0+pqQu
Power Automate - Power Automate Desktop
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 15 Mar 2023 21:55:27 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!!

  • PChow Profile Picture
    12 on 20 Mar 2023 at 21:00:14
    Re: Unable to scrap the text of a combobox element for a Desktop app

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

  • PChow Profile Picture
    12 on 20 Mar 2023 at 20:35:36
    Re: Unable to scrap the text of a combobox element for a Desktop app

    @Aakashch_1998 

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

  • Aakashch_1998 Profile Picture
    40 on 20 Mar 2023 at 16:15:37
    Re: Unable to scrap the text of a combobox element for a Desktop app

    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 19 Mar 2023 at 18:11:16
    Re: Unable to scrap the text of a combobox element for a Desktop app

    @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 19 Mar 2023 at 14:07:02
    Re: Unable to scrap the text of a combobox element for a Desktop app

    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 18 Mar 2023 at 21:36:03
    Re: Unable to scrap the text of a combobox element for a Desktop app

    PChow_0-1679175214728.png

    Selector Tree

  • PChow Profile Picture
    12 on 18 Mar 2023 at 21:31:00
    Re: Unable to scrap the text of a combobox element for a Desktop app

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

  • OkanMTL Profile Picture
    703 Super User 2024 Season 1 on 16 Mar 2023 at 08:21:03
    Re: Unable to scrap the text of a combobox element for a Desktop app

    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. 

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 18 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 6

#2
John_Mavridis Profile Picture

John_Mavridis 6 Microsoft Employee

Overall leaderboard