Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 268

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report