Need to get the count of string in application region

@NIVED_NAMBIAR Bro here is the another question bro
i need to get this count ( The Count of values under “Scop”)


How i need to give regex for this

And the process is like if there is three count we need modify based on excel by clicking editare
If not we need to click on introducere and need to do the process based on excel sheet

Hi @Sudharsan_AIT
can u show the output of screenscrapping here ?

Hi @Sudharsan_AIT
use the data from the screenscrapping to generate datatable actvity, it will generate a datatable according and then u can get the number of values under a partuclar column

Comunicari in vederea derularii contractului de furnizare e.e.
Comunicari Marketing, campanii si comercializare produse
Participarea la sondaje de piata

I thought we can get the value as regex you told me earlier whether that method is possible here bro

I will try this one and let you know

Did it worked bro?

Working on it bro

if possible can u share the complete data which u got from screenscrapping here

How to count the datatable bro after generating

Sure bro

if the datatable variable is dt , then use dt.Rows.Count

yes bro it worked but it also taken the heading also as row
and showing the count as 4
image

Hi @Sudharsan_AIT
Can u share the screenscrapping results [ complete]?

Sure bro,Just a minute bro

                                     Scop:                                                                      Optiune:                telefonposta electronicaservicii postaleOricare mijloc Data modificarii

Comunicari in vederea derularii contractului de furnizare e.e. Acord Dezacord 18.05.2021
Comunicari Marketing, campanii si comercializare produse Acord Dezacord 18.05.2021
Participarea la sondaje de piata Acord Dezacord 18.05.2021


Hi @Sudharsan_AIT
i just tried and found we don’t need to use the gernate datatable here,

use this regex on the output of screenscrapping to get the no of item under the Scope column

count=System.Text.RegularExpressions.Regex.Matches(input_string,".*(?=Acord)").Count

where input_string is the output of screenscrapping

the count variable will give the number of item under scope column

Regards,
Nived N
Happy Automation

Okay bro i will try this and get back to you

1 Like

Bro it is showing the result as six