lhg
16th October 2011, 23:59
So far I've been using "ui->browser->page()->mainFrame()->toHtml();"
It returns fine the static HTML, but several pages use javascript, therefore a lot of parts are looking like this "Loading..." instead of the actual information.
Is there anyway to get the DOM HTML?
The specific piece of HTML that I'm trying to get right now is below;
<tr class="data">
<td class="desc timer">
<span id="Countdown">Loading...</span>
</td>
</tr>
And the result I'm trying to get programatically would be something like this;
<tr class="data">
<td class="desc timer">
<span id="Countdown">2h 44m 18s</span>
</td>
</tr>
Thanks,
LuÃ*s.
It returns fine the static HTML, but several pages use javascript, therefore a lot of parts are looking like this "Loading..." instead of the actual information.
Is there anyway to get the DOM HTML?
The specific piece of HTML that I'm trying to get right now is below;
<tr class="data">
<td class="desc timer">
<span id="Countdown">Loading...</span>
</td>
</tr>
And the result I'm trying to get programatically would be something like this;
<tr class="data">
<td class="desc timer">
<span id="Countdown">2h 44m 18s</span>
</td>
</tr>
Thanks,
LuÃ*s.