.NET
Microsoft Technologies based on the .NET software framework.
3,648 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
How to count Id's in UI page records in c# selenium. I have try it different ways am not able to count the records.
IList<IWebElement> webElements = driver.FindElements(By.XPath("/html/body/div/div/div[1]/div[2]/div/div/div/div/div/div[1]/div/div/div/div/div/div/div[1]/div[2]/div/div/div/div[2]/div/div[2]/div[1]/div[2]/div[2]/div/div[1]/div/div[1]/div"));
int NumberOfItems = webElements.Count;
for (int j = 0; j < NumberOfItems; j++)
{
}