0
I’m doing an automation using Selenium Webdriver and I’m taking all the elements of a Table.
I used the code below:
var qntd= driver.FindElements(By.XPath("//*[@id='dataTable']/tbody/tr")).Skip(3);
Then I realized that each element generated an Id that is not from the Html Id attribute
I tried to recover this id with a query but could not, because the return is the HTML Attribute Id
var query = from a in qntd
select a.GetAttribute("Id");
Where does this ID come from and how to retrieve it?
Do you want to return an element by id? If yes maybe this code can help you driver.Findelement(By.Id("ID"));
– mcamara