@Spitfire this has nothing to do with it, the static HTML will never show any values updated by JS, it doesn't matter when you get it, the static html is "static". You have to check the DOM html to achieve this. But thanks for replying!
@wysota Although I was expecting an example, I was able to solve my problem quickly after you assured me that the right way would be using the WebElement API. So thanks, I've solved my problem.
A simple answer to my original poust would be:
QWebElement e = ui->browser->page()->mainFrame()->findFirstElement("span#Countdown");
qDebug() << e.toPlainText(); //a qDebug just to check it right now - it returns exactly the "2h 44m 18s" as I've mentioned above
QWebElement e = ui->browser->page()->mainFrame()->findFirstElement("span#Countdown");
qDebug() << e.toPlainText(); //a qDebug just to check it right now - it returns exactly the "2h 44m 18s" as I've mentioned above
To copy to clipboard, switch view to plain text mode
Topic SOLVED.
Bookmarks