---
title: allElementsBoundByIndex
framework: xcuiautomation
role: symbol
role_heading: Instance Property
path: xcuiautomation/xcuielementquery/allelementsboundbyindex
---

# allElementsBoundByIndex

Immediately evaluates the query and returns an array of elements bound by the index of each result.

## Declaration

```swift
var allElementsBoundByIndex: [XCUIElement] { get }
```

## See Also

### Accessing matched elements

- [allElementsBoundByAccessibilityElement](xcuiautomation/xcuielementquery/allelementsboundbyaccessibilityelement.md)
- [count](xcuiautomation/xcuielementquery/count.md)
- [element](xcuiautomation/xcuielementquery/element.md)
- [element(boundBy:)](xcuiautomation/xcuielementquery/element(boundby:).md)
- [element(matching:)](xcuiautomation/xcuielementquery/element(matching:).md)
- [element(matching:identifier:)](xcuiautomation/xcuielementquery/element(matching:identifier:).md)
- [subscript(_:)](xcuiautomation/xcuielementquery/subscript(_:).md)
- [element(at:)](xcuiautomation/xcuielementquery/element(at:).md)
