Source code |
|
1 2 3 4 5 6 |
KURL url = "http://www.google.de"; browser = new KHTMLPart(); browser->openURL(url); DOM::HTMLDocument document = browser->htmlDocument(); DOM::DOMString title = document.title(); cout << title.string() << endl; |
Quoted
Originally posted by andyknownasabu
But how can I accomplish that?
Quoted
Just inserting a sleep(10) can't be a good solution and this also doesn't work: I get no output of the page title...
Quoted
I wasn't able to find a signal which says "page loading finished" or something like that...
Source code |
|
1 2 3 4 |
DOM::HTMLDocument document = browser->htmlDocument(); DOM::HTMLCollection forms = document.forms(); DOM::Node useridNode = forms.namedItem("userid"); DOM::Node passNode = forms.namedItem("pass"); |
This post has been edited 3 times, last edit by "andyknownasabu" (Oct 27th 2004, 1:52pm)
This post has been edited 1 times, last edit by "andyknownasabu" (Oct 28th 2004, 6:04pm)
Forum Software: Burning Board®, developed by WoltLab® GmbH
Linux Computer - Linux Forum -
Linux Computer und Notebooks - Lastminute - Wasserbetten & Whirlpools