11 2016 档案

摘要:有三种方法可以使终止线程。 1. 使用退出标志,使线程正常退出,也就是当run方法完成后线程终止。 2. 使用stop方法强行终止线程(这个方法不推荐使用,因为stop和suspend、resume一样,也可能发生不可预料的结果)。 3. 使用interrupt方法中断线程。 1. 使用退出标志终止 阅读全文
posted @ 2016-11-29 19:56 Spider_Null 阅读(1838) 评论(0) 推荐(0)
摘要:工作中遇到需要对项目中使用的selenium设置代理,跟大家分享一下。 1.下载chromeDriver:http://chromedriver.storage.googleapis.com/index.html 2. 将下载好的文件解压,将chromedriver.exe拷贝到chrome根目录, 阅读全文
posted @ 2016-11-02 17:05 Spider_Null 阅读(6794) 评论(1) 推荐(0)
摘要:原文:http://www.cnblogs.com/tobecrazy/p/4570494.html 工作中使用到记录一下。 主要有: 上传 alter dialog prompt dialog confirm dialog select list radio box input box check 阅读全文
posted @ 2016-11-01 19:33 Spider_Null 阅读(4728) 评论(0) 推荐(0)