Dynamic web page table

There is table and this table is dynamic. Table rows can be 15, 7, 9 and so on…How to get this table’s rows number ???

but before this i want to get the table in a proper way

Any guidance ???

Afterwards, I want to go through this table from the end to the beginning.

Hi @170290064

Rows=DT.Rows.Count.ToString

but before this i want to get the table in a proper way

Any guidance ???

Afterwards, I want to go through this table from the end to the beginning.

Hi @170290064

You should be able to scrape the table from the webpage using Data Scraping.
That would be available in the top ribbon bar: Table Extraction.

You can try using that.

Thanks
Happy Automation :smiley:

Hi @170290064

You can get the table rows by using the below expression

DatatableVariable.Rows.Count.toString

Find the below screenshot for your reference

Hope it helps!!

@170290064

Use extract data table activity and extract the required data and then use Datatablevariable.Rows.Count.ToString to get the number of rows in that table.

Happy Automation!!

@170290064
Hey you can try using Data Scraping method and play with the selectors
below is te image of where u can find the Data scraping option

I have attached the sample xaml for your reference
Windows.zip (3.5 KB)

Below is the selector i got by playing with it

After getting all the table details you can use an assign activity
left side: YourVariable
Right side: Datatablevariable.Rows.Count.ToString

Hope it helps you !

@170290064

You can extract the data table as following ways

image

image

Regards,

Afterwards, I want to go through this table from the end to the beginning.

What should i do to check from last to top checkbox ???

@170290064 ,
You can play with selectors the checkbox
with anchor Base or indexes of the element

Hope it helps you!

I did this but it just works two times and then ends. Why :thinking: :thinking: :thinking:

image

I want to it goes like in the following

16
15
14
13
12
11
10
9
8
7
.
.
.
2

then done.

But it goes like ;

16
15

then done

Why :thinking:

@170290064
In the assign Activity why are you converting it into string?

I m converting it in integer after that

No worries

Now this problem appeared…

@Vikas_M

@170290064
Can you show me the screenshot of that assign activities conditions or send xaml if possible

image

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