Skip to content

If specifying an invalid by, fail fast, rather than after trying to find an element #3003

Closed
@mdmintz

Description

@mdmintz

If specifying an invalid by, fail fast, rather than after trying to find an element


These are the valid by options: "css selector", "link text", "partial link text", "name", "xpath", "id", "tag name", and "class name".

By default, SeleniumBase autodetects between "css selector" and "xpath" if the by is not specified.

If people try to specify an invalid by, it should raise an exception right away. (Currently, it tries waiting for the element up to the timeout, and that would eventually fail.)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions