摘要: Welcome to Processing 3! Dan explains the new features and changes; the links Dan mentions are on the Vimeo page. Download ProcessingBrowse TutorialsV 阅读全文
posted @ 2018-08-26 21:53 Jaww 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 在做web应用的自动化测试时,定位元素是必不可少的,这个过程经常会碰到定位不到元素的情况(报selenium.common.exceptions.NoSuchElementException),一般可以从以下几个方面着手解决: 1.Frame/Iframe原因定位不到元素: 这个是最常见的原因,首先 阅读全文
posted @ 2018-08-26 21:35 Jaww 阅读(840) 评论(0) 推荐(0) 编辑
摘要: js 获取元素的位置 js 获取点击时间鼠标坐标 阅读全文
posted @ 2018-08-26 21:18 Jaww 阅读(1313) 评论(0) 推荐(0) 编辑
摘要: 1、什么是Selenium,为什么web测试,大家都用它? Selenium设计初衷就是为web项目的验收测试再开发。内核使用的是javaScript语言编写,几乎支持所以能运行javaScript的浏览器,支持windows\linux\macos等各种平台。 Selenium 脚本是用多种受支持 阅读全文
posted @ 2018-08-26 21:15 Jaww 阅读(402) 评论(0) 推荐(0) 编辑
摘要: https://pyautogui.readthedocs.io/en/latest/introduction.html Introduction Purpose The purpose of PyAutoGUI is to provide a cross-platform Python modul 阅读全文
posted @ 2018-08-26 20:33 Jaww 阅读(652) 评论(0) 推荐(0) 编辑
摘要: 用 spy++去确认找到了文本框的句柄了。 用函数 win32gui.SendMessage 获取不了文本框的文本内容,用 str 类型的参数接收获取的内容的话没有获取到东西,而用 PyBuffer 类型去获取则得到类似于 16 进制的东西。 希望能找到解决方案。 以下是代码: 阅读全文
posted @ 2018-08-26 10:53 Jaww 阅读(8529) 评论(0) 推荐(0) 编辑
摘要: 1 from processing import * 2 from math import sin 3 4 X = 30 5 Y = 30 6 radius = 30 7 8 def setup(): 9 strokeWeight(10) 10 frameRate(20) 11 size(400,300) 12 13 def draw(): 14 ... 阅读全文
posted @ 2018-08-26 10:30 Jaww 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 本文实例讲述了python模拟鼠标拖动操作的方法。分享给大家供大家参考。具体如下: pdf中的书签只有页码,准备把现有书签拖到一个目录中,然后添加自己页签。重复的拖动工作实在无趣,还是让程序帮我实现吧,我可以喝点水,休息一下了 1. Python代码: 1 # 2 # _*_ coding:UTF- 阅读全文
posted @ 2018-08-26 10:27 Jaww 阅读(9317) 评论(0) 推荐(0) 编辑
摘要: http://www.w3school.com.cn/xpath/xpath_functions.asp XPath 总结 XPath 教程 XPath 总结 XPath 教程 存取 错误和跟踪 数值 字符串 AnyURI 逻辑 持续时间/日期/时间 QName 节点 序列 Context 存取 错 阅读全文
posted @ 2018-08-25 23:37 Jaww 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 前言 当年看《别怕,Excel VBA其实很简单》相见恨晚,看了第一版电子版之后,买了纸质版,然后将其送人。而后,发现出了第二版,买之收藏。之后,发现Python这一编程语言,简直是逆天,业余非程序员的福音。人生苦短,我用python。简短几句代码,实现好多自己不敢想的功能。自学VBA发现对VBA和 阅读全文
posted @ 2018-08-25 23:17 Jaww 阅读(521) 评论(0) 推荐(0) 编辑