python selenium 点击 报错v_python执行selenium报错

在使用Python的unittest和HTMLTestRunner运行测试套件时遇到错误,具体为'AttributeError: '_TestResult' object has no attribute 'outputBuffer''。问题源于Chrome浏览器和chromedriver版本不匹配。通过确认并更新到与浏览器版本一致的chromedriver,解决了执行selenium点击操作时报错的问题。
摘要由CSDN通过智能技术生成

python + unittest + HTMLTestRunner 执行suite用例报错

Traceback (most recent call last):

File "C:/ws/Selenium-Framework-master/testsuites/TestRunner.py", line 48, in

runner.run(createsuite1())

File "C:\Python27\Lib\HTMLTestRunner.py", line 628, in run

test(result)

File "C:\Python27\Lib\unittest\suite.py", line 70, in __call__

return self.run(*args, **kwds)

File "C:\Python27\Lib\unittest\suite.py", line 100, in run

self._handleClassSetUp(test, result)

File "C:\Python27\Lib\unittest\suite.py", line 153, in _handleClassSetUp

self._addClassOrModuleLevelException(result, e, errorName)

File "C:\Python27\Lib\unittest\suite.py", line 198, in _addClassOrModuleLevelException

result.addError(error, sys.exc_info())

File "C:\Python27\Lib\HTMLTestRunner.py", line 584, in addError

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值