11 2018 档案

[Chrome Headless + Python] 截长图 (Take Full-page Screenshot)
摘要:# -*- coding: utf-8 -*- import time import os from selenium import webdriver from selenium.webdriver.common.keys import Keys jenkinsJobName=os.getenv("JOB_NAME") url="http://*.*.*.*/test.html" prin... 阅读全文

posted @ 2018-11-16 17:26 张缤分 阅读(1828) 评论(0) 推荐(1) 编辑

在远程机器上执行桌面产品自动化测试时,如何做到不需要一个真实的显示器去显示屏幕
摘要:设置默认分辨率 通常亚马逊虚拟机自动登录分辨率为800x600,不能满足测试要求,需要设置为1280x1024. 由于远程桌面无法修改虚拟机分辨率,需要安装TightVNC工具。 TightVNC下载地址:http://www.tightvnc.com/download.php 虚拟机上操作: 1、 阅读全文

posted @ 2018-11-12 10:43 张缤分 阅读(849) 评论(0) 推荐(0) 编辑

[Python] 代码中有中文注释会报错
摘要:原因 如果文件里有非ASCII字符,需要在第一行或第二行指定编码声明。 解决方法 在第一行或是第二行加入这么一句# -- coding: utf-8 -- ASCII知识普及: ASCII(American Standard Code for Information Interchange,美国信息 阅读全文

posted @ 2018-11-01 08:59 张缤分 阅读(1047) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示