Skip to content

Get-SeElement no longer supports splatting #82

Closed
@alduron

Description

@alduron

It appears that Find-SeElement (now Get-SeElement) has undergone some pretty hefty changes, and with these changes it seems that splatting support has been removed.

Specifically this line is attempting to search $MyInvocation.Line for parameter matches, but $MyInvocation.Line is only populated with Get-SeElement @SplatName when passing splats, which will always fail to resolve names based off string matching.
https://github.com/adamdriscoll/selenium-powershell/blob/master/Selenium.psm1#L747

I'm not sure if this behavior was intended but it would be nice to use a universally supported PowerShell feature.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions