本文介绍把截图类方法封装到BasePage.py文件里,这个文件是在前面Selenium方法二次封装文章里创建的,具体代码请到前面这篇里找。我们截图类写死了把截图图片保存到根目录下的Screenshots文件夹里,图片名称是当前系统时间,图片后缀名是png。 新的BasePage.py内容如下: # ...
分类:
编程语言 时间:
2020-07-26 00:38:24
阅读次数:
68
<?php // clearDir('upload/images/'); if ($_FILES['file']['error'] == 0) { $MAX_FILE_SIZE = 300000; if ($_FILES['file']['size'] > $MAX_FILE_SIZE) { exi ...
分类:
Web程序 时间:
2020-07-26 00:34:37
阅读次数:
73
HTTP 常见状态码 一、200 [ok] 一切正常 二、400 [Bad Request] 客户端 出现问题 需要注意:前端传入的参数与后台接收数据时的 参数名 必须保持一致 三、500 [Internal Server Error] 服务端 出现问题 四、301 [Moved Permanent ...
分类:
Web程序 时间:
2020-07-26 00:25:17
阅读次数:
95
删除代理即可。 具体操作如下: 1. git config --global --list 查看git配置 发现其中有 http.https.XXXXXX.proxy 和 https.https.XXXXXX.proxy配置 2.git config --global --unset http.ht ...
分类:
其他好文 时间:
2020-07-26 00:07:03
阅读次数:
249
Linux版本下载地址:https://download.docker.com/linux/centos/7/x86_64/stable/Packages/ Windows版本下载地址:https://download.docker.com/win/static/stable/x86_64/ 容器可 ...
分类:
其他好文 时间:
2020-07-25 23:25:06
阅读次数:
87
#1.run 1.下载附件解压得到run.exe,运行发现是word,显示error!!。直接解压run.exe,得到New Microsoft Word Document.docx和run.exe。运行run.exe,得到tif文件,查看二进制,在最后发现run->njCp1HJBPLVTxcMh ...
分类:
其他好文 时间:
2020-07-25 11:28:14
阅读次数:
108
新导入的idea项目,发现竟然找不到包,类,程序包不存在。 上网上找了好多博客发现都不能用 最后解决了问题,只要把maven清除一下就解决了 如图: 然后点击图上的绿色箭头 再运行即可 加油哦 ...
分类:
编程语言 时间:
2020-07-24 22:08:09
阅读次数:
82
问题: An error occured while deploying the file. This probably means that the app contains ARM native code and your Genymotion device cannot run ARM ins ...
分类:
移动开发 时间:
2020-07-24 22:03:36
阅读次数:
160
【RN小记】解决Mac下Pod install 缓慢 或 error: RPC failed; 或 the remote end hung up unexpectedly
分类:
系统相关 时间:
2020-07-24 21:33:52
阅读次数:
174
C:\Program Files (x86)\Jenkins\plugins\ruby-runtime\WEB-INF\lib\classes.jar: The process cannot access the file because it is being used by another pr ...
分类:
其他好文 时间:
2020-07-24 21:30:48
阅读次数:
197