How to write code manually for selection method (css) e.g. tr[ng-repeat]

Hey Team,
I need to iterate on a list css locator which I put in the section method css. Can you please share the code to write it. I have successfully done for the Basic one using code

TestObject to = findTestObject(’ ')

WebDriver driver = DriverFactory.getWebDriver()

List list = driver.findElements(By.className(to.findPropertyValue(‘class’)))


for(int i=0; i<list.size(); i++)




Can you please share the code how to access the list css locator if I put it in the selection method e.g. tr[ng-repeat] it has 4 values.