Hi, Is there any way to get the inspect element I’d of each row in a table using data scrapping.
Ex. I have a table on a webpage where it has multiple pages. So here we can scrap the whole data of a table, but I want the Inspect element I’d of each row. can we get this? Is it possible?
See in the below pic where 9 Id are given. I want this I’d of each row in a table using the data scrapping. Can we get this ?
Note - **This is a structure data so here we can use the data scrapping easily, but I don’t need the data of the table, I want only the I’d of each row in a table, which is not visible on the page, which is found in the Inspect element property. So suggest if this approach is possible. ** Why I am using the Data Scrapping bcz its very fast and give you the whole table data in a minute. no need to use the loop and all. @Palaniyappan@lakshman@HareeshMR
Hi
Yah as you said use data scrapping and get the datatable first named as dt
—now use a FOR EACH ROW activity and pass the naive variable dt as input
—inside the loop use a FIND TEXT POSITION activity and pass the text as row(“yourcolumnname”).ToString
And get the output with a variable of type uielement
—pass this uielement variable as input to element property of GET ATTRIBUTE Activity
And get the is attribute value
Pass that output variable from find text position to ELEMENT property of the GET ATTRIBUTE activity
And get the “id” attribute value as a output with a variable of type string
Cheers @balkishan
**see here, **
**I have pass the dynamic row in the Get Attribute activity property. you see in the result tab there is aaname value. but it’s not giving me the Id. If same I use before data scrapping giving me the parent i’d **
**
Just give a try like looping through the data table and pass the each string to Get Attribute and select the required in drop down you have, may be this will help
If I use this alone, without any data scrapping it gives me the right result, But I want to use this with data scrapping. but it’s giving any error when I pass the column variable.
I want to use this with data scrapping. Any other method which you can suggest ? Just like Palani suggested