摘要: package com.rapoo.middle.action;import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.net.InetAddre... 阅读全文
posted @ 2015-12-23 15:52 ariellin 阅读(372) 评论(0) 推荐(0)
摘要: 研究ThreadPoolExecutor.excute()源码会发现,它调用了BlockingQueue.offer()来实现多余任务的入队。BlockingQueue有两个方法:BlockingQueue.offer()和BlockingQueue.put(),前者在队列满时不阻塞,直接失败,... 阅读全文
posted @ 2015-12-23 10:56 ariellin 阅读(510) 评论(0) 推荐(0)
摘要: 1.有嵌套框架时,运行driver.execute_script("")执行元素查找时且需要查找的元素在最外层frame,2.先使用driver.switch_to_default()跳到最外层,3.后使用driver.switch_to_frame("相应frame")来执行其他操作 阅读全文
posted @ 2015-11-27 18:28 ariellin 阅读(176) 评论(0) 推荐(0)
摘要: /\b(([01]?\d?\d|2[0-4]\d|25[0-5])\.){3}([01]?\d?\d|2[0-4]\d|25[0-5])\b/ 阅读全文
posted @ 2015-11-16 10:02 ariellin 阅读(261) 评论(0) 推荐(0)