grafana / xk6-browser

The browser module adds support for browser automation and end-to-end web testing via the Chrome Devtools Protocol to k6.
https://grafana.com/docs/k6/latest/javascript-api/k6-browser/
GNU Affero General Public License v3.0
344 stars 41 forks source link

Fix NPD in getOwnerFrame #1435

Closed ankur22 closed 2 months ago

ankur22 commented 2 months ago

What?

Checking for nil after calling dom.DescribeNode().

Why?

The node from dom.DescribeNode() can be nil, so checking for nil before proceeding.

Checklist

Related PR(s)/Issue(s)

Updates: https://github.com/grafana/xk6-browser/issues/1416