11 2012 档案

摘要:[Environment]Selenium version: selenium-server-2.26.0OS: Windows 7 Ultimate (both 32 bit and 64 bit)Browser: IE 9 and IE8Browser version: IE9/8[Related Issue]Just a reference: This issue was found together with Issue4823 (http://code.google.com/p/selenium/issues/detail?id=4823). They may have some c 阅读全文
posted @ 2012-11-27 17:13 allenbackpacker 编辑
摘要:Use Javascript in WebDriverpackage com.example.tests;import java.io.File;import java.util.regex.Pattern;import java.util.concurrent.TimeUnit;import org.junit.*;import static org.junit.Assert.*;import static org.hamcrest.CoreMatchers.*;import org.openqa.selenium.*;import org.openqa.selenium.firefox.F 阅读全文
posted @ 2012-11-26 13:19 allenbackpacker 阅读(2045) 评论(0) 推荐(0) 编辑
摘要:1.针对IP过滤的例子抓取满足源地址的包: ip.src == 192.168.0.1抓取满足目标地址的包: ip.dst == 192.168.0.1抓取满足源地址或目标地址的包: ip.addr == 192.168.0.1,或者ip.src == 192.168.0.1 or ip.dst == 192.168.0.12.针对Port过滤的例子捕获单一端口: tcp.port == 80捕获范围端口: udp.port >= 2048 and upd.port <= 650003.针对Protocal过滤的例子捕获单一协议: http捕获多种协议: http or telne 阅读全文
posted @ 2012-11-23 10:54 allenbackpacker 编辑
摘要:from http://ziming.org/archives/7661.html#comment-6449很好的 测试 blogWebDriver与之前Selenium的JS注入实现不同,直接利用了浏览器native support来操作浏览器。所以对于不同平台,不同的浏览器,必须依赖一个特定的浏览器的native component来实现把WebDriver API的调用转化为浏览器的native invoke。在我们new一个WebDriver的过程中,Selenium首先会确认浏览器的native component是否存在可用而且版本匹配。接着就在目标浏览器里启动一整套Web Ser 阅读全文
posted @ 2012-11-22 15:04 allenbackpacker 编辑
摘要:WebDriver是W3C的一个标准,由Selenium主持。具体的协议标准可以从http://code.google.com/p/selenium/wiki/JsonWireProtocol#Command_Reference 查看。从这个协议中我们可以看到,WebDriver之所以能够实现与浏览器进行交互,是因为浏览器实现了这些协议。这个协议是使用JOSN通过HTTP进行传输。它的实现使用了经典的Client-Server模式。客户端发送一个requset,服务器端返回一个response。我们明确几个概念。Client调用 WebDriverAPI的机器。Server运行浏览器的机器。F 阅读全文
posted @ 2012-11-22 14:31 allenbackpacker 编辑
摘要:用这个:=IF(COUNTIF($B$1:$B$100,A1),"A in B","A NOT in B")同时, Excel 的 Data > Data Tools 有一个 Remove Duplicates 功能非常好用。 阅读全文
posted @ 2012-11-22 08:48 allenbackpacker 编辑
摘要:http://blog.sina.com.cn/s/blog_66e428f701014tom.htmlAre you stuck with an application that only works in IE?Do you want the XPATH of an element that can be seen only IE?Unable to replicate the scenario in firefox. There are many firefoxaddons like xpather, xpath-checker and firebug that will give yo 阅读全文
posted @ 2012-11-21 13:27 allenbackpacker 编辑
摘要:原文转自:http://www.blogjava.net/supercrsky/articles/247449.html针对JDK中的URLConnection连接Servlet的问题,网上有虽然有所涉及,但是只是说明了某一个或几个问题,是以FAQ的方式来解决的,而且比较零散,现在对这个类的使用就本人在项目中的使用经验做如下总结:1:> URL请求的类别:分为二类,GET与POST请求。二者的区别在于: a:) get请求可以获取静态页面,也可以把参数放在URL字串后面,传递给servlet, b:) post与get的不同之处在于post的参数不是放在URL字串里面,而是放在http请 阅读全文
posted @ 2012-11-14 14:05 allenbackpacker 编辑