摘要: centos7 openstf stf RethinkDB GraphicsMagick yasm pkg-config ZeroMQ 阅读全文
posted @ 2017-03-26 22:16 ianduin 阅读(2575) 评论(0) 推荐(0) 编辑
摘要: https://www.selenium.dev/selenium/docs/api/py/api.html 阅读全文
posted @ 2020-04-12 12:09 ianduin 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1.1 在chrome浏览器中调试定位方法 1.1.1 ID Document.getElementById(“id”) $(“#id”) 1.1.2 Name document.getElementsByName(“name”) 1.1.3 TagName document.getElements 阅读全文
posted @ 2020-04-12 12:03 ianduin 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 浏览器 下载地址 版本对应关系 chrome http://chromedriver.storage.googleapis.com/index.html http://chromedriver.storage.googleapis.com/2.45/notes.txt Firefox https:/ 阅读全文
posted @ 2020-04-12 12:01 ianduin 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 1.升级JPype1到0.7+版本,但是目前发现0.7+版本存在bug,无法正常调用java程序 2.下载预编译好的版本 JPype1-0.6.2-cp36-cp36m-win_amd64.whl 链接:https://pan.baidu.com/s/14wAcupQRcVwMtvVj_LizMg 阅读全文
posted @ 2020-04-12 12:00 ianduin 阅读(719) 评论(1) 推荐(0) 编辑
摘要: 1.4.2以后的版本不存在该问题 到https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient网址去下载 关注公众号获取更多内容 阅读全文
posted @ 2020-04-12 11:56 ianduin 阅读(694) 评论(0) 推荐(0) 编辑
摘要: 1.1 Selenium Grid简介 Selenium Grid组件专门用于远程分布式测试或并发测试,通过并发执行测试用例的方式可以提高测试用例的执行速度和效率,解决界面自动化测试执行速度过慢的问题。 Selenium Grid使用Hub和Node模式,一天计算机作为Hub(管理中心)管理其他多个 阅读全文
posted @ 2020-04-12 11:54 ianduin 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 1.1 CSS定位 1.1.1 绝对路径定位 目标 查找第一个文本为“猜猜看”的a标签 实现 CSS表达式 html>body>div>a[.=”猜猜看”] python表达式 driver.find_element_by_css_selector(‘html>body>div>a[.=”猜猜看”] 阅读全文
posted @ 2020-04-12 11:51 ianduin 阅读(928) 评论(0) 推荐(0) 编辑
摘要: 1.1 Xpath定位 1.1.1 选取节点 1.1.1.1 精确选择节点 XPath 使用路径表达式在 XML 文档中选取节点。节点是通过沿着路径或者 step 来选取的 路径表达式 表达式 描述 nodename 选取此节点的所有子节点。 / 从根节点选取。 // 从匹配选择的当前节点选择文档中 阅读全文
posted @ 2020-04-12 11:49 ianduin 阅读(816) 评论(0) 推荐(0) 编辑
摘要: Selenium元素定位方法总共有八大类,分别是:id,name,class name,tag name,link text,partial link text,xpath,css。八种定位方法没有哪个是最好的,在不同的场景下需要使用不用的定位方法。 示例html文件如下: <!DOCTYPE ht 阅读全文
posted @ 2020-04-12 11:46 ianduin 阅读(604) 评论(0) 推荐(0) 编辑
摘要: 1/yum install epel* 2/yum makecache 3/yum install chromium 阅读全文
posted @ 2019-12-07 22:03 ianduin 阅读(3391) 评论(0) 推荐(0) 编辑