How can I add to the list with CSS selector or something work. First of all, I tried this code below.
List<WebElement> categories = driver.findElements(By.xpath("//div[@class=ui-select-choices-row-inner]/span"))
System.out.println(categories.size());
And I've got a div class like this
<div class="ui-select-choices-row-inner" uis-transclude-append>
<span ng-bind-html="category.name I highlight: $select.search">Test Pre pro</span>
I need this list to make a loop into my automatic test.