How to count rows in a web table

PFA

I’m trying to count how many rows are available in attached web table

Kindly, Guide me how to proceed further

thanks in adv

Hi @rsr.chandu

Use the Extract table data activity
image

create an output variable then use this expression

youdtVar.RowCount.ToString

Regards

Hi @rsr.chandu

If you want to count the rows of a data table then

Assign-> RowsCount=DT.Rows.Count

I hope it helps!!

@fernando_zuluaga
If you are using Modern Design then use For Each Ui element Activity to and inside use counter to count total rows.

If you are using Classic Activities then you need to Extract datatable through Extract DataTable activity and then you can count the rows like this.

DT.Rows.Count.ToString

OR
you can make custom For Each Ui Element through Elememt Exist and while loop.
Because Element Exist is not available in classic mode.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.