Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    fire click event

    Hello everyone! can someone please write 2 lines to give an example of how can I manually (by code) fire an event, for example a click event on HeaderControl

    I read the forum about selenium and about fireEvent but don't know how to use them.

    I really apreciate your help!

    #2
    I tried this

    NativeEvent event = Document.get().createClickEvent(1,x,y,x,y,false,false...false);
    window.fireEvent(event);

    // window is smartgwt widget that has addClickHanlder set

    Isn't suppose to work like that? because it doesn't

    please give a hit on this

    PS: I dont' get any js error, but DynamicForm that should set some values on items, it does not, and this call is previous from the event I'm trying to fire. While I remove fireEvent, items from DynamicForm are setted. The screen flash as a real mouse click when I try fireEvent
    Last edited by sindroide; 12 Aug 2010, 09:58.

    Comment

    Working...
    X