AttributeError: 'NoneType' object has no attribute 'send_keys'

来源:5-14 多进程、unittest、HTMLTestRunner、启动服务流程梳理代码重构

慕婉清8174198

2021-04-19

图片描述
程序没到login_page 的get_username_element中,而且user是有值的,为什么会报这个错?

写回答

1回答

Mushishi

2021-04-21

Nonetype是空。说明没有元素。没找到元素啊。你看get_username_element 直接看找到了么

0
0

Python主讲移动端自动化测试框架Appium

APP自动化基础知识、po模型、关键字模型、服务自动化、持续集成

1508 学习 · 1333 问题

查看课程