Page 1 of 1

Trying to click a hidden button in a screen through Javascript

Posted: Sat May 10, 2014 12:32 pm
by Ratul Das

I am trying to click a hidden button through Javascript

var hiddenBtn = $('[name=mobilebutton_45]');
hiddenBtn.click();

The code works fine when I am testing in Mozilla but not working when I am testing from android browser.

Please let me know how to achieve this.


Trying to click a hidden button in a screen through Javascript

Posted: Sat May 10, 2014 1:33 pm
by Igor

Hello,

Is this issue is reproducible if you test using Apperyio tester or with installed .apk file?
http://docs.appery.io/documentation/t...


Trying to click a hidden button in a screen through Javascript

Posted: Sat May 10, 2014 4:40 pm
by Ratul Das

This issue is reproducible for both. But if you Apperyio tester then it has to be opened from an Android browser.


Trying to click a hidden button in a screen through Javascript

Posted: Sun May 11, 2014 2:59 am
by Igor

Please try the following code:
pre
Appery('mobilebutton_45').trigger( "click" );
/pre


Trying to click a hidden button in a screen through Javascript

Posted: Sun May 11, 2014 5:48 am
by Ratul Das

Tried this but it did not work.


Trying to click a hidden button in a screen through Javascript

Posted: Sun May 11, 2014 2:15 pm
by Igor

Please share with us app public link and tell us the steps how to reproduce this.
http://docs.appery.io/documentation/t...