Skip to content

Tsc error on toBeElementsArrayOfSize with WebdriverIO.Element[] type #1978

@dprevost-LMI

Description

@dprevost-LMI

Something like the below generates the TSC error This expression is not callable. Type 'never' has no call signatures. in 5.6 while working in 5.5

        const elems = await $$('div').filter(async el => await el.isDisplayed())
        await expect(elems).toBeElementsArrayOfSize(1)
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions