Skip to content

Better Exception to throw when nth() element not found #5

@piotrkluz

Description

@piotrkluz

Currently code:

$("//body").nth(3);

throws:

Wait failed after 3000ms, tried 2 times.Last error:
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0

Expected to throw: ElementFindFail with proper error message

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