AttributeError: 'baiduPage' object has no attribute '_testMethodDoc'

记录一次selenium自动化测试坑爹的过程:

报错如下

AttributeError: ‘baiduPage’ object has no attribute ‘_testMethodDoc’

原因:在使用工厂设计模式The factory pattern,做web端和app端自动化测试时,导入模块时同时导入了

from appium import  webdriver

from selenium import webdriver

结果就出现了如上的报错信息,注销from appium import webdriver后运行正常,可是问题来了,如果要使用工厂设计模式把web和app测试结合在一起该如何搞呢?

还没搞懂……后续更新

原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/197048.html

(0)
上一篇 2021年11月17日
下一篇 2021年11月17日

相关推荐

发表回复

登录后才能评论