Ratul Das
Posts: 0
Joined: Sat May 10, 2014 12:32 pm

Trying to click a hidden button in a screen through Javascript

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.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Trying to click a hidden button in a screen through Javascript

Hello,

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

Ratul Das
Posts: 0
Joined: Sat May 10, 2014 12:32 pm

Trying to click a hidden button in a screen through Javascript

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

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Trying to click a hidden button in a screen through Javascript

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

Ratul Das
Posts: 0
Joined: Sat May 10, 2014 12:32 pm

Trying to click a hidden button in a screen through Javascript

Tried this but it did not work.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Trying to click a hidden button in a screen through Javascript

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

Return to “Issues”