Test Automation Framework : How to verify if a table contains all the mandatory fields or not?

Hi Community,

I’m working on Salesforce application to automate the test cases using UiPath tool.

I am using Test Automation framework to perform test cases automation.

Use Case : 1. Verify whether a text is a hyperlink or not.
2. Verify if a table contains all the mandatory columns or not.
3. Verify Edit button is disabled or not

Please help me how can I verify.
I tried data scraping but in salesforce application is not extracting table data.

Any help would be appreciated :slight_smile:

@Vaishnav_Tej

Try using get text on the first row containing all the column names and then check if the returned value contains the column names or not

For selector please open ui explorer and try finding

Cheers

It is not indicating first row. It is indicating either entire part of “Ask The Expert” or as show below

@Vaishnav_Tej

Using ui explorer check if youa re able to find idividual cells…if yes then we can use them to verify

Alternately if there is an export option…clcik on export save the file and then verify the headers from the excel file

Even from the above output use .Contains to check uf the string contained required column names

Cheers

okay Let me try.
How about these 2 verifications.

  1. Verify whether a text is a hyperlink or not.

  2. Verify Edit button is disabled or not

@Vaishnav_Tej

For hyperlink…check if the tag is a …and if href attribute has a valid ir require url

For edit button disabled you can use get attribute on the button and check isactive or any othe rattribute which id different when enabled and disabled

Cheers

1 Like

Hi

It is extracting all column names as shown below

image

How to give the condition so that it verifies all column names present or not ?

For Hyperlink, I’m not finding href attribute & tag A for some of the links.

Is there any other alternate way?

@Vaishnav_Tej

If its one column then have the required columns in an array and then arry1.Except(dt.AsEnumerable.Select(function(x) x("Names").Tostring).ToArray)

Or you can interate as well the inner expression inside the except gives all the names in the column as names array

What are you getting for hyperlink? What kind of tag or value…does it have a script linked to it?

Cheers