1.phantomjs 安装 下载:http://phantomjs.org/download.html 解压: 重命名: 软连接: [root@izuf622gt8apcfsz7i1mqdz /]# phantomjsphantomjs> 2.selenium 安装 pip 安装: pip ins ...
分类:
Web程序 时间:
2018-07-30 18:39:08
阅读次数:
204
def scroll(driver): driver.execute_script(""" (function () { var y = document.body.scrollTop; var step = 100; window.scroll(0, y); function f() { if ( ...
分类:
其他好文 时间:
2018-07-29 16:34:11
阅读次数:
126
Linux file system (FUSE) to access Dropbox, Sugarsync, Amazon S3, Google Storage, Google Drive or WebDAV servers. http://joe42.github.com/CloudFusion/ ...
分类:
Web程序 时间:
2018-07-25 23:52:13
阅读次数:
287
转自:https://blog.csdn.net/u012933335/rss/list 1. 为什么做单测 单测的好处 不得不写单测的原因 难处 难于坚持,在快速迭代开发过程中,可供写单测的时间过少 扩展 TDD(Test Drive Develop):测试驱动开发,是一种非常高效的开发方式 2. ...
分类:
其他好文 时间:
2018-07-25 14:34:25
阅读次数:
184
Introduction For those who wish to alter the various aspects of the main menu commands without needing to touch the source code can use this plugin to ...
分类:
编程语言 时间:
2018-07-25 14:33:06
阅读次数:
339
有需要使用adb命令连接调试平板的同学可以参考下(下面是android官方文档,有点老)。 http://donandroid.com/how-to-install-adb-interface-drivers-windows-7-xp-vista-623 1.android studio 里安装go ...
分类:
移动开发 时间:
2018-07-24 17:58:20
阅读次数:
1849
1、先定位到元素,在移动到元素位置 # 描述元素的属性 target = driver.find_element_by_css_selector("img[title=‘Download AutoIt‘]") # 执行js脚本,拖动浏览器滚动条到元素的位置 driver.execute_script... ...
分类:
其他好文 时间:
2018-07-23 17:20:53
阅读次数:
214
util:properties和context:property-placeholder标签都可以用来获取外部配置文件中的内容 1、util:properties 它是以声明bean方式来使用,创建了一个bean,下面使用的时候通过SpEL表达式#{}获取bean的属性。 需要注意,这种方式需要在s ...
分类:
编程语言 时间:
2018-07-23 10:58:32
阅读次数:
160
1.1. Centos7添加永久路由ip route 指令对路由的修改不能保存,重启就没了。把 ip route 指令写到 /etc/rc.local 也是徒劳的。RHEL7官网文档没有提到 /etc/sysconfig/static-routes,经测试此文件已经无效;永久静态路由需要写到 /et... ...
分类:
其他好文 时间:
2018-07-22 20:48:32
阅读次数:
160
代码:在执行的时候,把光标放在指定的地方,在此例中,点击运行后把光标放到结果区域,粘贴的时候是粘贴到光标所在的问题,如过是运行脚本在web元素输入框中输入的话,不能移动光标到其他位置 #encoding=utf-8import win32apiimport win32con class Keyboa ...
分类:
编程语言 时间:
2018-07-22 20:48:23
阅读次数:
259