Key and its value pair in desktop application Ui

I am working on a desktop application. I am having excel which contains number of keys and its values(key-value pairs)

I want to find the whether that key-value pairs is present in desktop application.

Do we have any function which helps to compare these and return yes present or not?

Based on the availability my test case should be failed.

@Ragul_sharma,

Share some sample input and output to understand the situation.

Thanks,
Ashok :slightly_smiling_face:

Hi @Ragul_sharma ,

As mentioned in your previous post, plz share a screenshot or rough explanation of your desktop app and how the values are present in your app.

Thanks and Regards,
gRao

This is my UI actually looks
image
parameter is key and Value is value. In excel I’m having two columns as above parameter and value columns. I want to compare whether the excel data is present in this UI.

Hi @Ragul_sharma ,

Have you tried Extract Table Data/ Table Extraction?

Case 1:

If Extract Table Data/ Table Extraction worked then from table data you can search/filter/apply LINQ to check

Case 2:

If that did not work try to use get text activity to scrap the text and convert it to array by splitting it at newline(separator which you find after extracting the data).
Then you can search the key value pair from the array

Regards,
gRao

I can’t be able to get the data because it is not a table. So, I have to go with case2. can u share any example of case 2 or elaborate it.

Hi @Ragul_sharma ,

Let’s say I am scraping the UiDemo App using below and splitting the data at new line to convert it to array and search for any key and corresponding value
StrBdy.Split(Environment.NewLine.ToCharArray(), StringSplitOptions.RemoveEmptyEntries)

image

Then use Array.IndexOf(ArrKey,“SearchKeyValue”) to chk whether key/value exists.
Remember if not present then it will give -1
And note that once you find the key…the value is the next element.

Regards,
gRao