170290064
(Eyüp Hasan Akbaba)
July 25, 2023, 9:43am
1
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.
lrtetala
(Lakshman Reddy)
July 25, 2023, 9:45am
2
Hi @170290064
Rows=DT.Rows.Count.ToString
170290064
(Eyüp Hasan Akbaba)
July 25, 2023, 9:48am
3
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.
adiijaiin
(Aditya Jain)
July 25, 2023, 9:50am
4
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
mkankatala
(Mahesh Kankatala)
July 25, 2023, 9:51am
5
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!!
vrdabberu
(Varunraj Dabberu)
July 25, 2023, 9:53am
7
@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!!
Vikas_M
(Vikas M)
July 25, 2023, 9:56am
8
@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 !
lrtetala
(Lakshman Reddy)
July 25, 2023, 9:57am
9
@170290064
You can extract the data table as following ways
Regards,
170290064
(Eyüp Hasan Akbaba)
July 25, 2023, 10:53am
10
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 ???
Vikas_M
(Vikas M)
July 25, 2023, 11:19am
11
@170290064 ,
You can play with selectors the checkbox
with anchor Base or indexes of the element
Hope it helps you!
170290064
(Eyüp Hasan Akbaba)
July 25, 2023, 11:25am
12
I did this but it just works two times and then ends. Why
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
Vikas_M
(Vikas M)
July 25, 2023, 11:27am
13
@170290064
In the assign Activity why are you converting it into string?
170290064
(Eyüp Hasan Akbaba)
July 25, 2023, 11:29am
14
I m converting it in integer after that
No worries
Now this problem appeared…
@Vikas_M
Vikas_M
(Vikas M)
July 25, 2023, 11:31am
15
@170290064
Can you show me the screenshot of that assign activities conditions or send xaml if possible
system
(system)
Closed
July 28, 2023, 11:38am
17
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.