Traceback (most recent call last):
File "D:\Development\PyCharm 2021.1\plugins\python\helpers\pycharm\_jb_unittest_runner.py", line 35, in <module>
sys.exit(main(argv=args, module=None, testRunner=unittestpy.TeamcityTestRunner, buffer=not JB_DISABLE_BUFFERING))
File "D:\Development\Python\lib\unittest\main.py", line 101, in __init__
self.runTests()
File "D:\Development\Python\lib\unittest\main.py", line 271, in runTests
self.result = testRunner.run(self.test)
File "D:\Development\PyCharm 2021.1\plugins\python\helpers\pycharm\teamcity\unittestpy.py", line 310, in run
return super(TeamcityTestRunner, self).run(test)
File "D:\Development\Python\lib\unittest\runner.py", line 176, in run
test(result)
File "D:\Development\Python\lib\unittest\suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "D:\Development\Python\lib\unittest\suite.py", line 122, in run
test(result)
File "D:\Development\Python\lib\unittest\suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "D:\Development\Python\lib\unittest\suite.py", line 122, in run
test(result)
File "D:\Development\Python\lib\unittest\case.py", line 676, in __call__
return self.run(*args, **kwds)
File "D:\Development\Python\lib\unittest\case.py", line 617, in run
"__unittest_expecting_failure__", False)
File "E:\封装页面基类-方法一\page\po.py", line 37, in __getattr__
raise UnPositioningElement(loc)
error.UnPositioningElement: Page 中 __getattr__ 参数错误:在当前locators找不到元素__unittest_expecting_failure__, 请将要定位的元素添加到 locators 中!