- 博客(1)
- 资源 (2)
- 收藏
- 关注
原创 Selenium+python,在新的页面(新打开的web页面)上没法定位元素问题解决方案。
问题描述在做web端自动化时,因为页面涉及跨域的问题,所以重新打开了页面,但是在执行代码时,提示selenium.common.exceptions.NoSuchElementException 这就很奇怪了,明明是用ID的方式定位的,这么稳的定位方式找不到,肯定是因为打开了新页面的问题。问题分析在新开的页面中找不到元素,也就意味着当前操作范围变化了,也就是句柄可能出了问题,能操作...
2018-04-17 09:49:58 7726 1
flutter-1.20.0-7.4.pre.zip
flutter_driver的mac安装包,如果被墙挡住了 可以下载下来试试,适用版本为flutter-1.20.0-7.4 格式为pre解压即可用。
2020-08-06
HTMLTestRunner.py python 3.6 亲测可用版本
A TestRunner for use with the Python unit testing framework. It
generates a HTML report to show the result at a glance.
The simplest way to use this is to invoke its main method. E.g.
import unittest
import HTMLTestRunner
... define your tests ...
if __name__ == '__main__':
HTMLTestRunner.main()
For more customization options, instantiates a HTMLTestRunner object.
HTMLTestRunner is a counterpart to unittest's TextTestRunner. E.g.
# output to a file
fp = file('my_report.html', 'wb')
runner = HTMLTestRunner.HTMLTestRunner(
stream=fp,
title='My unit test',
description='This demonstrates the report output by HTMLTestRunner.'
)
# Use an external stylesheet.
# See the Template_mixin class for more customizable options
runner.STYLESHEET_TMPL = '<link rel="stylesheet" href="my_stylesheet.css" type="text/css">'
# run the test
runner.run(my_test_suite)
2017-10-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人