Answer the question
In order to leave comments, you need to log in
Standalone browser engine
The task is this: you need to draw a GUIless application that can execute web pages along with all scripts and interfere with their work (a la user scripts in browsers). Everything should work as independently as possible, preferably even without Xs (although it is doubtful that it will be possible to do without them).
Will Webkit or Chromium work for this? Or will you still have to fence your garden from an XML parser, V8 and a bald devil (build the same DOM API with your hands)?
Answer the question
In order to leave comments, you need to log in
QtWebkit allows arbitrary JavaScript code to be executed via webView.page().currentFrame().evaluateJavaScript("JavaScript code"). Through JS, you can access the DOM.
At the same time, the webView itself can be omitted and the application can be made a console one. An example of use in combination with Python
Although, for sure, when working with Webkit, you can do without Qt.
I used selenium + firefox. terribly cumbersome and slow but at least crap (after installation)
I worked from .net to c# webbrowser component (on windows current installed version of IE) and tested it successfully on mono (using firefox libraries).
Of the obvious problems - ambiguity in determining the end of page loading and some peculiarities in executing your javascript code on the page - instead of calling the method itself with greater compatibility (if you want to call methods from someone else's unsupported code), it is better to call this method via setTimeout (1).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question