Get list TestObjects have the same some property

I have a problem in mobile test

How to Get list TestObjects have the same some property

Ex: i want to get listTestobjects have text value contants Livingroom

thanks you

List<TestObject> testObjectList = new ArrayList<TestObject>()
testObjectList.add(findTestObject('path/to/first/object'))
testObjectList.add(findTestObject('path/to/second/object'))
testObjectList.add(findTestObject('path/to/third/object'))

.
.
.

1 Like

thanks you for your solution,
but your solution only suitable with hard data.

Hello,

i have a same problem for this, can you tell me please if you find a solution to get the number of items and the strings?