伙伴Hypium脚本中使用“from hypium.advance.deveco_testing import UiDriver”进行导入,在运行脚本时报错:imported module hypium中找不到引用UiDriver,该问题如何解决?
安装成功后示例如下(具体版本号根据实际情况检查):


而伙伴的xdevice版本显示为0.0.0。

找到Hypium插件的安装包路径,打开hypium_api的md文件(举例D:\devecotesting-hypium-6.0.7.202\hypium-6.0.7.202\doc下的hypium_api_6.0.7.202.md)。
在该文件中查找“import UiDriver”,未发现“hypium.advance.deveco_testing”。
python -m pip uninstall -y hypium
python -m pip uninstall -y xdevice-ohos
python -m pip uninstall -y xdevice-devicetest
python -m pip uninstall -y xdevice