List,
I have spent several hours trying to find a working example of a
python script that uses xpcom ( through pyxpcom ) to load an URI and
then read the contents of the generated DOM tree, and have failed
miserably. Could someone please help me with some code snippets,
documentation, working examples, etc ?
For what I have learned, it seems that I should use something like
this for load the URI:
from xpcom import components
cls =
components.classes["@mozilla.org/embedding/browser/nsWebBrowser;1"]
wb = cls.createInstance(components.interfaces.nsIWebBrowser)
nav = wb.QueryInterface(components.interfaces.nsIWebNavigation)
nav.loadURI ("http://www.mozilla.org",
components.interfaces.nsIWebNavigation.LOAD_FLAGS_NONE, None, None,
None);
But this fails. Also, If this would suceed I haven't found any
documentation about reading the DOM of the response. Could someone
help me please ? Thanks!
Cheers,
--
Andres Riancho
http://w3af.sourceforge.net/
Web Application Attack and Audit Framework
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding