能够单击按钮,但下一页未加载到我的本机 android 应用程序中

Able to click on button but next page is not loading in my native android application

我正在尝试在我的 android tablet.In 应用程序中自动化本机应用程序我需要填写账单地址并单击继续按钮转到下一个信用卡详细信息。

这里我面临两个问题: 1.Continue 按钮在我填写详细信息时自动启用 manually.But 通过自动化继续按钮未启用且未返回任何错误。

2.through 没有填写任何细节的自动化,并启用了按下一个继续按钮,但是点击继续按钮后没有任何反应。

下面是我的代码。

self.d(text='Name on Card').set_text('App Test');`
self.d.press('down');
self.d(text='City').set_text('Madison');
self.d.press('down');
self.d(className="android.widget.ListView").child_by_text("Delaware",allow_scroll_search=True,className="android.widget.TextView").set_text('Delaware')
#now continue button has to be enabled automatically..but which is not happening 
self.d.press('down');
self.d(text='Continue').click()

可能我不知道 JavaScript 中的某些功能是 运行 在 background.How 中,我们可以知道原因并继续进行吗?需要一些帮助。

顺便说一句,我正在使用 selenium-webdriver,python,uiautomator python 包装器。

终于找到解决办法了。通过为 UIAUTOMATOR 使用 python 包装器,我可以继续下一步 page.I 正在使用向下方法,直到该选项可见,然后按 enter 键接受它而不是单击方法。 下面是代码。

while(self.d(resourceId="android:id/text1").text!='Hawaii'):
        self.d.press('down');
self.d.press('enter')