in remote-robot/src/main/kotlin/com/intellij/remoterobot/search/Finder.kt [37:52]
fun findMany(locator: Locator): List<RemoteComponent> {
return when (locator) {
is XpathLocator ->
if (where != null) {
finderClient.findAllByXpath(where.remoteComponent.id, locator.xpath)
} else {
finderClient.findAllByXpath(locator.xpath)
}
is LambdaLocator ->
if (where != null) {
finderClient.findAllByLambda(where.remoteComponent.id, locator.searchFunction.pack(true))
} else {
finderClient.findAllByLambda(locator.searchFunction.pack(true))
}
}
}