Closed
Description
Hi
I started working with the module. Took me some time to realize that there is already a compiled version in the Output folder 😅.
Usually if something is wrong I want to know about it immediately. I used to use FindElement()
so if the element is not found I get an error immediately but here as you use FindElements()
I don't get any error and the code continues but I see this is the same beaver as in V3 so it's probably buy design.
The bigger problem is that in V3 if you pipe this missing element (null) to an action you get an error but in V4 it continues so you can have many lines of actions that fail and the script will keep running.
Get-SeElement -By Id -Value 'User' | Send-SeKeys -Keys 'Key' # This should fail as in V3.
function Verb-Noun {
[CmdletBinding()]
param ( )
}
Verb-Noun | Send-SeKeys -Keys 'Key' # This also passes without an error in V4.