ImportError: cannot import name 'Device' , when using uiautomator Python 3

元气小坏坏 提交于 2019-12-11 17:12:44

问题


im trying to test an app using uiautomator module of python. but im getting the same error . Im using python3. does it work only with python 2.7 or what ?? i'm unable to resolve the issue.. when i open python interpreter and run the commands:

  • from uiautomator import device as d
  • d.info()

the process gets struck and doesn't do anything..

but when i run the script, it gives out this Error message: "from uiautomator import Device" and "ImportError: cannot import name 'Device'"

please help..

来源:https://stackoverflow.com/questions/54421590/importerror-cannot-import-name-device-when-using-uiautomator-python-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!