Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

AttributeError: & # 39; object has no attribute & # 39; object has no attribute & # 39

Shulou Source: shulou.com Published: 2022-06-03 02:34:19 10月06日 Update

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

Tags: Testing factory pattern design pattern automation design information reason at the same time such as above module result process problem update run Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Redmi MySQL Linux Docker