NATIVE_APP上下文显示在一个使用Cordova的混合Android应用程序上,当尝试自动使用Appium时


    def test_list_content(self):
      self.driver.implicitly_wait(600)
      time.sleep(10)
      allContexts = self.driver.contexts
      print allContexts
      current = self.driver.current_context
      print current

Appium版本为1.4.16.1,Windows 7,Android设备操作系统为4.4.2。

我使用的是一个混合应用程序,Appium只返回NATIVE_app上下文。我可以在chrome检查器中看到该应用程序,并可以使用它点击web元素,但使用Appium我无法切换到web视图,因为Appium无法在屏幕上找到元素。

请帮助我如何自动化这种Android应用程序

这是Crosswalk网络视图的一个问题。他们有点不同。这个问题还没有解决。问题在这里Crosswalk网络视图的Appium问题。

但这里有一个解决问题的方法。按照那里的说明操作,这样就可以了。我确实试过了,它对我很有效。网络视图的名称和平时有点不同。appium 的Crosswalk解决方案

相关内容

最新更新