Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

To prevent inconsistent behaviour, targets should raise an exception when used for an action if they are empty #53

@craigfowler

Description

@craigfowler

Currently it's possible to use a target to perform an action, when that target is empty.

For example, we construct an element query that gets done elements from the page and then try to click on one of them.

If that query returns an empty set, then the click operation will crash with null reference exception, because the element collection did not expose an actual element.

This should be made more explicit so that a target may be used in a manner that requires the inner element to be non-null and raises an appropriate exception (with helpful message) if it does not exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions