I would like to wrap a website in QWebEngine
so I can adapt input commands using Qt's event filters and perhaps much more. The website in question requires username/email and password, and I would like to make sure I can handle the input of that text on my end, sending the strings to be filled in on the web page, and then programmatically push the login button on the same page.
I found this page, suggesting using a QWebChannel
and some custom javascript to get this working. I know how to get the info of what element I want to fill in through Firefox' Web Inspector tool, but I have no clue how to
pass two strings to custom JS code I'd be running through
QWebChannel
somehowactually write the JS code to find a specific element on a website not under my control
There are no url parameters or some such, and if I look at what the POST request looks like that is sent when I actually press "log in" in the browser, the information is encoded somehow, so replicating the actual sent data doesn't seem feasible at this point.