How to Get this ID

Viewed 1631

I'm doing an automation using Selenium WebDriver and I'm getting all the elements of a Table.

I used the code below:

var qntd= driver.FindElements(By.XPath("//*[@id='dataTable']/tbody/tr")).Skip(3);

I then realized that each element generated an Id that is not of the Id as shown in the Html

enter image description here enter image description here

I tried to retrieve this id with a query but I could not because the return is the HTML Id attribute

var query = from a in qntd
                select a.GetAttribute("Id");

Where does this ID come from and how do I retrieve it?

3 Answers
Related