G
G
Gibbon Cho2014-09-23 15:22:01
C++ / C#
Gibbon Cho, 2014-09-23 15:22:01

How to get the result of executing javascript in c++?

Good day. I have a page that executes some javascript when it loads. When viewing the source code of this page, it is not possible to see the output of the script. But when inspecting in FireFox, the result of the script execution is displayed. I need to get the value of this script in an application written in c++. Now I can only receive a GET request for this page (but I won’t see the result I need there) or execute this script by loading the page in the browser (in the programming environment). I would like to hear, and even better to see a way to get the result of javascript'a. Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
SilentFl, 2014-09-23
@SilentFl

Phantom.js to the rescue

S
Sergey, 2014-09-23
Protko @Fesor

load page in webview, wait, get result.

A
AxisPod, 2014-09-23
@AxisPod

At least for the sake of decency, you would describe how you interact with JS from C ++. And then nothing at all is clear.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question