Re: Simulating clicks on the DOM node of the GMAIL page.
Martijn <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
I don't know if you're using trunk or branch, but if you're using trunk and you have chrome privileges, you can use the sendMouseeEvent from nsIDOMWindowUtils: http://lxr.mozilla.org/seamonkey/source/dom/public/idl/base/nsIDOMWindowUtils.idl Regards, Martijn On 2/26/08, stony_dreams <[email protected]> wrote: > Hello: > > I want to simulate click events on the elements on the Gmail page. > Problem is, i am able to simulate it on the elements on the side bar > (viz. compose mail, inbox, etc) but was not able to use the same > function for the actual emails. > > I suspected this to be a security issue as when i do a createEvent(), > it should correspond to the document object of the container frame. > But this also did not work. Sometimes, the page just hangs when my > simulate click function is called. I am not sure whether gmail is > doing somethin fishy... Can anybody shed some light? > > I used the normal click function on the mozilla examples page: > http://developer.mozilla.org/en/docs/DOM:document.createEvent and i am > sure that i am calling this function on the exact element on the DOM, > which i confirmed using the DOM inspector. > > Thanks in advance... > _______________________________________________ > dev-tech-dom mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-dom > -- Martijn Wargers - Help Mozilla! http://weblogs.mozillazine.org/qa/ http://wiki.mozilla.org/Mozilla_QA_Community irc://irc.mozilla.org/qa - /nick mw22