You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deferfunc() {
iferr:=handle.Dispose(); err!=nil {
err=fmt.Errorf("disposing element handle: %w", err)
rerr=errors.Join(err, rerr)
}
}()
ifhandle, err=ec.adoptElementHandle(handle); err!=nil {
returnnil, fmt.Errorf("waiting for selector %q: adopting element handle: %w", selector, err)
}
If an error is returned from ec.adoptElementHandle it overwrites the handle with a nil. The deferred function tries to use the handle but fails with an NPD since it is now nil.
k6 version
v0.56.0
OS
na
Docker version and image (if applicable)
No response
Steps to reproduce the problem
NA
Expected behaviour
Don't NPD
Actual behaviour
NPD
The text was updated successfully, but these errors were encountered:
Brief summary
Here's the stack trace:
Looking at the code in question:
If an error is returned from
ec.adoptElementHandle
it overwrites thehandle
with anil
. The deferred function tries to use thehandle
but fails with an NPD since it is nownil
.k6 version
v0.56.0
OS
na
Docker version and image (if applicable)
No response
Steps to reproduce the problem
NA
Expected behaviour
Don't NPD
Actual behaviour
NPD
The text was updated successfully, but these errors were encountered: