Skip to content

Get-SeElement -Single switch #144

Closed
Closed
@itfranck

Description

@itfranck

#135 will already throw a non-terminator error if empty but still allow multiple elements to return.

If you expect only one element and use the -Single switch, an error should also be thrown if more than 1 elements are present.
(Behind the scene, I believe FindElement method already deal with that so it should be used when the switch is specified.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions