Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Include more debug information in waitForSelector timeout exception #181

@tom-miseur

Description

@tom-miseur

When a selector cannot be located, we currently print wait for selector didn't resulted in any nodes. When it happens, it is very useful to know which selector the error message refers to.

A simple fix that also corrects the grammar (resulted -> result):

return nil, errors.New("wait for selector didn't result in any nodes. selector: " + selector)

As this will likely be a very common exception, it may be worth thinking about what else we can include in it, such as a suggestion for why an element may not have been found.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions