I tried
btn.click();
And the error message is 'Cannot call property click in object ti.modules.titanium.ui.ButtonProxy@44f61. It is not a function, it is "object"'
I tried
btn.click();
And the error message is 'Cannot call property click in object ti.modules.titanium.ui.ButtonProxy@44f61. It is not a function, it is "object"'
btn.addEventListener('click',function() {
Titanium.API.info('Button Clicked');
});