I did the following search
parts.get(i).findElements(By.xpath("//li[starts-with(@class, '_lessons--row-')]"))
and it returned dozens of results, while I see in Developer Tools, that there are no more than 3 of them.
parts.get(i)
returns single WebElement
.
Looks like it searches not children of a given element, but over entire page. Can double slash cause this? What double slash means in XPath?