I am trying to automate a native application in my android tablet.In that application I need to fill the billing address and click on continue button to go to next credit card details.
Here I am facing two issues:
1.Continue button is enabled automatically when I am filling details manually.But through automation continue button is not enabled and not returning any error.
2.through automation without filling any details ,and pressing next continue button is enabled,But nothing is happening after clicking on continue button.
Below is my code.
self.d(text='Name on Card').set_text('App Test');`
#now continue button has to be enabled automatically..but which is not happening
By the way I am using selenium-webdriver,python,uiautomator python wrapper.
Finally I got solution for this. By using python wrapper for UIAUTOMATOR I am able to proceed to next page.I am using down method until the option is visible and then pressing enter to accept it instead of click method. Below is the code.
while(self.d(resourceId="android:id/text1").text!='Hawaii'): self.d.press('down'); self.d.press('enter')