Simulate a CLICK event to the Window leftnavbutton
Hi
I want to simulate a click event to the windows back button programtically..
I am using
Ti.App.fireEvent(win.leftNavButton, {name:'click'});
but it doesn't work.
Anything wrong with the statement?
7 Answers
-
Does this not work?
win.leftNavButton.fireEvent('click');
-
I don't think that's possible, unless i missed something from the api doc? The way I do this is just create a new function and drop all the code in there and just call it from the button and when you want to "programmatically" call the button. Does that make sense?
-
What i need is to "programmatically" call the button.
How do you do it? -
are you talking for android or iphone?
rocksteady,
danno~ -
iphone
-
It seems that the fireEvent functions are intended for passing messages between javascript execution environments, which does not appear to be the functionality you're after.
I want to do similar stuff, trying to write some BDD style acceptance tests that are supposed to programmatically "drive" my application.
Not having a lot of luck so far
-
Did anyone find an answer to this?