AttributeError: & # 39; object has no attribute & # 39; object has no attribute & # 39
Record the process of an selenium automated test:
The error is as follows
AttributeError: 'baiduPage' object has no attribute' _ testMethodDoc'
Reason: when using the factory design pattern The factory pattern to do automated testing on both the web side and the app side, the module was imported at the same time
From appium import webdriver
From selenium import webdriver
The result is the above error message, which works fine after logging out of from appium import webdriver, but the question is, what if you want to use factory design patterns to combine web and app tests?
I don't get it yet. Subsequent UPDAT