The documentation for html2.WebView has many error, principaly in minimum version support.
Examples :
https://docs.wxpython.org/wx.html2.WebView.html#wx.html2.WebView.RunScriptAsync
It write “New in version 4.1/wxWidgets-3.1.6.”, but it’s false. Tested on 4.1.1, the method NOT exists.
But, update to 4.2.2, magie! this method exists.
Same for “EVT_WEBVIEW_SCRIPT_RESULT”, don’t exists in 4.1.1 but exists 4.2.2.
Note : This page has so many typing error.