Skip to content

[feature request] pass more information back in error scenarios  #1352

@godserahul1986

Description

@godserahul1986

Any strong objections to passing back the target along with these messages?

Use case: In case there are multiple clicks in a test, having this extra information makes it easier to find out which test selector failed. This can be also applied to other helpers.

throw new Error(`Can not \`click\` disabled ${element}`);

`Element not found when calling \`click('${target}')\`.`

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