Taiko: elements(), element(index) and ElementWrapperList is missing from Typescript type definitions

Created on 1 Jul 2020  路  3Comments  路  Source: getgauge/taiko

Expected behavior

elements() and element(index) from https://docs.taiko.dev/#elementwrapperlist is available in type definitions

Actual behavior

elements(), element(index) and ElementWrapperList is not available in type definitions

Steps to reproduce

Try to use elements() or element(index) in a typescript project.

Versions

`taiko 1.0.12`
help wanted

All 3 comments

Looking at the code, I'm not even sure ElementWrapperList exists elsewhere than in the docs. It seems to me that every wrapper extend ElementWrapper, which holds elements() and elements(index) methods.

@NivedhaSenthil can you confirm ? Is it a documentation issue ? ElementWrapperList probably disappeared during a refacto.

Yes, it has to be Element and ElementWrapper instead. There is no ElementWrapperList, ElementWrapper consists of Element list and first Element's properties as direct properties.

I'll work on it

Was this page helpful?
0 / 5 - 0 ratings