Skip to content

Codecept Webdriver shadow DOM locator TypeScript type incorrect #3601

Closed
@shanplourde

Description

@shanplourde

Hi, the shadow DOM locator appears to be typed incorrectly. The type is defined as shadow: string. I believe based on https://codecept.io/shadow/#locate-shadow-dom that it should be typed as shadow: string[]

The result is using the correct API raises TypeScript validation errors.

I think the fix would just need to be applied to https://github.com/codeceptjs/CodeceptJS/blob/3.x/typings/index.d.ts#L395

Thanks 😄

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