diff --git a/packages/core/src/selectors.ts b/packages/core/src/selectors.ts index 38251d8..139c855 100644 --- a/packages/core/src/selectors.ts +++ b/packages/core/src/selectors.ts @@ -56,6 +56,9 @@ export class MultiElementWrapper extends ElementWrapp super(root); } + /** + * Index is one-based because the method uses the :nth-child() CSS pseudo-class. + */ get(index: number): T { return this.elementFactory(`${this.root}:nth-child(${index})`); }