CaptainInsano wrote:
CaptainInsano wrote:
I am trying to automate (C#) some web pages in Mozilla using the
Mozilla ActiveX control and I am unable to click on elements, I'm
getting the NotImplemented Exception.

IHTMLDocument2 document = (IHTMLDocument2)axMozillaBrowser1.Document;
IHTMLElement searchText = (IHTMLElement)document.all.item("q", null);
searchText.setAttribute("value", "Ferrari", 0);

IHTMLElement goButton = (IHTMLElement)document.all.item("btnG", null);
goButton.click();  <-- System.NotImplemented Exception


Anyone know a work around for this?

Thanks!


I am trying to automate (C#) some web pages in Mozilla using the
Mozilla ActiveX control and I am unable to click on elements, I'm
getting the NotImplemented Exception.

IHTMLDocument2 document = (IHTMLDocument2)axMozillaBrowser1.Document;
IHTMLElement searchText = (IHTMLElement)document.all.item("q", null);
searchText.setAttribute("value", "Ferrari", 0);

IHTMLElement goButton = (IHTMLElement)document.all.item("btnG", null);
goButton.click();  <-- System.NotImplemented Exception


Anyone know a work around for this?

Thanks!


If I remember correctly, none of the DOM element events like this are implemented...I was going to use it myself, then realized it wasn't supported. If you have Visual Studio and open up the object in the "Active X control container" (can't remember exact name) you can see this for yourself about the methods for this object....so had to implement my Gecko engine from the API to get the desired results I wanted. Only way around this that I know of is for the author (Adam Lock?) to release it with them implemented.

Niky Williams
_______________________________________________
mozilla-embedding mailing list
mozilla-embedding@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to