I try to adapt a Web application to use in a GUI, created with PyQt6. When I load the application in QWebEngineView
widget I'm capable to debug its JavaScript routines in a normal way using a Chrome browser launched in parallel.
The debugging shows that window.open(...)
command in my JavaScript code goes without exceptions/errors and even creates a new window, having window.opener
attribute among others.
I don't understand, however, is it possible to view the document of this new window in a certain other widget in my PyQt application and access its content from the main JavaScript code? Should I use QTabWidget
or any other one for this?
Or I can control Web documents in other QWebEngineView
widgets in my GUI with injected scripts only and forget about window.open(...)
command?