Add error handling to webelem.js #4774
Labels
component: QtWebEngine
Issues related to the QtWebEngine backend, based on Chromium.
language: javascript
Issues which require knowing JavaScript.
priority: 1 - middle
Issues which should be done at some point, but aren't that important.
I noticed this when reviewing #4741: We don't really do any error handling in
webelem.js
.Similarly to what we did for
find_css
, anything getting an element fromelements
should check if it's still there - currently we just fail somewhat silently in JS:Then,
webengineelem.py
should handle the error status in_js_call
(probably by raising an exception which gets handled in the callers).The text was updated successfully, but these errors were encountered: